#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 *);
int main() {
  int n, a, b, c, max, min;
  scanf("%d%d%d%d", &n, &a, &b, &c);
  if (a >= b)
    max = a;
  else if (max <= c)
    max = c;
  else
    max = b;
  printf("The maximum number is %d.\n", max);
  if (a <= b)
    min = a;
  else if (min >= c)
    min = c;
  else
    min = b;
  printf("The minimum number is %d.", min);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jl     1162 <main+0x42>
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    1184 <main+0x64>
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     1179 <main+0x59>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    117f <main+0x5f>
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    1184 <main+0x64>
mov    -0x18(%rbp),%esi
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     11aa <main+0x8a>
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    11cc <main+0xac>
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jl     11c1 <main+0xa1>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    11c7 <main+0xa7>
mov    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    11cc <main+0xac>
mov    -0x1c(%rbp),%esi
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
call   1040 <scanf@plt>
mov    0x10(%rsp),%esi
cmp    0xc(%rsp),%esi
jge    1152 <main+0x32>
mov    0x8(%rsp),%esi
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
mov    0x10(%rsp),%esi
cmp    0xc(%rsp),%esi
jle    116c <main+0x4c>
mov    0x8(%rsp),%esi
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d%d%d%d\00"
@.str.1 = [27 x i8] c"The maximum number is %d.\0A\00"
@.str.2 = [26 x i8] c"The minimum number is %d.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4, i32* %5)
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = icmp sge i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load i32, i32* %3
store i32 %13, i32* %6
br label %23
14: ; preds = %0
%15 = load i32, i32* %6
%16 = load i32, i32* %5
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load i32, i32* %5
store i32 %19, i32* %6
br label %22
20: ; preds = %14
%21 = load i32, i32* %4
store i32 %21, i32* %6
br label %22
22: ; preds = %20, %18
br label %23
23: ; preds = %22, %12
%24 = load i32, i32* %6
%25 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %24)
%26 = load i32, i32* %3
%27 = load i32, i32* %4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = load i32, i32* %3
store i32 %30, i32* %7
br label %40
31: ; preds = %23
%32 = load i32, i32* %7
%33 = load i32, i32* %5
%34 = icmp sge i32 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i32, i32* %5
store i32 %36, i32* %7
br label %39
37: ; preds = %31
%38 = load i32, i32* %4
store i32 %38, i32* %7
br label %39
39: ; preds = %37, %35
br label %40
40: ; preds = %39, %29
%41 = load i32, i32* %7
%42 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %41)
ret i32 0
}

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