curry.backends.cxx.implementation module

The implementation of a function of the C++ backend as text, for curry.inspect.getimpl.

A function of a module compiled by g++ is read from the generated .cpp file beside the shared object: its step function, from the banner that names the function to the next banner. An interpreted function (flag interpret) is the disassembly of its bytecode, with the constants the materializer kept when it attached the code. A built-in of the runtime has no text.

curry.backends.cxx.implementation.getimpl(symbol)[source]

The code of the step function of symbol, a CurryNodeInfo, as text. Raises ValueError when the backend has no code for it.