Events are primitive elements and are special in the sense that software languages do not support them directly. An event is active, or “high,” for only one step unless it is regenerated. The intrinsics library supports this behavior via the “
gen
” function.Once an event is generated via “
gen
,” the intrinsics runtime module is set and resets the event at the right time. An active event signifies a value of “1” in the byte that represents that event.Note: The function expects an address of an event element. Direct setting of an event, i.e., event1 = true, causes the code to behave incorrectly since the intrinsics module does not handle this situation.