Skip to content

Instantly share code, notes, and snippets.

@wuerges
Created March 16, 2016 19:27
Show Gist options
  • Save wuerges/1cd4eb23c73de277ef1e to your computer and use it in GitHub Desktop.
Save wuerges/1cd4eb23c73de277ef1e to your computer and use it in GitHub Desktop.
define [1 x i32] @topLevel([3 x i32] %inputArray, [1 x i32] %returnArray) {
bb0:
%node_1 = extractvalue [3 x i32] %inputArray, 0
%node_2 = extractvalue [3 x i32] %inputArray, 1
%node_3 = extractvalue [3 x i32] %inputArray, 2
%node_8 = and i32 %node_1, %node_2
%0 = xor i32 %node_8, 1
%node_7 = and i32 %node_3, %0
%1 = xor i32 %node_3, 1
%node_6 = and i32 %1, %node_8
%2 = xor i32 %node_6, 1
%3 = xor i32 %node_7, 1
%node_5 = and i32 %2, %3
%node_4 = xor i32 %node_5, 1
%4 = insertvalue [1 x i32] %returnArray, i32 %node_4, 0
ret [1 x i32] %returnArray
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment