catalyst.debug.get_cmain

get_cmain(fn, *args)[source]

Return a C program that calls a jitted function with the provided arguments.

Parameters
  • fn (QJIT) – a qjit-decorated function

  • *args – argument values to use in the C program when invoking fn

Returns

A C program that can be compiled and linked with the current shared object.

Return type

str