Copilot-Language / copilot

A stream-based runtime-verification framework for generating hard real-time C code.
http://copilot-language.github.io
618 stars 49 forks source link

`copilot-c99`: Pass output arrays as arguments to trigger argument functions. Refs #431. #481

Closed RyanGlScott closed 6 months ago

RyanGlScott commented 6 months ago

This commit changes array trigger argument functions so that they receive a pointer to an array for the output argument. The part of the generated code that applies the trigger argument functions has also been updated accordingly such that when the argument has an array type, the output array is passed directly as an argument (e.g., f_arg0(temp_array)) rather than being assigned (e.g., temp_array = f_arg0()).

Addresses #431.

ivanperez-keera commented 6 months ago

Change Manager: Verified that: