#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 popNumber();
char *popString();
int /*<<< orphan*/ pushStringCopy(char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ zoneinputs(int, int, int, char *);
void basZoneInputs() {
  char *txt;
  int l, y, x;
  char defs[255];
  txt = popString();
  strcpy(defs, txt);
  l = popNumber();
  y = popNumber();
  x = popNumber();
  zoneinputs(x, y, l, defs);
  pushStringCopy(defs);
}


x86 assembly (clang, -O0):
<basZoneInputs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    $0x0,%al
call   1050 <popString@plt>
mov    %rax,-0x8(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    $0x0,%al
call   1070 <popNumber@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1070 <popNumber@plt>
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1070 <popNumber@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    -0x120(%rbp),%rcx
call   1040 <zoneinputs@plt>
lea    -0x120(%rbp),%rdi
call   1060 <pushStringCopy@plt>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<basZoneInputs>:
push   %rbp
push   %r14
push   %rbx
sub    $0x100,%rsp
xor    %eax,%eax
call   1050 <popString@plt>
mov    %rsp,%r14
mov    %r14,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
xor    %eax,%eax
call   1070 <popNumber@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1070 <popNumber@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1070 <popNumber@plt>
mov    %eax,%edi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14,%rcx
call   1040 <zoneinputs@plt>
mov    %r14,%rdi
call   1060 <pushStringCopy@plt>
add    $0x100,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @basZoneInputs() {
%1 = alloca i8*
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [255 x i8]
%6 = call i8* (...) @popString()
store i8* %6, i8** %1
%7 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%8 = load i8*, i8** %1
%9 = call i32 @strcpy(i8* %7, i8* %8)
%10 = call i32 (...) @popNumber()
store i32 %10, i32* %2
%11 = call i32 (...) @popNumber()
store i32 %11, i32* %3
%12 = call i32 (...) @popNumber()
store i32 %12, i32* %4
%13 = load i32, i32* %4
%14 = load i32, i32* %3
%15 = load i32, i32* %2
%16 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%17 = call i32 @zoneinputs(i32 %13, i32 %14, i32 %15, i8* %16)
%18 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%19 = call i32 @pushStringCopy(i8* %18)
ret void
}

LLVM IR (-O2):
define void @basZoneInputs() {
%1 = alloca [255 x i8]
%2 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%3 = tail call i8* (...) @popString()
%4 = call i32 @strcpy(i8* %2, i8* %3)
%5 = call i32 (...) @popNumber()
%6 = call i32 (...) @popNumber()
%7 = call i32 (...) @popNumber()
%8 = call i32 @zoneinputs(i32 %7, i32 %6, i32 %5, i8* %2)
%9 = call i32 @pushStringCopy(i8* %2)
ret void
}