#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*/ addch(char);
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ tui_flush();
void del_box(int x, int y, int size_x, int size_y) {
  int n, m;
  for (n = 0; n < size_y; n++) {
    for (m = 0; m < size_x; m++) {
      move((y + n - 1), (x + m - 1));
      addch(' ');
    }
  }
  tui_flush();
}


x86 assembly (clang, -O0):
<del_box>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11ac <del_box+0x7c>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1199 <del_box+0x69>
mov    -0x8(%rbp),%edi
add    -0x14(%rbp),%edi
sub    $0x1,%edi
mov    -0x4(%rbp),%esi
add    -0x18(%rbp),%esi
sub    $0x1,%esi
call   1050 <move@plt>
mov    $0x20,%edi
call   1030 <addch@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    115e <del_box+0x2e>
jmp    119e <del_box+0x6e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114b <del_box+0x1b>
mov    $0x0,%al
call   1040 <tui_flush@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<del_box>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,0x10(%rsp)
mov    %edi,0xc(%rsp)
test   %ecx,%ecx
jle    11ae <del_box+0x7e>
mov    %ecx,%r12d
mov    %edx,%r15d
mov    0x10(%rsp),%rax
add    $0xffffffff,%eax
mov    %rax,0x10(%rsp)
addl   $0xffffffff,0xc(%rsp)
xor    %r14d,%r14d
jmp    1179 <del_box+0x49>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14d
cmp    %r12d,%r14d
je     11ae <del_box+0x7e>
test   %r15d,%r15d
jle    1170 <del_box+0x40>
mov    0x10(%rsp),%rax
lea    (%rax,%r14,1),%ebx
mov    0xc(%rsp),%ebp
mov    %r15d,%r13d
xchg   %ax,%ax
mov    %ebx,%edi
mov    %ebp,%esi
call   1050 <move@plt>
mov    $0x20,%edi
call   1030 <addch@plt>
add    $0x1,%ebp
add    $0xffffffff,%r13d
jne    1190 <del_box+0x60>
jmp    1170 <del_box+0x40>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <tui_flush@plt>

LLVM IR (-O0):
define void @del_box(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store i32 0, i32* %9
br label %11
11: ; preds = %35, %4
%12 = load i32, i32* %9
%13 = load i32, i32* %8
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %38
15: ; preds = %11
store i32 0, i32* %10
br label %16
16: ; preds = %31, %15
%17 = load i32, i32* %10
%18 = load i32, i32* %7
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %34
20: ; preds = %16
%21 = load i32, i32* %6
%22 = load i32, i32* %9
%23 = add nsw i32 %21, %22
%24 = sub nsw i32 %23, 1
%25 = load i32, i32* %5
%26 = load i32, i32* %10
%27 = add nsw i32 %25, %26
%28 = sub nsw i32 %27, 1
%29 = call i32 @move(i32 %24, i32 %28)
%30 = call i32 @addch(i8 signext 32)
br label %31
31: ; preds = %20
%32 = load i32, i32* %10
%33 = add nsw i32 %32, 1
store i32 %33, i32* %10
br label %16
34: ; preds = %16
br label %35
35: ; preds = %34
%36 = load i32, i32* %9
%37 = add nsw i32 %36, 1
store i32 %37, i32* %9
br label %11
38: ; preds = %11
%39 = call i32 (...) @tui_flush()
ret void
}

LLVM IR (-O2):
define void @del_box(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = icmp sgt i32 %3, 0
br i1 %5, label %6, label %24
6: ; preds = %4
%7 = icmp sgt i32 %2, 0
%8 = add i32 %1, -1
%9 = add i32 %0, -1
br label %10
10: ; preds = %6, %21
%11 = phi i32 [ 0, %6 ], [ %22, %21 ]
br i1 %7, label %12, label %21
12: ; preds = %10
%13 = add i32 %8, %11
br label %14
14: ; preds = %12, %14
%15 = phi i32 [ 0, %12 ], [ %19, %14 ]
%16 = add i32 %9, %15
%17 = tail call i32 @move(i32 %13, i32 %16)
%18 = tail call i32 @addch(i8 signext 32)
%19 = add nuw nsw i32 %15, 1
%20 = icmp eq i32 %19, %2
br i1 %20, label %21, label %14
21: ; preds = %14, %10
%22 = add nuw nsw i32 %11, 1
%23 = icmp eq i32 %22, %3
br i1 %23, label %24, label %10
24: ; preds = %21, %4
%25 = tail call i32 (...) @tui_flush()
ret void
}