Skip to content

Instantly share code, notes, and snippets.

@Bloofer
Created January 4, 2018 07:13
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 Bloofer/42f6175848aeeddfd93ddd4fc3f1008b to your computer and use it in GitHub Desktop.
Save Bloofer/42f6175848aeeddfd93ddd4fc3f1008b to your computer and use it in GitHub Desktop.
Constant folding
int a = 30;
int b = 9 - (a / 5);
int c;
c = b * 4;
if (c > 10) {
c = c - 10;
}
return c * (60 / a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment