#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 *);
main() {
  int A[10] = {1, 2, 3, 4, 5, 6, 4, 3, 2, 1}, i = 1, j = 0;
  while (i == 1 && j <= 10 / 2) {
    if (A[j] != A[10 - j - 1])
      i = 0;
    else
      j++;
  }
  if (i == 1)
    printf("симметричен\n");
  else
    printf("не симметричен\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xec6(%rip),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
movl   $0x1,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
xor    %eax,%eax
cmpl   $0x1,-0x34(%rbp)
mov    %al,-0x39(%rbp)
jne    116b <main+0x4b>
cmpl   $0x5,-0x38(%rbp)
setle  %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    117b <main+0x5b>
jmp    11b5 <main+0x95>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    $0xa,%ecx
sub    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
je     11a7 <main+0x87>
movl   $0x0,-0x34(%rbp)
jmp    11b0 <main+0x90>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1152 <main+0x32>
cmpl   $0x1,-0x34(%rbp)
jne    11d0 <main+0xb0>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
jmp    11dc <main+0xbc>
lea    0xe51(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.A = [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 4, i32 3, i32 2, i32 1]
@.str = [24 x i8] c"\D1\81\D0\B8\D0\BC\D0\BC\D0\B5\D1\82\D1\80\D0\B8\D1\87\D0\B5\D0\BD\0A\00"
@.str.1 = [29 x i8] c"\D0\BD\D0\B5 \D1\81\D0\B8\D0\BC\D0\BC\D0\B5\D1\82\D1\80\D0\B8\D1\87\D0\B5\D0\BD\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = bitcast [10 x i32]* %2 to i8*
store i32 1, i32* %3
store i32 0, i32* %4
br label %6
6: ; preds = %30, %0
%7 = load i32, i32* %3
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = load i32, i32* %4
%11 = icmp sle i32 %10, 5
br label %12
12: ; preds = %9, %6
%13 = phi i1 [ false, %6 ], [ %11, %9 ]
br i1 %13, label %14, label %31
14: ; preds = %12
%15 = load i32, i32* %4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = load i32, i32* %4
%20 = sub nsw i32 10, %19
%21 = sub nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %22
%24 = load i32, i32* %23
%25 = icmp ne i32 %18, %24
br i1 %25, label %26, label %27
26: ; preds = %14
store i32 0, i32* %3
br label %30
27: ; preds = %14
%28 = load i32, i32* %4
%29 = add nsw i32 %28, 1
store i32 %29, i32* %4
br label %30
30: ; preds = %27, %26
br label %6
31: ; preds = %12
%32 = load i32, i32* %3
%33 = icmp eq i32 %32, 1
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
br label %38
36: ; preds = %31
%37 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
br label %38
38: ; preds = %36, %34
ret i32 0
}

LLVM IR (-O2):
@str = [28 x i8] c"\D0\BD\D0\B5 \D1\81\D0\B8\D0\BC\D0\BC\D0\B5\D1\82\D1\80\D0\B8\D1\87\D0\B5\D0\BD\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
ret i32 0
}