#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 q, w, e, r, t;
  printf("Введите 2 числа\n");
  scanf("%f   %f\n", &q, &w);
  if (q == w)
    printf("Введены 2 одинаковых числа\n");
  else
    e = q + w;
  r = q * w;
  printf("Сумма чисел = %d\n", e);
  printf("Прозведение чисел = %d\n", r);
  if (r > e) {
    t = r - e;
    printf("Прозведение данных чисел больше их суммы на %d\n", t);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1170 <main+0x50>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1179 <main+0x59>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%esi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11cb <main+0xab>
mov    -0x14(%rbp),%eax
sub    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%esi
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xf68(%rip),%rdi
call   1030 <puts@plt>
lea    0xeba(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
mov    (%rsp),%ebx
cmp    %ebx,%eax
jne    1173 <main+0x43>
lea    0xf59(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
mov    (%rsp),%ebx
jmp    1176 <main+0x46>
lea    (%rbx,%rax,1),%ebp
imul   %eax,%ebx
lea    0xe89(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe95(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
sub    %ebp,%ebx
jle    11ad <main+0x7d>
lea    0xea9(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
@.str.1 = [9 x i8] c"%f %f\0A\00"
@.str.3 = [28 x i8] c"\D0\A1\D1\83\D0\BC\D0\BC\D0\B0 \D1\87\D0\B8\D1\81\D0\B5\D0\BB = %d\0A\00"
@.str.4 = [40 x i8] c"\D0\9F\D1\80\D0\BE\D0\B7\D0\B2\D0\B5\D0\B4\D0\B5\D0\BD\D0\B8\D0\B5 \D1\87\D0\B8\D1\81\D0\B5\D0\BB = %d\0A\00"
@.str.5 = [85 x i8] c"\D0\9F\D1\80\D0\BE\D0\B7\D0\B2\D0\B5\D0\B4\D0\B5\D0\BD\D0\B8\D0\B5 \D0\B4\D0\B0\D0\BD\D0\BD\D1\8B\D1\85 \D1\87\D0\B8\D1\81\D0\B5\D0\BB \D0\B1\D0\BE\D0\BB\D1\8C\D1\88\D0\B5 \D0\B8\D1\85 \D1\81\D1\83\D0\BC\D0\BC\D1\8B \D0\BD\D0\B0 %d\0A\00"
@str = [28 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B8\D1\82\D0\B5 2 \D1\87\D0\B8\D1\81\D0\BB\D0\B0\00"
@str.6 = [49 x i8] c"\D0\92\D0\B2\D0\B5\D0\B4\D0\B5\D0\BD\D1\8B 2 \D0\BE\D0\B4\D0\B8\D0\BD\D0\B0\D0\BA\D0\BE\D0\B2\D1\8B\D1\85 \D1\87\D0\B8\D1\81\D0\BB\D0\B0\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 ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 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 ([49 x i8], [49 x i8]* @str.6, i64 0, i64 0))
%12 = load i32, i32* %1
%13 = load i32, i32* %2
br label %16
14: ; preds = %0
%15 = add nsw i32 %8, %7
br label %16
16: ; preds = %14, %10
%17 = phi i32 [ %13, %10 ], [ %8, %14 ]
%18 = phi i32 [ %12, %10 ], [ %7, %14 ]
%19 = phi i32 [ undef, %10 ], [ %15, %14 ]
%20 = mul nsw i32 %17, %18
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i32 %20)
%23 = icmp sgt i32 %20, %19
br i1 %23, label %24, label %27
24: ; preds = %16
%25 = sub nsw i32 %20, %19
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @.str.5, i64 0, i64 0), i32 %25)
br label %27
27: ; preds = %24, %16
ret i32 0
}