struct State {
};
using Type = uint32_t;
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
uint32_t hour = getValue<input_HOUR>(ctx);
uint32_t min = getValue<input_MIN>(ctx);
uint32_t sec = getValue<input_SEC>(ctx);
uint32_t seconds=0;
seconds += hour * 3600;
seconds += min * 60;
seconds += sec;
if (seconds>86400){
hour=0;
min=0;
}
emitValue<output_OUT>(ctx, seconds);
}