#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 atoi(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int arg, char *argv[]) {
  int x = 0, y = 0;
  int i, j;
  x = atoi(argv[1]);
  y = atoi(argv[2]);
  printf("x = %d \ny = %d", x, y);
  printf("\n\n\n");
  for (i = 1; i <= 15; i++) {
    printf("|");
    for (j = 1; j <= 15; j++) {
      if (15 - i <= y && x == j)
        printf("*");
      else if (x != j && i != 15)
        printf(" ");
      if (i == 15 && j != x)
        printf("_");
    }
    printf("\n");
  }
  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)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x1c(%rbp)
cmpl   $0xf,-0x1c(%rbp)
jg     1262 <main+0x142>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x20(%rbp)
cmpl   $0xf,-0x20(%rbp)
jg     1246 <main+0x126>
mov    $0xf,%eax
sub    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     11e6 <main+0xc6>
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jne    11e6 <main+0xc6>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    120f <main+0xef>
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     120a <main+0xea>
cmpl   $0xf,-0x1c(%rbp)
je     120a <main+0xea>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    120f <main+0xef>
cmpl   $0xf,-0x1c(%rbp)
jne    1233 <main+0x113>
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     1233 <main+0x113>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1238 <main+0x118>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11ac <main+0x8c>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    118d <main+0x6d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
call   1060 <atoi@plt>
mov    %eax,%ebx
mov    0x10(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,%r14d
lea    0xe97(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe94(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%r15d
jmp    11a4 <main+0x64>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15d
cmp    $0x10,%r15d
je     1211 <main+0xd1>
mov    $0x7c,%edi
call   1030 <putchar@plt>
mov    $0xf,%r12d
sub    %r15d,%r12d
mov    $0x1,%ebp
jmp    11cd <main+0x8d>
xchg   %ax,%ax
call   1030 <putchar@plt>
add    $0x1,%ebp
cmp    $0x10,%ebp
je     1190 <main+0x50>
cmp    %r14d,%r12d
jg     11f0 <main+0xb0>
cmp    %ebp,%ebx
jne    11f0 <main+0xb0>
mov    $0x2a,%edi
call   1030 <putchar@plt>
jmp    1200 <main+0xc0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    %ebp,%ebx
je     1200 <main+0xc0>
mov    $0x20,%edi
cmp    $0xf,%r15d
jne    11c0 <main+0x80>
nop
cmp    $0xf,%r15d
jne    11c5 <main+0x85>
mov    $0x5f,%edi
cmp    %ebp,%ebx
jne    11c0 <main+0x80>
jmp    11c5 <main+0x85>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"x = %d \0Ay = %d\00"
@.str.1 = [4 x i8] c"\0A\0A\0A\00"
@.str.2 = [2 x i8] c"|\00"
@.str.3 = [2 x i8] c"*\00"
@.str.4 = [2 x i8] c" \00"
@.str.5 = [2 x i8] c"_\00"
@.str.6 = [2 x i8] c"\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
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = call i32 @atoi(i8* %12)
store i32 %13, i32* %6
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 2
%16 = load i8*, i8** %15
%17 = call i32 @atoi(i8* %16)
store i32 %17, i32* %7
%18 = load i32, i32* %6
%19 = load i32, i32* %7
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %19)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %8
br label %22
22: ; preds = %66, %2
%23 = load i32, i32* %8
%24 = icmp sle i32 %23, 15
br i1 %24, label %25, label %69
25: ; preds = %22
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %9
br label %27
27: ; preds = %61, %25
%28 = load i32, i32* %9
%29 = icmp sle i32 %28, 15
br i1 %29, label %30, label %64
30: ; preds = %27
%31 = load i32, i32* %8
%32 = sub nsw i32 15, %31
%33 = load i32, i32* %7
%34 = icmp sle i32 %32, %33
br i1 %34, label %35, label %41
35: ; preds = %30
%36 = load i32, i32* %6
%37 = load i32, i32* %9
%38 = icmp eq i32 %36, %37
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %51
41: ; preds = %35, %30
%42 = load i32, i32* %6
%43 = load i32, i32* %9
%44 = icmp ne i32 %42, %43
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = load i32, i32* %8
%47 = icmp ne i32 %46, 15
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %50
50: ; preds = %48, %45, %41
br label %51
51: ; preds = %50, %39
%52 = load i32, i32* %8
%53 = icmp eq i32 %52, 15
br i1 %53, label %54, label %60
54: ; preds = %51
%55 = load i32, i32* %9
%56 = load i32, i32* %6
%57 = icmp ne i32 %55, %56
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %60
60: ; preds = %58, %54, %51
br label %61
61: ; preds = %60
%62 = load i32, i32* %9
%63 = add nsw i32 %62, 1
store i32 %63, i32* %9
br label %27
64: ; preds = %27
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %66
66: ; preds = %64
%67 = load i32, i32* %8
%68 = add nsw i32 %67, 1
store i32 %68, i32* %8
br label %22
69: ; preds = %22
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"x = %d \0Ay = %d\00"
@str = [3 x i8] c"\0A\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @atoi(i8* %4)
%6 = getelementptr inbounds i8*, i8** %1, i64 2
%7 = load i8*, i8** %6
%8 = tail call i32 @atoi(i8* %7)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %8)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
br label %11
11: ; preds = %2, %34
%12 = phi i32 [ 1, %2 ], [ %36, %34 ]
%13 = tail call i32 @putchar(i32 124)
%14 = sub nuw nsw i32 15, %12
%15 = icmp sle i32 %14, %8
%16 = icmp ne i32 %12, 15
br label %17
17: ; preds = %11, %31
%18 = phi i32 [ 1, %11 ], [ %32, %31 ]
%19 = icmp eq i32 %5, %18
%20 = select i1 %15, i1 %19, i1 false
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = tail call i32 @putchar(i32 42)
br label %26
23: ; preds = %17
%24 = icmp ne i32 %5, %18
%25 = select i1 %24, i1 %16, i1 false
br i1 %25, label %28, label %26
26: ; preds = %23, %21
%27 = select i1 %16, i1 true, i1 %19
br i1 %27, label %31, label %28
28: ; preds = %26, %23
%29 = phi i32 [ 32, %23 ], [ 95, %26 ]
%30 = tail call i32 @putchar(i32 %29)
br label %31
31: ; preds = %28, %26
%32 = add nuw nsw i32 %18, 1
%33 = icmp eq i32 %32, 16
br i1 %33, label %34, label %17
34: ; preds = %31
%35 = tail call i32 @putchar(i32 10)
%36 = add nuw nsw i32 %12, 1
%37 = icmp eq i32 %36, 16
br i1 %37, label %38, label %11
38: ; preds = %34
ret i32 0
}