#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);
int /*<<< orphan*/ putchar(char);
int main(int argc, char **argv) {
  int matrix[10][10] = {{-1, -1, -1, -1, -1, -1, 0, 1, -1, 1},
                        {1, -1, -1, -1, -1, -1, -1, -1, -1, 1},
                        {-1, -1, 0, -1, 1, -1, -1, -1, -1, -1},
                        {-1, -1, -1, -1, 0, -1, -1, -1, -1, -1},
                        {-1, -1, -1, -1, -1, -1, 0, -1, -1, 1},
                        {-1, -1, -1, -1, -1, 1, -1, -1, 1, -1},
                        {-1, -1, -1, -1, -1, -1, 0, -1, -1, 0},
                        {0, -1, -1, -1, -1, -1, -1, -1, -1, -1},
                        {-1, -1, 1, 1, -1, -1, -1, -1, -1, 1},
                        {0, -1, 1, -1, -1, -1, -1, -1, 0, -1}};
  for (int x = 0; x < 10; x++) {
    for (int y = 0; y < 10; y++) {
      if (matrix[x][y] == -1)
        putchar('-');
      else
        printf("%d", matrix[x][y]);
    }
    putchar('\n');
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x1a0(%rbp),%rdi
lea    0xea9(%rip),%rsi
mov    $0x190,%edx
call   1050 <memcpy@plt>
movl   $0x0,-0x1a4(%rbp)
cmpl   $0xa,-0x1a4(%rbp)
jge    1226 <main+0xf6>
movl   $0x0,-0x1a8(%rbp)
cmpl   $0xa,-0x1a8(%rbp)
jge    1208 <main+0xd8>
movslq -0x1a4(%rbp),%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x1a8(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
jne    11c4 <main+0x94>
mov    $0x2d,%edi
call   1030 <putchar@plt>
jmp    11ef <main+0xbf>
movslq -0x1a4(%rbp),%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x1a8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xfa6(%rip),%rdi
call   1040 <printf@plt>
jmp    11f4 <main+0xc4>
mov    -0x1a8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a8(%rbp)
jmp    1182 <main+0x52>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    116b <main+0x3b>
xor    %eax,%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xef2(%rip),%r15
xor    %ebx,%ebx
lea    0x1055(%rip),%r14
mov    $0xfb,%r13d
mov    $0x3ae,%ebp
mov    $0x2ac,%r12d
jmp    1176 <main+0x56>
xchg   %ax,%ax
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
add    $0x28,%r15
cmp    $0xa,%rbx
je     12c4 <main+0x1a4>
mov    $0x17d,%eax
bt     %rbx,%rax
jb     1190 <main+0x70>
mov    -0x24(%r15),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
jmp    119a <main+0x7a>
nop
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
bt     %rbx,%r13
jb     1220 <main+0x100>
mov    -0x1c(%r15),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
cmp    $0x8,%rbx
je     1230 <main+0x110>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    %rbx,%rax
movabs $0x7ffffffffffffffe,%rcx
ff ff 7f
and    %rcx,%rax
cmp    $0x2,%rax
jne    123c <main+0x11c>
mov    -0x14(%r15),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
cmp    $0x5,%rbx
je     124c <main+0x12c>
mov    $0x2d,%edi
call   1030 <putchar@plt>
bt     %rbx,%rbp
jae    125e <main+0x13e>
mov    $0x2d,%edi
call   1030 <putchar@plt>
test   %rbx,%rbx
je     126f <main+0x14f>
mov    $0x2d,%edi
call   1030 <putchar@plt>
cmp    $0x9,%rbx
jne    1281 <main+0x161>
jmp    1287 <main+0x167>
nop
mov    $0x2d,%edi
call   1030 <putchar@plt>
cmp    $0x8,%rbx
jne    11bc <main+0x9c>
mov    -0x18(%r15),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
cmp    $0x5,%rbx
jne    11ee <main+0xce>
mov    -0x10(%r15),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
bt     %rbx,%rbp
jb     11fe <main+0xde>
mov    -0xc(%r15),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
test   %rbx,%rbx
jne    120d <main+0xed>
mov    -0x8(%r15),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
cmp    $0x9,%rbx
je     1287 <main+0x167>
cmp    $0x5,%rbx
jne    12a0 <main+0x180>
mov    -0x4(%r15),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
bt     %rbx,%r12
jb     1150 <main+0x30>
jmp    12b4 <main+0x194>
nop
mov    $0x2d,%edi
call   1030 <putchar@plt>
bt     %rbx,%r12
jb     1150 <main+0x30>
mov    (%r15),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
jmp    115a <main+0x3a>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.matrix = [10 x [10 x i32]] [[10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 1, i32 -1, i32 1], [10 x i32] [i32 1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 1], [10 x i32] [i32 -1, i32 -1, i32 0, i32 -1, i32 1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1], [10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1], [10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 -1, i32 -1, i32 1], [10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 1, i32 -1, i32 -1, i32 1, i32 -1], [10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 -1, i32 -1, i32 0], [10 x i32] [i32 0, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1], [10 x i32] [i32 -1, i32 -1, i32 1, i32 1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 1], [10 x i32] [i32 0, i32 -1, i32 1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 -1]]
@.str = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [10 x [10 x i32]]
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = bitcast [10 x [10 x i32]]* %6 to i8*
store i32 0, i32* %7
br label %10
10: ; preds = %43, %2
%11 = load i32, i32* %7
%12 = icmp slt i32 %11, 10
br i1 %12, label %13, label %46
13: ; preds = %10
store i32 0, i32* %8
br label %14
14: ; preds = %38, %13
%15 = load i32, i32* %8
%16 = icmp slt i32 %15, 10
br i1 %16, label %17, label %41
17: ; preds = %14
%18 = load i32, i32* %7
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %6, i64 0, i64 %19
%21 = load i32, i32* %8
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %20, i64 0, i64 %22
%24 = load i32, i32* %23
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %17
%27 = call i32 @putchar(i8 signext 45)
br label %37
28: ; preds = %17
%29 = load i32, i32* %7
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %6, i64 0, i64 %30
%32 = load i32, i32* %8
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [10 x i32], [10 x i32]* %31, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %35)
br label %37
37: ; preds = %28, %26
br label %38
38: ; preds = %37
%39 = load i32, i32* %8
%40 = add nsw i32 %39, 1
store i32 %40, i32* %8
br label %14
41: ; preds = %14
%42 = call i32 @putchar(i8 signext 10)
br label %43
43: ; preds = %41
%44 = load i32, i32* %7
%45 = add nsw i32 %44, 1
store i32 %45, i32* %7
br label %10
46: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@__const.main.matrix = [10 x [10 x i32]] [[10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 1, i32 -1, i32 1], [10 x i32] [i32 1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 1], [10 x i32] [i32 -1, i32 -1, i32 0, i32 -1, i32 1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1], [10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1], [10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 -1, i32 -1, i32 1], [10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 1, i32 -1, i32 -1, i32 1, i32 -1], [10 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 -1, i32 -1, i32 0], [10 x i32] [i32 0, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1], [10 x i32] [i32 -1, i32 -1, i32 1, i32 1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 1], [10 x i32] [i32 0, i32 -1, i32 1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 0, i32 -1]]
@.str = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %85
%4 = phi i64 [ 0, %2 ], [ %87, %85 ]
%5 = lshr i64 381, %4
%6 = and i64 %5, 1
%7 = icmp eq i64 %6, 0
br i1 %7, label %11, label %9
8: ; preds = %85
ret i32 0
9: ; preds = %3
%10 = tail call i32 @putchar(i8 signext 45)
br label %15
11: ; preds = %3
%12 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* @__const.main.matrix, i64 0, i64 %4, i64 0
%13 = load i32, i32* %12
%14 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %13)
br label %15
15: ; preds = %9, %11
%16 = tail call i32 @putchar(i8 signext 45)
%17 = lshr i64 251, %4
%18 = and i64 %17, 1
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* @__const.main.matrix, i64 0, i64 %4, i64 2
%22 = load i32, i32* %21
%23 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %22)
br label %26
24: ; preds = %15
%25 = tail call i32 @putchar(i8 signext 45)
br label %26
26: ; preds = %24, %20
%27 = icmp eq i64 %4, 8
br i1 %27, label %28, label %32
28: ; preds = %26
%29 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* @__const.main.matrix, i64 0, i64 %4, i64 3
%30 = load i32, i32* %29
%31 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %30)
br label %40
32: ; preds = %26
%33 = tail call i32 @putchar(i8 signext 45)
%34 = and i64 %4, 9223372036854775806
%35 = icmp eq i64 %34, 2
br i1 %35, label %36, label %40
36: ; preds = %32
%37 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* @__const.main.matrix, i64 0, i64 %4, i64 4
%38 = load i32, i32* %37
%39 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %38)
br label %42
40: ; preds = %28, %32
%41 = tail call i32 @putchar(i8 signext 45)
br label %42
42: ; preds = %40, %36
%43 = icmp eq i64 %4, 5
br i1 %43, label %44, label %48
44: ; preds = %42
%45 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* @__const.main.matrix, i64 0, i64 %4, i64 5
%46 = load i32, i32* %45
%47 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %46)
br label %50
48: ; preds = %42
%49 = tail call i32 @putchar(i8 signext 45)
br label %50
50: ; preds = %48, %44
%51 = lshr i64 942, %4
%52 = and i64 %51, 1
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* @__const.main.matrix, i64 0, i64 %4, i64 6
%56 = load i32, i32* %55
%57 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %56)
br label %60
58: ; preds = %50
%59 = tail call i32 @putchar(i8 signext 45)
br label %60
60: ; preds = %58, %54
%61 = icmp eq i64 %4, 0
br i1 %61, label %62, label %66
62: ; preds = %60
%63 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* @__const.main.matrix, i64 0, i64 %4, i64 7
%64 = load i32, i32* %63
%65 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %64)
br label %68
66: ; preds = %60
%67 = tail call i32 @putchar(i8 signext 45)
br label %68
68: ; preds = %66, %62
switch i64 %4, label %73 [
i64 9, label %69
i64 5, label %69
]
69: ; preds = %68, %68
%70 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* @__const.main.matrix, i64 0, i64 %4, i64 8
%71 = load i32, i32* %70
%72 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %71)
br label %75
73: ; preds = %68
%74 = tail call i32 @putchar(i8 signext 45)
br label %75
75: ; preds = %73, %69
%76 = lshr i64 684, %4
%77 = and i64 %76, 1
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %75
%80 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* @__const.main.matrix, i64 0, i64 %4, i64 9
%81 = load i32, i32* %80
%82 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %81)
br label %85
83: ; preds = %75
%84 = tail call i32 @putchar(i8 signext 45)
br label %85
85: ; preds = %83, %79
%86 = tail call i32 @putchar(i8 signext 10)
%87 = add nuw nsw i64 %4, 1
%88 = icmp eq i64 %87, 10
br i1 %88, label %8, label %3
}