Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int _if(bool c, int a, int b)
- {
- int result;
- if (c)
- {
- result = a;
- }
- else
- {
- result = b;
- }
- return result;
- }
- int _ter(bool c, int a, int b)
- {
- int result;
- result = (c)?a:b;
- return result;
- }
- int main()
- {
- }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- .file "/tmp/webcompile/_5156_0.bc"
- .text
- .globl _Z3_ifbii
- .align 16, 0x90
- .type _Z3_ifbii,@function
- _Z3_ifbii: # @_Z3_ifbii
- .Ltmp0:
- .cfi_startproc
- # BB#0:
- leal 8(%esp), %ecx
- leal 12(%esp), %eax
- movb 4(%esp), %dl
- testb %dl, %dl
- cmovnel %ecx, %eax
- movl (%eax), %eax
- ret
- .Ltmp1:
- .size _Z3_ifbii, .Ltmp1-_Z3_ifbii
- .Ltmp2:
- .cfi_endproc
- .Leh_func_end0:
- .globl _Z4_terbii
- .align 16, 0x90
- .type _Z4_terbii,@function
- _Z4_terbii: # @_Z4_terbii
- .Ltmp3:
- .cfi_startproc
- # BB#0:
- leal 8(%esp), %ecx
- leal 12(%esp), %eax
- movb 4(%esp), %dl
- testb %dl, %dl
- cmovnel %ecx, %eax
- movl (%eax), %eax
- ret
- .Ltmp4:
- .size _Z4_terbii, .Ltmp4-_Z4_terbii
- .Ltmp5:
- .cfi_endproc
- .Leh_func_end1:
- .globl main
- .align 16, 0x90
- .type main,@function
- main: # @main
- .Ltmp6:
- .cfi_startproc
- # BB#0:
- xorl %eax, %eax
- ret
- .Ltmp7:
- .size main, .Ltmp7-main
- .Ltmp8:
- .cfi_endproc
- .Leh_func_end2:
- .section ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment