#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 *);
main() {
  int num1, num2;
  printf("Введите два числа для их сравнения.\n");
  scanf("%d%d", &num1, &num2);
  if (num1 == num2)
    printf("Числа равны\n");
  if (num1 > num2)
    printf("Число %d большее\n", num1);
  if (num1 < num2)
    printf("Число %d большее\n", num2);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    116b <main+0x4b>
lea    0xee3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1188 <main+0x68>
mov    -0x8(%rbp),%esi
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11a5 <main+0x85>
mov    -0xc(%rbp),%esi
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1050 <scanf@plt>
mov    0x4(%rsp),%esi
mov    (%rsp),%eax
cmp    %eax,%esi
je     1178 <main+0x48>
cmp    %eax,%esi
jg     118f <main+0x5f>
cmp    %eax,%esi
jge    1174 <main+0x44>
lea    0xe9a(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%esi
mov    (%rsp),%eax
cmp    %eax,%esi
jle    1160 <main+0x30>
lea    0xe6f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
mov    (%rsp),%eax
cmp    %eax,%esi
jl     1164 <main+0x34>
jmp    1174 <main+0x44>

LLVM IR (-O0):
@.str = [66 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B4\D0\B2\D0\B0 \D1\87\D0\B8\D1\81\D0\BB\D0\B0 \D0\B4\D0\BB\D1\8F \D0\B8\D1\85 \D1\81\D1\80\D0\B0\D0\B2\D0\BD\D0\B5\D0\BD\D0\B8\D1\8F.\0A\00"
@.str.1 = [5 x i8] c"%d%d\00"
@.str.2 = [23 x i8] c"\D0\A7\D0\B8\D1\81\D0\BB\D0\B0 \D1\80\D0\B0\D0\B2\D0\BD\D1\8B\0A\00"
@.str.3 = [30 x i8] c"\D0\A7\D0\B8\D1\81\D0\BB\D0\BE %d \D0\B1\D0\BE\D0\BB\D1\8C\D1\88\D0\B5\D0\B5\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3)
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = icmp eq i32 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
br label %11
11: ; preds = %9, %0
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, i32* %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %16)
br label %18
18: ; preds = %15, %11
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, i32* %3
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %23)
br label %25
25: ; preds = %22, %18
%26 = load i32, i32* %1
ret i32 %26
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"%d%d\00"
@.str.3 = [30 x i8] c"\D0\A7\D0\B8\D1\81\D0\BB\D0\BE %d \D0\B1\D0\BE\D0\BB\D1\8C\D1\88\D0\B5\D0\B5\0A\00"
@str = [65 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 \D0\B4\D0\B2\D0\B0 \D1\87\D0\B8\D1\81\D0\BB\D0\B0 \D0\B4\D0\BB\D1\8F \D0\B8\D1\85 \D1\81\D1\80\D0\B0\D0\B2\D0\BD\D0\B5\D0\BD\D0\B8\D1\8F.\00"
@str.4 = [22 x i8] c"\D0\A7\D0\B8\D1\81\D0\BB\D0\B0 \D1\80\D0\B0\D0\B2\D0\BD\D1\8B\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2)
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = icmp eq i32 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.4, i64 0, i64 0))
%12 = load i32, i32* %1
%13 = load i32, i32* %2
br label %14
14: ; preds = %10, %0
%15 = phi i32 [ %13, %10 ], [ %8, %0 ]
%16 = phi i32 [ %12, %10 ], [ %7, %0 ]
%17 = icmp sgt i32 %16, %15
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %16)
%20 = load i32, i32* %1
%21 = load i32, i32* %2
br label %22
22: ; preds = %18, %14
%23 = phi i32 [ %21, %18 ], [ %15, %14 ]
%24 = phi i32 [ %20, %18 ], [ %16, %14 ]
%25 = icmp slt i32 %24, %23
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %23)
br label %28
28: ; preds = %26, %22
ret i32 0
}