Closed nyssen closed 5 years ago
When using 'always' on a transition together with a guard expression, the check function is generated with 'bool_true && ...' in its body, e.g.:
static sc_boolean sCT_check_Active_Calltr0_tr0(const SCT\* handle) { return ((bool_true) && handle->ifacePhone.duration > 5) ? bool_true : bool_false; }
This is superfluous and could be optimized away to only use the guard expression:
static sc_boolean sCT_check_Active_Calltr0_tr0(const SCT\* handle) { return (handle->ifacePhone.duration > 5) ? bool_true : bool_false; }
@terfloth I think this is fixed with the current PR you are working on?
This issue still exists.
When using 'always' on a transition together with a guard expression, the check function is generated with 'bool_true && ...' in its body, e.g.:
This is superfluous and could be optimized away to only use the guard expression: