#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(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void error_invalid_number_of_processes(int numberOfProcesses) {
  if (numberOfProcesses == 0) {
    fprintf(stderr, "Error: no processes specified in input.\n");
    exit(-1);
  } else if (numberOfProcesses > 100) {
    fprintf(stderr,
            "Error: too many processes specified in input; "
            "they cannot number more than %d.\n",
            100);
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<error_invalid_number_of_processes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1156 <error_invalid_number_of_processes+0x36>
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
lea    0xebb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
cmpl   $0x64,-0x4(%rbp)
jle    1186 <error_invalid_number_of_processes+0x66>
mov    0x2e79(%rip),%rax
mov    (%rax),%edi
lea    0xeb9(%rip),%rsi
mov    $0x64,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
jmp    118b <error_invalid_number_of_processes+0x6b>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<error_invalid_number_of_processes>:
push   %rax
test   %edi,%edi
je     112c <error_invalid_number_of_processes+0xc>
cmp    $0x65,%edi
jge    114d <error_invalid_number_of_processes+0x2d>
pop    %rax
ret
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
lea    0xec4(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
mov    $0x64,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [41 x i8] c"Error: no processes specified in input.\0A\00"
@.str.1 = [80 x i8] c"Error: too many processes specified in input; they cannot number more than %d.\0A\00"
define void @error_invalid_number_of_processes(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @exit(i32 -1)
unreachable
9: ; preds = %1
%10 = load i32, i32* %2
%11 = icmp sgt i32 %10, 100
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0), i32 100)
%15 = call i32 @exit(i32 -1)
unreachable
16: ; preds = %9
br label %17
17: ; preds = %16
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [41 x i8] c"Error: no processes specified in input.\0A\00"
@.str.1 = [80 x i8] c"Error: too many processes specified in input; they cannot number more than %d.\0A\00"
define void @error_invalid_number_of_processes(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %7
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @exit(i32 -1)
unreachable
7: ; preds = %1
%8 = icmp sgt i32 %0, 100
br i1 %8, label %9, label %13
9: ; preds = %7
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0), i32 100)
%12 = tail call i32 @exit(i32 -1)
unreachable
13: ; preds = %7
ret void
}