Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 0.73 KB | None | 0 0
  1. ; ModuleID = 'a.out'
  2.  
  3. %FILE = type { i8*, i32, i8*, i32, i32, i32, i32, i8* }
  4. %_iobuf = type { i8*, i32, i8*, i32, i32, i32, i32, i8* }
  5.  
  6. @_iob = external global [0 x %FILE]*
  7.  
  8. declare i32 @_filbuf(%FILE*)
  9.  
  10. declare i32 @_flsbuf(i32, %FILE*)
  11.  
  12. declare i32 @puts(i8*)
  13.  
  14. declare i32 @printf(i8*, ...)
  15.  
  16. define i32 @main(i32 %argc, i8** %argv) {
  17. entry:
  18.   %argv2 = alloca i8**
  19.   %argc1 = alloca i32
  20.   store i32 %argc, i32* %argc1
  21.   store i8** %argv, i8*** %argv2
  22.   %_dref_ = load [0 x %FILE]** @_iob
  23.   %_idx_ = getelementptr [0 x %FILE]* %_dref_, i32 0, i32 1
  24.   %_dref_3 = load [0 x %FILE]** @_iob
  25.   %_idx_4 = getelementptr [0 x %FILE]* %_dref_3, i32 0, i32 1
  26.   %_call_ = call i32 @_flsbuf(i32 97, %FILE* %_idx_4)
  27.   ret i32 0
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement