#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 */
scalar_t__ EOF;
int c(int, int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ scanf(char *, int *);
int main(int argc, const char *argv[]) {
  int n, i, j;
  while (scanf("%d", &n) != EOF) {
    for (i = n - 1; i >= 0; i--) {
      for (j = n - i; j > 1; j--) {
        printf(" ");
      }
      for (j = 0; j <= i - 1; j++)
        printf("%d ", c(i, j));
      printf("%d\n", c(i, j));
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb3(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
mov    0x2e8b(%rip),%rcx
cmp    (%rcx),%rax
je     1217 <main+0xe7>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jl     1212 <main+0xe2>
mov    -0x14(%rbp),%eax
sub    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jle    11a8 <main+0x78>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
jmp    1182 <main+0x52>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     11e9 <main+0xb9>
mov    -0x18(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   1040 <c@plt>
mov    %eax,%esi
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11af <main+0x7f>
mov    -0x18(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   1040 <c@plt>
mov    %eax,%esi
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    116f <main+0x3f>
jmp    1146 <main+0x16>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xeae(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x2e85(%rip),%rcx
cmp    (%rcx),%rax
jne    1179 <main+0x39>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe83(%rip),%r13
jmp    11ad <main+0x6d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xe69(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x2e40(%rip),%rcx
cmp    (%rcx),%rax
je     1168 <main+0x28>
mov    0x4(%rsp),%ebx
test   %ebx,%ebx
jle    1190 <main+0x50>
mov    $0x2,%r12d
sub    %ebx,%r12d
lea    -0x1(%rbx),%r15d
mov    %ebx,%r14d
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x1(%r14),%ebp
mov    %ebx,%eax
sub    %ebp,%eax
cmp    $0x2,%eax
jl     11f2 <main+0xb2>
add    %r12d,%ebx
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
cmp    $0x2,%ebx
ja     11e0 <main+0xa0>
xor    %esi,%esi
cmp    $0x2,%r14d
jl     121f <main+0xdf>
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %ebp,%edi
mov    %ebx,%esi
call   1050 <c@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebx
cmp    %ebx,%r15d
jne    1200 <main+0xc0>
mov    %ebp,%esi
mov    %ebp,%edi
call   1050 <c@plt>
lea    0xdda(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%r14d
jl     1190 <main+0x50>
mov    0x4(%rsp),%ebx
add    $0x1,%r12d
add    $0xffffffff,%r15d
mov    %ebp,%r14d
jmp    11d0 <main+0x90>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.1 = [2 x i8] c" \00"
@.str.2 = [4 x i8] c"%d \00"
@.str.3 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %9
9: ; preds = %53, %2
%10 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%11 = load i64, i64* @EOF
%12 = icmp ne i64 %10, %11
br i1 %12, label %13, label %54
13: ; preds = %9
%14 = load i32, i32* %6
%15 = sub nsw i32 %14, 1
store i32 %15, i32* %7
br label %16
16: ; preds = %50, %13
%17 = load i32, i32* %7
%18 = icmp sge i32 %17, 0
br i1 %18, label %19, label %53
19: ; preds = %16
%20 = load i32, i32* %6
%21 = load i32, i32* %7
%22 = sub nsw i32 %20, %21
store i32 %22, i32* %8
br label %23
23: ; preds = %28, %19
%24 = load i32, i32* %8
%25 = icmp sgt i32 %24, 1
br i1 %25, label %26, label %31
26: ; preds = %23
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %28
28: ; preds = %26
%29 = load i32, i32* %8
%30 = add nsw i32 %29, -1
store i32 %30, i32* %8
br label %23
31: ; preds = %23
store i32 0, i32* %8
br label %32
32: ; preds = %42, %31
%33 = load i32, i32* %8
%34 = load i32, i32* %7
%35 = sub nsw i32 %34, 1
%36 = icmp sle i32 %33, %35
br i1 %36, label %37, label %45
37: ; preds = %32
%38 = load i32, i32* %7
%39 = load i32, i32* %8
%40 = call i32 @c(i32 %38, i32 %39)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %37
%43 = load i32, i32* %8
%44 = add nsw i32 %43, 1
store i32 %44, i32* %8
br label %32
45: ; preds = %32
%46 = load i32, i32* %7
%47 = load i32, i32* %8
%48 = call i32 @c(i32 %46, i32 %47)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %48)
br label %50
50: ; preds = %45
%51 = load i32, i32* %7
%52 = add nsw i32 %51, -1
store i32 %52, i32* %7
br label %16
53: ; preds = %16
br label %9
54: ; preds = %9
ret i32 0
}

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