#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*/ my_putnbr2(int);
int /*<<< orphan*/ my_putstr2(char *);
void error_empty(char *str) {
  int d;
  static int numberofempty;
  d = 0;
  if (str[0] == 0 || str[0] == '0') {
    my_putstr2("\nError : Argument number ");
    my_putnbr2(d);
    my_putstr2(" of the ");
    my_putnbr2(numberofempty);
    my_putstr2("th test");
    my_putstr2(" is empty\n\n");
    exit(-1);
  }
  numberofempty++;
}


x86 assembly (clang, -O0):
<error_empty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1163 <error_empty+0x33>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
jne    11b0 <error_empty+0x80>
lea    0xe96(%rip),%rdi
call   1040 <my_putstr2@plt>
mov    -0xc(%rbp),%edi
call   1030 <my_putnbr2@plt>
lea    0xe9c(%rip),%rdi
call   1040 <my_putstr2@plt>
mov    0x2eb3(%rip),%edi
call   1030 <my_putnbr2@plt>
lea    0xe8e(%rip),%rdi
call   1040 <my_putstr2@plt>
lea    0xe8a(%rip),%rdi
call   1040 <my_putstr2@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>
mov    0x2e86(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e7d(%rip)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<error_empty>:
push   %rax
mov    (%rdi),%al
cmp    $0x30,%al
je     1144 <error_empty+0x14>
test   %al,%al
je     1144 <error_empty+0x14>
addl   $0x1,0x2efa(%rip)
pop    %rax
ret
lea    0xeb5(%rip),%rdi
call   1040 <my_putstr2@plt>
xor    %edi,%edi
call   1030 <my_putnbr2@plt>
lea    0xebc(%rip),%rdi
call   1040 <my_putstr2@plt>
mov    0x2ed3(%rip),%edi
call   1030 <my_putnbr2@plt>
lea    0xeae(%rip),%rdi
call   1040 <my_putstr2@plt>
lea    0xeaa(%rip),%rdi
call   1040 <my_putstr2@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@error_empty.numberofempty = internal global i32 0
@.str = [26 x i8] c"\0AError : Argument number \00"
@.str.1 = [9 x i8] c" of the \00"
@.str.2 = [8 x i8] c"th test\00"
@.str.3 = [12 x i8] c" is empty\0A\0A\00"
define void @error_empty(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
%4 = load i8*, i8** %2
%5 = getelementptr inbounds i8, i8* %4, i64 0
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 0
br i1 %8, label %15, label %9
9: ; preds = %1
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 48
br i1 %14, label %15, label %25
15: ; preds = %9, %1
%16 = call i32 @my_putstr2(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* %3
%18 = call i32 @my_putnbr2(i32 %17)
%19 = call i32 @my_putstr2(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%20 = load i32, i32* @error_empty.numberofempty
%21 = call i32 @my_putnbr2(i32 %20)
%22 = call i32 @my_putstr2(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%23 = call i32 @my_putstr2(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 @exit(i32 -1)
unreachable
25: ; preds = %9
%26 = load i32, i32* @error_empty.numberofempty
%27 = add nsw i32 %26, 1
store i32 %27, i32* @error_empty.numberofempty
ret void
}

LLVM IR (-O2):
@error_empty.numberofempty = internal unnamed_addr global i32 0
@.str = [26 x i8] c"\0AError : Argument number \00"
@.str.1 = [9 x i8] c" of the \00"
@.str.2 = [8 x i8] c"th test\00"
@.str.3 = [12 x i8] c" is empty\0A\0A\00"
define void @error_empty(i8* nocapture %0) {
%2 = load i8, i8* %0
switch i8 %2, label %12 [
i8 0, label %3
i8 48, label %3
]
3: ; preds = %1, %1
%4 = tail call i32 @my_putstr2(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @my_putnbr2(i32 0)
%6 = tail call i32 @my_putstr2(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @error_empty.numberofempty
%8 = tail call i32 @my_putnbr2(i32 %7)
%9 = tail call i32 @my_putstr2(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @my_putstr2(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @exit(i32 -1)
unreachable
12: ; preds = %1
%13 = load i32, i32* @error_empty.numberofempty
%14 = add nsw i32 %13, 1
store i32 %14, i32* @error_empty.numberofempty
ret void
}