Skip to content

Instantly share code, notes, and snippets.

@taegyunkim
Created June 7, 2019 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taegyunkim/72485453718a09bf7e79c16d45e00bdc to your computer and use it in GitHub Desktop.
Save taegyunkim/72485453718a09bf7e79c16d45e00bdc to your computer and use it in GitHub Desktop.
| StateAndPacket | program(| StateAndPacket | state_and_packet) {
if (state_and_packet.pkt_0 * 2 == state_and_packet.pkt_1) {
state_and_packet.state_group_0_state_0 = 1;
} else {
state_and_packet.state_group_0_state_0 = 0;
}
return state_and_packet;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment