#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 */
scalar_t__ isspace(char);
int /*<<< orphan*/ printf(char *);
int main() {
  char var1 = '\n';
  char var2 = 'A';
  char var3 = ' ';
  if (isspace(var1))
    printf("Variavel 1 tem apenas espaco em branco (white-space character)!\n");
  if (isspace(var2))
    printf("Variavel 2 tem apenas espaco em branco (white-space character)!\n");
  if (isspace(var3))
    printf("Variavel 3 tem apenas espaco em branco (white-space character)!\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0xa,-0x5(%rbp)
movb   $0x41,-0x6(%rbp)
movb   $0x20,-0x7(%rbp)
movsbl -0x5(%rbp),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
je     115a <main+0x3a>
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x6(%rbp),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
je     1179 <main+0x59>
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x7(%rbp),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
je     1198 <main+0x78>
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xa,%edi
call   1040 <isspace@plt>
test   %rax,%rax
je     113c <main+0x1c>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
mov    $0x41,%edi
call   1040 <isspace@plt>
test   %rax,%rax
je     1157 <main+0x37>
lea    0xeee(%rip),%rdi
call   1030 <puts@plt>
mov    $0x20,%edi
call   1040 <isspace@plt>
test   %rax,%rax
je     1172 <main+0x52>
lea    0xe93(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [65 x i8] c"Variavel 1 tem apenas espaco em branco (white-space character)!\0A\00"
@.str.1 = [65 x i8] c"Variavel 2 tem apenas espaco em branco (white-space character)!\0A\00"
@.str.2 = [65 x i8] c"Variavel 3 tem apenas espaco em branco (white-space character)!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
store i32 0, i32* %1
store i8 10, i8* %2
store i8 65, i8* %3
store i8 32, i8* %4
%5 = load i8, i8* %2
%6 = call i64 @isspace(i8 signext %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %0
%11 = load i8, i8* %3
%12 = call i64 @isspace(i8 signext %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0))
br label %16
16: ; preds = %14, %10
%17 = load i8, i8* %4
%18 = call i64 @isspace(i8 signext %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %16
ret i32 0
}

LLVM IR (-O2):
@str = [64 x i8] c"Variavel 3 tem apenas espaco em branco (white-space character)!\00"
@str.3 = [64 x i8] c"Variavel 2 tem apenas espaco em branco (white-space character)!\00"
@str.4 = [64 x i8] c"Variavel 1 tem apenas espaco em branco (white-space character)!\00"
define i32 @main() {
%1 = tail call i64 @isspace(i8 signext 10)
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.4, i64 0, i64 0))
br label %5
5: ; preds = %3, %0
%6 = tail call i64 @isspace(i8 signext 65)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.3, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
%11 = tail call i64 @isspace(i8 signext 32)
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
br label %15
15: ; preds = %13, %10
ret i32 0
}