struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
emitValue<output_Dev>(ctx, getValue<input_DIMM>(ctx));
if (!isInputDirty<input_Set>(ctx))
return;
auto dimm = getValue<input_DIMM>(ctx);
uint8_t val = getValue<input_Power>(ctx);
dimm->setPower(val);
emitValue<output_Done>(ctx, 1);
}