struct State {
};
// clang-format off
{{ GENERATED_CODE }}
// clang-format on
void evaluate(Context ctx) {
if (!isInputDirty<input_INIT>(ctx)){
emitValue<output_OUT>(ctx, getValue<input_DEV>(ctx));
return;}
auto pin = getValue<input_Qx>(ctx);
auto sr = getValue<input_DEV>(ctx); // Get a pointer to the class instance
emitValue<output_Qval>(ctx, (uint8_t)sr->get(pin));
emitValue<output_DONE>(ctx, 1);
}