#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int t_abs(int);
int main() {
  printf("%d %d\n", t_abs(63), t_abs(-63));
  printf("%d %d\n", t_abs(131071), t_abs(-131071));
  printf("%d %d\n", t_abs(1777216), t_abs(-1777216));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x3f,%edi
call   1040 <t_abs@plt>
mov    %eax,-0xc(%rbp)
mov    $0xffffffc1,%edi
call   1040 <t_abs@plt>
mov    -0xc(%rbp),%esi
mov    %eax,%edx
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1ffff,%edi
call   1040 <t_abs@plt>
mov    %eax,-0x8(%rbp)
mov    $0xfffe0001,%edi
call   1040 <t_abs@plt>
mov    -0x8(%rbp),%esi
mov    %eax,%edx
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1b1e40,%edi
call   1040 <t_abs@plt>
mov    %eax,-0x4(%rbp)
mov    $0xffe4e1c0,%edi
call   1040 <t_abs@plt>
mov    -0x4(%rbp),%esi
mov    %eax,%edx
lea    0xe65(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0x3f,%edi
call   1040 <t_abs@plt>
mov    %eax,%ebp
mov    $0xffffffc1,%edi
call   1040 <t_abs@plt>
lea    0xec0(%rip),%rbx
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x1ffff,%edi
call   1040 <t_abs@plt>
mov    %eax,%ebp
mov    $0xfffe0001,%edi
call   1040 <t_abs@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x1b1e40,%edi
call   1040 <t_abs@plt>
mov    %eax,%ebp
mov    $0xffe4e1c0,%edi
call   1040 <t_abs@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%d %d\0A\00"
define i32 @main() {
%1 = call i32 @t_abs(i32 63)
%2 = call i32 @t_abs(i32 -63)
%3 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2)
%4 = call i32 @t_abs(i32 131071)
%5 = call i32 @t_abs(i32 -131071)
%6 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5)
%7 = call i32 @t_abs(i32 1777216)
%8 = call i32 @t_abs(i32 -1777216)
%9 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d %d\0A\00"
define i32 @main() {
%1 = tail call i32 @t_abs(i32 63)
%2 = tail call i32 @t_abs(i32 -63)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2)
%4 = tail call i32 @t_abs(i32 131071)
%5 = tail call i32 @t_abs(i32 -131071)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5)
%7 = tail call i32 @t_abs(i32 1777216)
%8 = tail call i32 @t_abs(i32 -1777216)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8)
ret i32 0
}