#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 /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int i, num[3] = {}, menor = 10000000;
  scanf("%d\n%d\n%d", &num[0], &num[1], &num[2]);
  for (i = 0; i < 3; ++i)
    if (num[i] < menor)
      menor = num[i];
  printf("%d\n", menor);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x14(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1040 <memset@plt>
movl   $0x989680,-0x18(%rbp)
lea    -0x14(%rbp),%rsi
lea    -0x14(%rbp),%rdx
add    $0x4,%rdx
lea    -0x14(%rbp),%rcx
add    $0x8,%rcx
lea    0xe8f(%rip),%rdi
call   1050 <scanf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11b6 <main+0x86>
movslq -0x8(%rbp),%rax
mov    -0x14(%rbp,%rax,4),%eax
cmp    -0x18(%rbp),%eax
jge    11a3 <main+0x73>
movslq -0x8(%rbp),%rax
mov    -0x14(%rbp,%rax,4),%eax
mov    %eax,-0x18(%rbp)
jmp    11a8 <main+0x78>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    117d <main+0x4d>
mov    -0x18(%rbp),%esi
lea    0xe49(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movl   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%rdx
lea    0xeba(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x8(%rsp),%eax
cmp    $0x989680,%eax
mov    $0x989680,%esi
cmovl  %eax,%esi
mov    0xc(%rsp),%eax
cmp    %esi,%eax
cmovl  %eax,%esi
mov    0x10(%rsp),%eax
cmp    %esi,%eax
cmovl  %eax,%esi
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d\0A%d\0A%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [3 x i32]
%4 = alloca i32
store i32 0, i32* %1
%5 = bitcast [3 x i32]* %3 to i8*
store i32 10000000, i32* %4
%6 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%7 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%8 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
%9 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %6, i32* %7, i32* %8)
store i32 0, i32* %2
br label %10
10: ; preds = %26, %0
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %29
13: ; preds = %10
%14 = load i32, i32* %2
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 %15
%17 = load i32, i32* %16
%18 = load i32, i32* %4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %25
20: ; preds = %13
%21 = load i32, i32* %2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 %22
%24 = load i32, i32* %23
store i32 %24, i32* %4
br label %25
25: ; preds = %20, %13
br label %26
26: ; preds = %25
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
br label %10
29: ; preds = %10
%30 = load i32, i32* %4
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %30)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d\0A%d\0A%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [3 x i32]
%2 = bitcast [3 x i32]* %1 to i8*
%3 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 0
%4 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 1
%5 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 2
%6 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4, i32* %5)
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 10000000
%9 = select i1 %8, i32 %7, i32 10000000
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, %9
%12 = select i1 %11, i32 %10, i32 %9
%13 = load i32, i32* %5
%14 = icmp slt i32 %13, %12
%15 = select i1 %14, i32 %13, i32 %12
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %15)
ret i32 0
}