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);
if (isInputDirty<input_Set>(ctx)){
if(getValue<input_ON_OFF>(ctx) == true){
dimm->setState(ON);
}else{
dimm->setState(OFF);
}
}
emitValue<output_Done>(ctx, 1);
}