calc functions being ignored

We should generate code for the functional_definitions too.