Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.txt 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ; ModuleID = 'test.c'
  2. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  3. target triple = "x86_64-unknown-linux-gnu"
  4. %struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i64, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i64, i32, [20 x i8] }
  5. %struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
  6. %struct.what = type { i8, i16 }
  7. @.str = private unnamed_addr constant [6 x i8] c"foo()\00", align 1
  8. @e_long = common global i64 0, align 8
  9. @g_double = common global double 0.000000e+00, align 8
  10. @.str.1 = private unnamed_addr constant [7 x i8] c"oooooh\00", align 1
  11. @func_ptr = common global i32 (...)* null, align 8
  12. @stderr = external global %struct._IO_FILE*, align 8
  13. ; Function Attrs: nounwind uwtable
  14. define i32 @foo() #0 {
  15. %1 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0))
  16. ret i32 0
  17. }
  18. declare i32 @puts(i8*) #1
  19. ; Function Attrs: nounwind uwtable
  20. define i32 @main(i32 %argc, i8** %argv) #0 {
  21. %1 = alloca i32, align 4
  22. %2 = alloca i32, align 4
  23. %3 = alloca i8**, align 8
  24. ; <label>:7 ; preds = %0
  25. %8 = getelementptr inbounds %struct.what, %struct.what* %X, i32 0, i32 0
  26. store i8 1, i8* %8, align 2
  27. store i8 49, i8* %b_char, align 1
  28. %9 = getelementptr inbounds %struct.what, %struct.what* %X, i32 0, i32 1
  29. store double 1.000000e+01, double* @g_double, align 8
  30. store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8** %cp_char_ptr, align 8
  31. store i32 (...)* bitcast (i32 ()* @foo to i32 (...)*), i32 (...)** @func_ptr, align 8
  32. %10 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i32 0, i32 0))
  33. store i32 10, i32* %1, align 4
  34. br label %66
  35. ; <label>:63 ; preds = %11
  36. %64 = load %struct._IO_FILE*, %struct._IO_FILE** @stderr, align 8
  37. %65 = call i32 @fputs(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i32 0, i32 0), %struct._IO_FILE* %64)
  38. store i32 -1, i32* %1, align 4
  39. br label %66
  40. ; <label>:66 ; preds = %63, %46, %7
  41. %67 = load i32, i32* %1, align 4
  42. ret i32 %67
  43. }
  44. declare i32 @printf(i8*, ...) #1
  45. declare i32 @fputs(i8*, %struct._IO_FILE*) #1
  46. attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
  47. !llvm.ident = !{!0}
  48. !0 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"}