Skip to content

Instantly share code, notes, and snippets.

@46bit
Created January 16, 2018 22:57
Show Gist options
  • Select an option

  • Save 46bit/cb523552a8088260de16a917b08fe867 to your computer and use it in GitHub Desktop.

Select an option

Save 46bit/cb523552a8088260de16a917b08fe867 to your computer and use it in GitHub Desktop.
https://stackoverflow.com/questions/30234027/how-to-call-printf-in-llvm-through-the-module-builder-system
input x, y, z;
f(a, b) = a / b;
g(a) = a * 3;
i = 5 * 3 + g(y) * f(x, z);
j = i + 1 + g(x);
output i, j;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment