m4n71k0r

Untitled

Jul 11th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int _if(bool c, int a, int b)
  2. {
  3.   int result;
  4.  
  5.   if (c)
  6.   {
  7.     result = a;
  8.   }
  9.   else
  10.   {
  11.     result = b;
  12.   }
  13.  
  14.   return result;  
  15. }
  16.  
  17. int _ter(bool c, int a, int b)
  18. {
  19.   int result;
  20.  
  21.   result = (c)?a:b;
  22.  
  23.   return result;  
  24. }
  25.  
  26. int main()
  27. {
  28.  
  29. }
  30.  
  31. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  32.  
  33.     .file   "/tmp/webcompile/_5156_0.bc"
  34.     .text
  35.     .globl  _Z3_ifbii
  36.     .align  16, 0x90
  37.     .type   _Z3_ifbii,@function
  38. _Z3_ifbii:                              # @_Z3_ifbii
  39. .Ltmp0:
  40.     .cfi_startproc
  41. # BB#0:
  42.     leal    8(%esp), %ecx
  43.     leal    12(%esp), %eax
  44.     movb    4(%esp), %dl
  45.     testb   %dl, %dl
  46.     cmovnel %ecx, %eax
  47.     movl    (%eax), %eax
  48.     ret
  49. .Ltmp1:
  50.     .size   _Z3_ifbii, .Ltmp1-_Z3_ifbii
  51. .Ltmp2:
  52.     .cfi_endproc
  53. .Leh_func_end0:
  54.  
  55.     .globl  _Z4_terbii
  56.     .align  16, 0x90
  57.     .type   _Z4_terbii,@function
  58. _Z4_terbii:                             # @_Z4_terbii
  59. .Ltmp3:
  60.     .cfi_startproc
  61. # BB#0:
  62.     leal    8(%esp), %ecx
  63.     leal    12(%esp), %eax
  64.     movb    4(%esp), %dl
  65.     testb   %dl, %dl
  66.     cmovnel %ecx, %eax
  67.     movl    (%eax), %eax
  68.     ret
  69. .Ltmp4:
  70.     .size   _Z4_terbii, .Ltmp4-_Z4_terbii
  71. .Ltmp5:
  72.     .cfi_endproc
  73. .Leh_func_end1:
  74.  
  75.     .globl  main
  76.     .align  16, 0x90
  77.     .type   main,@function
  78. main:                                   # @main
  79. .Ltmp6:
  80.     .cfi_startproc
  81. # BB#0:
  82.     xorl    %eax, %eax
  83.     ret
  84. .Ltmp7:
  85.     .size   main, .Ltmp7-main
  86. .Ltmp8:
  87.     .cfi_endproc
  88. .Leh_func_end2:
  89.  
  90.  
  91.     .section    ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment