#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, size_t, char *, char *,
                           char *);
char *mark(size_t, char *);
int /*<<< orphan*/ stderr;
void inputerr(char *str, size_t pos) {
  char *marker, *msg;
  msg = "Input can only consist of alphanumeric "
        "characters.\n\t Besides it can't contain the "
        "special blank character.";
  marker = mark(pos, str);
  fprintf(stderr, "Input error at position %zu: %s\n %s\n %s\n", ++pos, msg,
          str, marker);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<inputerr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb9(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <mark@plt>
mov    %rax,-0x18(%rbp)
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    -0x20(%rbp),%rcx
mov    -0x8(%rbp),%r8
mov    -0x18(%rbp),%r9
lea    0xee7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e48(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<inputerr>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
mov    %r14,%rsi
call   1040 <mark@plt>
mov    0x2e94(%rip),%rcx
mov    (%rcx),%edi
add    $0x1,%rbx
lea    0xf12(%rip),%rsi
lea    0xea0(%rip),%rcx
mov    %rbx,%rdx
mov    %r14,%r8
mov    %rax,%r9
call   1030 <fprintf@plt>
mov    0x2e63(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [107 x i8] c"Input can only consist of alphanumeric characters.\0A\09 Besides it can't contain the special blank character.\00"
@stderr = global i32 0
@.str.1 = [41 x i8] c"Input error at position %zu: %s\0A %s\0A %s\0A\00"
@EXIT_FAILURE = global i32 0
define void @inputerr(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %3
store i64 %1, i64* %4
store i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str, i64 0, i64 0), i8** %6
%7 = load i64, i64* %4
%8 = load i8*, i8** %3
%9 = call i8* @mark(i64 %7, i8* %8)
store i8* %9, i8** %5
%10 = load i32, i32* @stderr
%11 = load i64, i64* %4
%12 = add i64 %11, 1
store i64 %12, i64* %4
%13 = load i8*, i8** %6
%14 = load i8*, i8** %3
%15 = load i8*, i8** %5
%16 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i64 %12, i8* %13, i8* %14, i8* %15)
%17 = load i32, i32* @EXIT_FAILURE
%18 = call i32 @exit(i32 %17)
unreachable
}

LLVM IR (-O2):
@.str = [107 x i8] c"Input can only consist of alphanumeric characters.\0A\09 Besides it can't contain the special blank character.\00"
@stderr = global i32 0
@.str.1 = [41 x i8] c"Input error at position %zu: %s\0A %s\0A %s\0A\00"
@EXIT_FAILURE = global i32 0
define void @inputerr(i8* %0, i64 %1) {
%3 = tail call i8* @mark(i64 %1, i8* %0)
%4 = load i32, i32* @stderr
%5 = add i64 %1, 1
%6 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i64 %5, i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %3)
%7 = load i32, i32* @EXIT_FAILURE
%8 = tail call i32 @exit(i32 %7)
unreachable
}