Skip to content

Instantly share code, notes, and snippets.

@rileylev
Last active May 5, 2022 23:39
Show Gist options
  • Save rileylev/39724eaf0ba2b1aa0e5d01ca86a958c7 to your computer and use it in GitHub Desktop.
Save rileylev/39724eaf0ba2b1aa0e5d01ca86a958c7 to your computer and use it in GitHub Desktop.
int f(int count, int data) {
count += calc_adjustment(data);
UMBRA_FREEZE(count) { g(count) }
}
// ==>
int f(int count, int data) {
count += calc_adjustment(data);
if(auto const& umbra_gensym1tmp = count; true)
UMBRA_IGNORE_SHADOW( //
if(auto const& count = umbra_gensym1tmp;
true)) {
g(count)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment