#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 /*<<< orphan*/ scanf(char *, int *, int *, int *);
main() {
  int a, b, c;
  printf("Введите три различных числа: ");
  scanf("%d%d%d", &a, &b, &c);
  printf("Сумма= %d\n", a + b + c);
  printf("Среднее значение= %f\n", (float)(a + b + c) / 3);
  printf("Произведение= %d\n", a * b * c);
  printf("Наибольшее= ");
  if (a > b) {
    if (a > c)
      printf("%d\n", a);
    else
      printf("%d\n", c);
  } else {
    if (b > c)
      printf("%d\n", b);
    else
      printf("%d\n", c);
  }
  printf("Наименьшее= ");
  if (a < b) {
    if (a < c)
      printf("%d\n", a);
    else
      printf("%d\n", c);
  } else {
    if (b < c)
      printf("%d\n", b);
    else
      printf("%d\n", c);
  }
  if (a < b && a < c)
    printf("Наименьшее число %d\n", a);
  if (b < c && b < a)
    printf("Наименьшее число %d\n", b);
  else
    printf("Наименьшее число %d\n", c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%esi
add    -0xc(%rbp),%esi
add    -0x10(%rbp),%esi
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
cvtsi2ss %eax,%xmm0
movss  0xe7f(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xec1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
imul   -0xc(%rbp),%esi
imul   -0x10(%rbp),%esi
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1202 <main+0xe2>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11ec <main+0xcc>
mov    -0x8(%rbp),%esi
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11fd <main+0xdd>
mov    -0x10(%rbp),%esi
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    123a <main+0x11a>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1224 <main+0x104>
mov    -0xc(%rbp),%esi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1235 <main+0x115>
mov    -0x10(%rbp),%esi
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    123a <main+0x11a>
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    128c <main+0x16c>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1276 <main+0x156>
mov    -0x8(%rbp),%esi
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1287 <main+0x167>
mov    -0x10(%rbp),%esi
lea    0xdcd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12c4 <main+0x1a4>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12ae <main+0x18e>
mov    -0xc(%rbp),%esi
lea    0xdab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12bf <main+0x19f>
mov    -0x10(%rbp),%esi
lea    0xd95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12c4 <main+0x1a4>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12ed <main+0x1cd>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12ed <main+0x1cd>
mov    -0x8(%rbp),%esi
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    131b <main+0x1fb>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    131b <main+0x1fb>
mov    -0xc(%rbp),%esi
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    132c <main+0x20c>
mov    -0x10(%rbp),%esi
lea    0xd9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x4(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x8(%rsp),%esi
add    0xc(%rsp),%esi
add    0x4(%rsp),%esi
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%eax
add    0xc(%rsp),%eax
add    0x4(%rsp),%eax
cvtsi2ss %eax,%xmm0
divss  0xe80(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xec6(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
imul   0xc(%rsp),%esi
imul   0x4(%rsp),%esi
lea    0xecf(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%eax
mov    0x8(%rsp),%esi
cmp    %esi,%eax
cmovg  %eax,%esi
mov    0x4(%rsp),%eax
cmp    %eax,%esi
cmovle %eax,%esi
lea    0xe74(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%eax
mov    0x8(%rsp),%esi
cmp    %esi,%eax
cmovl  %eax,%esi
mov    0x4(%rsp),%eax
cmp    %eax,%esi
cmovge %eax,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%eax
mov    0x4(%rsp),%ecx
cmp    %eax,%esi
jge    123f <main+0x11f>
cmp    %ecx,%esi
jge    123f <main+0x11f>
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%eax
mov    0x4(%rsp),%ecx
mov    0xc(%rsp),%esi
cmp    %esi,%eax
mov    %ecx,%esi
cmovl  %eax,%esi
cmp    %ecx,%eax
cmovge %ecx,%esi
lea    0xe70(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [54 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\82\D1\80\D0\B8 \D1\80\D0\B0\D0\B7\D0\BB\D0\B8\D1\87\D0\BD\D1\8B\D1\85 \D1\87\D0\B8\D1\81\D0\BB\D0\B0: \00"
@.str.1 = [7 x i8] c"%d%d%d\00"
@.str.2 = [16 x i8] c"\D0\A1\D1\83\D0\BC\D0\BC\D0\B0= %d\0A\00"
@.str.3 = [37 x i8] c"\D0\A1\D1\80\D0\B5\D0\B4\D0\BD\D0\B5\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5= %f\0A\00"
@.str.4 = [30 x i8] c"\D0\9F\D1\80\D0\BE\D0\B8\D0\B7\D0\B2\D0\B5\D0\B4\D0\B5\D0\BD\D0\B8\D0\B5= %d\0A\00"
@.str.5 = [23 x i8] c"\D0\9D\D0\B0\D0\B8\D0\B1\D0\BE\D0\BB\D1\8C\D1\88\D0\B5\D0\B5= \00"
@.str.6 = [4 x i8] c"%d\0A\00"
@.str.7 = [23 x i8] c"\D0\9D\D0\B0\D0\B8\D0\BC\D0\B5\D0\BD\D1\8C\D1\88\D0\B5\D0\B5= \00"
@.str.8 = [36 x i8] c"\D0\9D\D0\B0\D0\B8\D0\BC\D0\B5\D0\BD\D1\8C\D1\88\D0\B5\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = add nsw i32 %7, %8
%10 = load i32, i32* %4
%11 = add nsw i32 %9, %10
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %11)
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = add nsw i32 %13, %14
%16 = load i32, i32* %4
%17 = add nsw i32 %15, %16
%18 = sitofp i32 %17 to float
%19 = fdiv float %18, 3.000000e+00
%20 = fpext float %19 to double
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), double %20)
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = mul nsw i32 %22, %23
%25 = load i32, i32* %4
%26 = mul nsw i32 %24, %25
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = icmp sgt i32 %29, %30
br i1 %31, label %32, label %43
32: ; preds = %0
%33 = load i32, i32* %2
%34 = load i32, i32* %4
%35 = icmp sgt i32 %33, %34
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = load i32, i32* %2
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %37)
br label %42
39: ; preds = %32
%40 = load i32, i32* %4
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %39, %36
br label %54
43: ; preds = %0
%44 = load i32, i32* %3
%45 = load i32, i32* %4
%46 = icmp sgt i32 %44, %45
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = load i32, i32* %3
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %48)
br label %53
50: ; preds = %43
%51 = load i32, i32* %4
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %51)
br label %53
53: ; preds = %50, %47
br label %54
54: ; preds = %53, %42
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%56 = load i32, i32* %2
%57 = load i32, i32* %3
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %70
59: ; preds = %54
%60 = load i32, i32* %2
%61 = load i32, i32* %4
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load i32, i32* %2
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %64)
br label %69
66: ; preds = %59
%67 = load i32, i32* %4
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %67)
br label %69
69: ; preds = %66, %63
br label %81
70: ; preds = %54
%71 = load i32, i32* %3
%72 = load i32, i32* %4
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %77
74: ; preds = %70
%75 = load i32, i32* %3
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %75)
br label %80
77: ; preds = %70
%78 = load i32, i32* %4
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %78)
br label %80
80: ; preds = %77, %74
br label %81
81: ; preds = %80, %69
%82 = load i32, i32* %2
%83 = load i32, i32* %3
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %92
85: ; preds = %81
%86 = load i32, i32* %2
%87 = load i32, i32* %4
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %92
89: ; preds = %85
%90 = load i32, i32* %2
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %89, %85, %81
%93 = load i32, i32* %3
%94 = load i32, i32* %4
%95 = icmp slt i32 %93, %94
br i1 %95, label %96, label %103
96: ; preds = %92
%97 = load i32, i32* %3
%98 = load i32, i32* %2
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %103
100: ; preds = %96
%101 = load i32, i32* %3
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i32 %101)
br label %106
103: ; preds = %96, %92
%104 = load i32, i32* %4
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i32 %104)
br label %106
106: ; preds = %103, %100
ret i32 0
}

LLVM IR (-O2):
@.str = [54 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D1\82\D1\80\D0\B8 \D1\80\D0\B0\D0\B7\D0\BB\D0\B8\D1\87\D0\BD\D1\8B\D1\85 \D1\87\D0\B8\D1\81\D0\BB\D0\B0: \00"
@.str.1 = [7 x i8] c"%d%d%d\00"
@.str.2 = [16 x i8] c"\D0\A1\D1\83\D0\BC\D0\BC\D0\B0= %d\0A\00"
@.str.3 = [37 x i8] c"\D0\A1\D1\80\D0\B5\D0\B4\D0\BD\D0\B5\D0\B5 \D0\B7\D0\BD\D0\B0\D1\87\D0\B5\D0\BD\D0\B8\D0\B5= %f\0A\00"
@.str.4 = [30 x i8] c"\D0\9F\D1\80\D0\BE\D0\B8\D0\B7\D0\B2\D0\B5\D0\B4\D0\B5\D0\BD\D0\B8\D0\B5= %d\0A\00"
@.str.5 = [23 x i8] c"\D0\9D\D0\B0\D0\B8\D0\B1\D0\BE\D0\BB\D1\8C\D1\88\D0\B5\D0\B5= \00"
@.str.6 = [4 x i8] c"%d\0A\00"
@.str.7 = [23 x i8] c"\D0\9D\D0\B0\D0\B8\D0\BC\D0\B5\D0\BD\D1\8C\D1\88\D0\B5\D0\B5= \00"
@.str.8 = [36 x i8] c"\D0\9D\D0\B0\D0\B8\D0\BC\D0\B5\D0\BD\D1\8C\D1\88\D0\B5\D0\B5 \D1\87\D0\B8\D1\81\D0\BB\D0\BE %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = add nsw i32 %10, %9
%12 = load i32, i32* %3
%13 = add nsw i32 %11, %12
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %1
%16 = load i32, i32* %2
%17 = add nsw i32 %16, %15
%18 = load i32, i32* %3
%19 = add nsw i32 %17, %18
%20 = sitofp i32 %19 to float
%21 = fdiv float %20, 3.000000e+00
%22 = fpext float %21 to double
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), double %22)
%24 = load i32, i32* %1
%25 = load i32, i32* %2
%26 = mul nsw i32 %25, %24
%27 = load i32, i32* %3
%28 = mul nsw i32 %26, %27
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%31 = load i32, i32* %1
%32 = load i32, i32* %2
%33 = icmp sgt i32 %31, %32
%34 = load i32, i32* %3
%35 = select i1 %33, i32 %31, i32 %32
%36 = icmp sgt i32 %35, %34
%37 = select i1 %36, i32 %35, i32 %34
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %37)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%40 = load i32, i32* %1
%41 = load i32, i32* %2
%42 = icmp slt i32 %40, %41
%43 = load i32, i32* %3
%44 = select i1 %42, i32 %40, i32 %41
%45 = icmp slt i32 %44, %43
%46 = select i1 %45, i32 %44, i32 %43
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %1
%49 = load i32, i32* %2
%50 = icmp slt i32 %48, %49
%51 = load i32, i32* %3
%52 = icmp slt i32 %48, %51
%53 = select i1 %50, i1 %52, i1 false
br i1 %53, label %54, label %59
54: ; preds = %0
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i32 %48)
%56 = load i32, i32* %2
%57 = load i32, i32* %3
%58 = load i32, i32* %1
br label %59
59: ; preds = %54, %0
%60 = phi i32 [ %58, %54 ], [ %48, %0 ]
%61 = phi i32 [ %57, %54 ], [ %51, %0 ]
%62 = phi i32 [ %56, %54 ], [ %49, %0 ]
%63 = icmp slt i32 %62, %61
%64 = icmp slt i32 %62, %60
%65 = select i1 %63, i1 %64, i1 false
%66 = select i1 %65, i32 %62, i32 %61
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i32 %66)
ret i32 0
}