6 #ifndef CHI_FUNCTION_VALIDATOR_HPP 7 #define CHI_FUNCTION_VALIDATOR_HPP 57 #endif // CHI_FUNCTION_VALIDATOR_HPP Forward declares all the chigraph data types.
Result validateFunctionExecOutputs(const GraphFunction &func)
Make sure nodes have an output connection.
Result validateFunctionEntryType(const GraphFunction &func)
Make sure the function entry type aligns with the function type.
Result validateFunctionConnectionsAreTwoWay(const GraphFunction &func)
Make sure that connections connect back and that they have the same types.
Result validateFunction(const GraphFunction &func)
Validate that a function is compilable.
Result validateFunctionNodeInputs(const GraphFunction &func)
Make sure that nodes are called before their outputs are used.
Result validateFunctionMainSignature(const GraphFunction &func)
Make sure it's a valid signautre for a main function.
Result validateFunctionExitTypes(const GraphFunction &func)
Make sure the function exit types align with the function type.
The namespace where chigraph lives.