#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 least(int);
int most(int);
int /*<<< orphan*/ printf(char *, int, ...);
int main() {
  int a = 0x0000007b;
  int b = 0xffffff85;
  int c = 0x07b00000;
  printf("a=%x\n", a);
  printf("b=%x\n", b);
  printf("c=%x\n", c);
  printf("(%8x)(%8x)(%8x)\n", a, most(a), least(a));
  printf("(%8x)(%8x)(%8x)\n", b, most(b), least(b));
  printf("(%8x)(%8x)(%8x)\n", c, most(c), least(c));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x7b,-0x4(%rbp)
movl   $0xffffff85,-0x8(%rbp)
movl   $0x7b00000,-0xc(%rbp)
mov    -0x4(%rbp),%esi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <most@plt>
mov    %eax,-0x20(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <least@plt>
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    %eax,%ecx
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%edi
call   1050 <most@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <least@plt>
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    %eax,%ecx
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <most@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <least@plt>
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    %eax,%ecx
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xec6(%rip),%rdi
mov    $0x7b,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    $0xffffff85,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeac(%rip),%rdi
mov    $0x7b00000,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x7b,%edi
call   1050 <most@plt>
mov    %eax,%ebp
mov    $0x7b,%edi
call   1030 <least@plt>
lea    0xe89(%rip),%rbx
mov    %rbx,%rdi
mov    $0x7b,%esi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffff85,%edi
call   1050 <most@plt>
mov    %eax,%ebp
mov    $0xffffff85,%edi
call   1030 <least@plt>
mov    %rbx,%rdi
mov    $0xffffff85,%esi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x7b00000,%edi
call   1050 <most@plt>
mov    %eax,%ebp
mov    $0x7b00000,%edi
call   1030 <least@plt>
mov    %rbx,%rdi
mov    $0x7b00000,%esi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"a=%x\0A\00"
@.str.1 = [6 x i8] c"b=%x\0A\00"
@.str.2 = [6 x i8] c"c=%x\0A\00"
@.str.3 = [17 x i8] c"(%8x)(%8x)(%8x)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 123, i32* %1
store i32 -123, i32* %2
store i32 128974848, i32* %3
%4 = load i32, i32* %1
%5 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load i32, i32* %2
%7 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %3
%9 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %8)
%10 = load i32, i32* %1
%11 = load i32, i32* %1
%12 = call i32 @most(i32 %11)
%13 = load i32, i32* %1
%14 = call i32 @least(i32 %13)
%15 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %10, i32 %12, i32 %14)
%16 = load i32, i32* %2
%17 = load i32, i32* %2
%18 = call i32 @most(i32 %17)
%19 = load i32, i32* %2
%20 = call i32 @least(i32 %19)
%21 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %16, i32 %18, i32 %20)
%22 = load i32, i32* %3
%23 = load i32, i32* %3
%24 = call i32 @most(i32 %23)
%25 = load i32, i32* %3
%26 = call i32 @least(i32 %25)
%27 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %22, i32 %24, i32 %26)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"a=%x\0A\00"
@.str.1 = [6 x i8] c"b=%x\0A\00"
@.str.2 = [6 x i8] c"c=%x\0A\00"
@.str.3 = [17 x i8] c"(%8x)(%8x)(%8x)\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 123)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 -123)
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 128974848)
%4 = tail call i32 @most(i32 123)
%5 = tail call i32 @least(i32 123)
%6 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 123, i32 %4, i32 %5)
%7 = tail call i32 @most(i32 -123)
%8 = tail call i32 @least(i32 -123)
%9 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 -123, i32 %7, i32 %8)
%10 = tail call i32 @most(i32 128974848)
%11 = tail call i32 @least(i32 128974848)
%12 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 128974848, i32 %10, i32 %11)
ret i32 0
}