#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 *, ...);
main() {
  int x1, y1, x2, y2, x3, y3, X1, Y1, a;
  printf("Ââåäèòå êîîð-òû 3-õ âåðøèí ïàðàë-ìà\n");
  scanf("%d%d%d%d%d%d", &x1, &y1, &x2, &y2, &x3, &y3);
  while (x1 - x2 != x3 - X1) {
    X1++;
  }
  while (y1 - y2 != y3 - Y1) {
    Y1++;
  }
  printf("1: %d %d\n", X1, Y1);
  printf("Âåðíî? 1-Äà , 2-Íåò\n");
  scanf("%d", &a);
  if (a == 2) {
    X1 = x3 - X1 + x3;
    Y1 = y3 - Y1 + y3;
    printf("1: %d %d\n", X1, Y1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
lea    -0x1c(%rbp),%rax
mov    %rax,(%rsp)
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
sub    -0x10(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    -0x20(%rbp),%ecx
cmp    %ecx,%eax
je     1189 <main+0x69>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1167 <main+0x47>
jmp    118e <main+0x6e>
mov    -0xc(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    -0x24(%rbp),%ecx
cmp    %ecx,%eax
je     11b0 <main+0x90>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    118e <main+0x6e>
mov    -0x20(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe71(%rip),%rdi
lea    -0x28(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x2,-0x28(%rbp)
jne    121a <main+0xfa>
mov    -0x18(%rbp),%eax
sub    -0x20(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
sub    -0x24(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x28,%rsp
lea    0xeda(%rip),%rdi
call   1030 <puts@plt>
lea    0xc(%rsp),%rax
mov    %rax,(%rsp)
lea    0xeae(%rip),%rdi
lea    0x24(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x10(%rsp),%r9
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%ebp
add    0x1c(%rsp),%ebp
mov    0xc(%rsp),%ebx
add    0x18(%rsp),%ebx
sub    0x24(%rsp),%ebp
sub    0x20(%rsp),%ebx
lea    0xe7c(%rip),%rdi
mov    %ebp,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb3(%rip),%rdi
call   1030 <puts@plt>
lea    0xe5b(%rip),%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x2,0x14(%rsp)
jne    11e0 <main+0xb0>
mov    0x10(%rsp),%esi
add    %esi,%esi
sub    %ebp,%esi
mov    0xc(%rsp),%edx
add    %edx,%edx
sub    %ebx,%edx
lea    0xe34(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [64 x i8] c"\C3\82\C3\A2\C3\A5\C3\A4\C3\A8\C3\B2\C3\A5 \C3\AA\C3\AE\C3\AE\C3\B0-\C3\B2\C3\BB 3-\C3\B5 \C3\A2\C3\A5\C3\B0\C3\B8\C3\A8\C3\AD \C3\AF\C3\A0\C3\B0\C3\A0\C3\AB-\C3\AC\C3\A0\0A\00"
@.str.1 = [13 x i8] c"%d%d%d%d%d%d\00"
@.str.2 = [10 x i8] c"1: %d %d\0A\00"
@.str.3 = [31 x i8] c"\C3\82\C3\A5\C3\B0\C3\AD\C3\AE? 1-\C3\84\C3\A0 , 2-\C3\8D\C3\A5\C3\B2\0A\00"
@.str.4 = [3 x i8] c"%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
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7)
br label %13
13: ; preds = %21, %0
%14 = load i32, i32* %2
%15 = load i32, i32* %4
%16 = sub nsw i32 %14, %15
%17 = load i32, i32* %6
%18 = load i32, i32* %8
%19 = sub nsw i32 %17, %18
%20 = icmp ne i32 %16, %19
br i1 %20, label %21, label %24
21: ; preds = %13
%22 = load i32, i32* %8
%23 = add nsw i32 %22, 1
store i32 %23, i32* %8
br label %13
24: ; preds = %13
br label %25
25: ; preds = %33, %24
%26 = load i32, i32* %3
%27 = load i32, i32* %5
%28 = sub nsw i32 %26, %27
%29 = load i32, i32* %7
%30 = load i32, i32* %9
%31 = sub nsw i32 %29, %30
%32 = icmp ne i32 %28, %31
br i1 %32, label %33, label %36
33: ; preds = %25
%34 = load i32, i32* %9
%35 = add nsw i32 %34, 1
store i32 %35, i32* %9
br label %25
36: ; preds = %25
%37 = load i32, i32* %8
%38 = load i32, i32* %9
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %37, i32 %38)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%41 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %10)
%42 = load i32, i32* %10
%43 = icmp eq i32 %42, 2
br i1 %43, label %44, label %58
44: ; preds = %36
%45 = load i32, i32* %6
%46 = load i32, i32* %8
%47 = sub nsw i32 %45, %46
%48 = load i32, i32* %6
%49 = add nsw i32 %47, %48
store i32 %49, i32* %8
%50 = load i32, i32* %7
%51 = load i32, i32* %9
%52 = sub nsw i32 %50, %51
%53 = load i32, i32* %7
%54 = add nsw i32 %52, %53
store i32 %54, i32* %9
%55 = load i32, i32* %8
%56 = load i32, i32* %9
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %55, i32 %56)
br label %58
58: ; preds = %44, %36
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [13 x i8] c"%d%d%d%d%d%d\00"
@.str.2 = [10 x i8] c"1: %d %d\0A\00"
@.str.4 = [3 x i8] c"%d\00"
@str = [63 x i8] c"\C3\82\C3\A2\C3\A5\C3\A4\C3\A8\C3\B2\C3\A5 \C3\AA\C3\AE\C3\AE\C3\B0-\C3\B2\C3\BB 3-\C3\B5 \C3\A2\C3\A5\C3\B0\C3\B8\C3\A8\C3\AD \C3\AF\C3\A0\C3\B0\C3\A0\C3\AB-\C3\AC\C3\A0\00"
@str.5 = [30 x i8] c"\C3\82\C3\A5\C3\B0\C3\AD\C3\AE? 1-\C3\84\C3\A0 , 2-\C3\8D\C3\A5\C3\B2\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
%8 = bitcast i32* %1 to i8*
%9 = bitcast i32* %2 to i8*
%10 = bitcast i32* %3 to i8*
%11 = bitcast i32* %4 to i8*
%12 = bitcast i32* %5 to i8*
%13 = bitcast i32* %6 to i8*
%14 = bitcast i32* %7 to i8*
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str, i64 0, i64 0))
%16 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6)
%17 = load i32, i32* %1
%18 = load i32, i32* %3
%19 = load i32, i32* %5
%20 = add i32 %19, %18
%21 = load i32, i32* %2
%22 = load i32, i32* %4
%23 = load i32, i32* %6
%24 = add i32 %23, %22
%25 = sub i32 %20, %17
%26 = sub i32 %24, %21
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %25, i32 %26)
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.5, i64 0, i64 0))
%29 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%30 = load i32, i32* %7
%31 = icmp eq i32 %30, 2
br i1 %31, label %32, label %40
32: ; preds = %0
%33 = load i32, i32* %5
%34 = shl i32 %33, 1
%35 = sub i32 %34, %25
%36 = load i32, i32* %6
%37 = shl i32 %36, 1
%38 = sub i32 %37, %26
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %35, i32 %38)
br label %40
40: ; preds = %32, %0
ret i32 0
}