Skip to content

Instantly share code, notes, and snippets.

@antonijn
Created March 12, 2014 21:01
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 antonijn/9516275 to your computer and use it in GitHub Desktop.
Save antonijn/9516275 to your computer and use it in GitHub Desktop.
import aqua.std;
private class Program {
private static void main(String[] args) {
}
}
; ...
; ...
; ...
declare external %class.aqua.std.Array.0.1aqua.std.String.2* @aqua_init(i32, i8**)
declare external void @aqua_exit(i32)
define internal void @class.Program.main.3042927889(i8* %this, %class.aqua.std.Array.0.1aqua.std.String.2* %args) {
%1 = alloca %class.aqua.std.Array.0.1aqua.std.String.2*
store %class.aqua.std.Array.0.1aqua.std.String.2* %args, %class.aqua.std.Array.0.1aqua.std.String.2** %1
ret void
; <label>:2
}
define i32 @main(i32 %argc, i8** %argv) {
%1 = call %class.aqua.std.Array.0.1aqua.std.String.2* @aqua_init(i32 %argc, i8** %argv)
call void @class.Program.main.3042927889(i8* undef, %class.aqua.std.Array.0.1aqua.std.String.2* %1)
call void @aqua_exit(i32 0)
unreachable
; <label>:2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment