#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdout;
int main() {
  int num;
  char a, a1, a2;
  short int b;
  unsigned char x;
  long int c;
  char nombre[6] = {0x4e, 0x69, 0x64, 0x69, 0x61};
  a = 0x64;
  a1 = 'd';
  a2 = 100;
  printf("a = %c\n", a);
  printf("a1 = %c\n", a1);
  printf("a2 = %c\n", a2);
  printf("a = %d\n", a);
  printf("a1 = %d\n", a1);
  printf("a2 = %d\n", a2);
  printf("a = %x\n", a);
  printf("a1 = %x\n", a1);
  printf("a2 = %x\n", a2);
  fprintf(stdout, "%s", nombre);
  printf("Num: ");
  scanf("%d", &num);
  if (num != 1)
    printf("Impar");
  else
    printf("Par");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xebb(%rip),%eax
mov    %eax,-0x1e(%rbp)
mov    0xeb5(%rip),%ax
mov    %ax,-0x1a(%rbp)
movb   $0x64,-0x9(%rbp)
movb   $0x64,-0xa(%rbp)
movb   $0x64,-0xb(%rbp)
movsbl -0x9(%rbp),%esi
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0xa(%rbp),%esi
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0xb(%rbp),%esi
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x9(%rbp),%esi
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0xa(%rbp),%esi
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0xb(%rbp),%esi
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x9(%rbp),%esi
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0xa(%rbp),%esi
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0xb(%rbp),%esi
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dd8(%rip),%rax
mov    (%rax),%edi
lea    -0x1e(%rbp),%rdx
lea    0xe3f(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe2e(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x1,-0x8(%rbp)
je     1255 <main+0x125>
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1263 <main+0x133>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movw   $0x61,0x10(%rsp)
movl   $0x6964694e,0xc(%rsp)
69
lea    0xebc(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb1(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe9d(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe88(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe7e(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe73(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe69(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2deb(%rip),%rax
mov    (%rax),%edi
lea    0xe56(%rip),%rsi
lea    0xc(%rsp),%rdx
call   1040 <fprintf@plt>
lea    0xe48(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe40(%rip),%rdi
lea    0x14(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x1,0x14(%rsp)
lea    0xe33(%rip),%rax
lea    0xe26(%rip),%rdi
cmove  %rax,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.nombre = [6 x i8] c"Nidia\00"
@.str = [8 x i8] c"a = %c\0A\00"
@.str.1 = [9 x i8] c"a1 = %c\0A\00"
@.str.2 = [9 x i8] c"a2 = %c\0A\00"
@.str.3 = [8 x i8] c"a = %d\0A\00"
@.str.4 = [9 x i8] c"a1 = %d\0A\00"
@.str.5 = [9 x i8] c"a2 = %d\0A\00"
@.str.6 = [8 x i8] c"a = %x\0A\00"
@.str.7 = [9 x i8] c"a1 = %x\0A\00"
@.str.8 = [9 x i8] c"a2 = %x\0A\00"
@stdout = global i32 0
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [6 x i8] c"Num: \00"
@.str.11 = [3 x i8] c"%d\00"
@.str.12 = [6 x i8] c"Impar\00"
@.str.13 = [4 x i8] c"Par\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i16
%7 = alloca i8
%8 = alloca i64
%9 = alloca [6 x i8]
store i32 0, i32* %1
%10 = bitcast [6 x i8]* %9 to i8*
store i8 100, i8* %3
store i8 100, i8* %4
store i8 100, i8* %5
%11 = load i8, i8* %3
%12 = sext i8 %11 to i32
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = load i8, i8* %4
%15 = sext i8 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %15)
%17 = load i8, i8* %5
%18 = sext i8 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %18)
%20 = load i8, i8* %3
%21 = sext i8 %20 to i32
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%23 = load i8, i8* %4
%24 = sext i8 %23 to i32
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %24)
%26 = load i8, i8* %5
%27 = sext i8 %26 to i32
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %27)
%29 = load i8, i8* %3
%30 = sext i8 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %30)
%32 = load i8, i8* %4
%33 = sext i8 %32 to i32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 %33)
%35 = load i8, i8* %5
%36 = sext i8 %35 to i32
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %36)
%38 = load i32, i32* @stdout
%39 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%40 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %39)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%42 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %2)
%43 = load i32, i32* %2
%44 = icmp ne i32 %43, 1
br i1 %44, label %45, label %47
45: ; preds = %0
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
br label %49
47: ; preds = %0
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
br label %49
49: ; preds = %47, %45
%50 = load i32, i32* %1
ret i32 %50
}

LLVM IR (-O2):
@__const.main.nombre = [6 x i8] c"Nidia\00"
@.str = [8 x i8] c"a = %c\0A\00"
@.str.1 = [9 x i8] c"a1 = %c\0A\00"
@.str.2 = [9 x i8] c"a2 = %c\0A\00"
@.str.3 = [8 x i8] c"a = %d\0A\00"
@.str.4 = [9 x i8] c"a1 = %d\0A\00"
@.str.5 = [9 x i8] c"a2 = %d\0A\00"
@.str.6 = [8 x i8] c"a = %x\0A\00"
@.str.7 = [9 x i8] c"a1 = %x\0A\00"
@.str.8 = [9 x i8] c"a2 = %x\0A\00"
@stdout = global i32 0
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [6 x i8] c"Num: \00"
@.str.11 = [3 x i8] c"%d\00"
@.str.12 = [6 x i8] c"Impar\00"
@.str.13 = [4 x i8] c"Par\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [6 x i8]
%3 = bitcast i32* %1 to i8*
%4 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 100)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 100)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 100)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 100)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 100)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 100)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 100)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 100)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 100)
%14 = load i32, i32* @stdout
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %4)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %1)
%18 = load i32, i32* %1
%19 = icmp eq i32 %18, 1
%20 = select i1 %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %20)
ret i32 0
}