#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*/ assert(int);
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ printw(char *, int);
void printIntxy(int x, int y, int i) {
  assert(x >= 0);
  assert(x < 80);
  ;
  ;
  assert(y >= 0);
  assert(y < 20);
  ;
  ;
  move(y + 1, x);
  printw("%c", i);
}


x86 assembly (clang, -O0):
<printIntxy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x50,-0x4(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0x8(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x14,-0x8(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    -0x4(%rbp),%esi
call   1050 <move@plt>
mov    -0xc(%rbp),%esi
lea    0xe63(%rip),%rdi
call   1040 <printw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printIntxy>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebx
mov    %edi,%ebp
not    %edi
shr    $0x1f,%edi
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x50,%ebp
setl   %dil
call   1030 <assert@plt>
mov    %ebx,%edi
not    %edi
shr    $0x1f,%edi
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x14,%ebx
setl   %dil
call   1030 <assert@plt>
add    $0x1,%ebx
mov    %ebx,%edi
mov    %ebp,%esi
call   1050 <move@plt>
lea    0xe80(%rip),%rdi
mov    %r14d,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <printw@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define void @printIntxy(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = icmp sge i32 %7, 0
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 80
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
%15 = load i32, i32* %5
%16 = icmp sge i32 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = load i32, i32* %5
%20 = icmp slt i32 %19, 20
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = load i32, i32* %5
%24 = add nsw i32 %23, 1
%25 = load i32, i32* %4
%26 = call i32 @move(i32 %24, i32 %25)
%27 = load i32, i32* %6
%28 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %27)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define void @printIntxy(i32 %0, i32 %1, i32 %2) {
%4 = xor i32 %0, -1
%5 = lshr i32 %4, 31
%6 = tail call i32 @assert(i32 %5)
%7 = icmp slt i32 %0, 80
%8 = zext i1 %7 to i32
%9 = tail call i32 @assert(i32 %8)
%10 = xor i32 %1, -1
%11 = lshr i32 %10, 31
%12 = tail call i32 @assert(i32 %11)
%13 = icmp slt i32 %1, 20
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 %14)
%16 = add nsw i32 %1, 1
%17 = tail call i32 @move(i32 %16, i32 %0)
%18 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %2)
ret void
}