#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*/ printf(char *, ...);
int main() {
  int a, b, c;
  float x, y, z;
  printf("Comparacao - int com int\n");
  a = 0;
  if (0 == 0)
    printf("0 == 0\n");
  if (a == 0)
    printf("a == 0\n");
  if (a == 1)
    printf("a == 1\n");
  printf("\n");
  printf("Comparacao - int com float\n");
  x = 0.0;
  y = 0.5;
  if (0.0 == 0.0)
    printf("0.0 == 0.0\n");
  if (x == 0.0)
    printf("x == 0.0\n");
  if (a == x)
    printf("0 == 0.0\n");
  if (a == y)
    printf("0 == 0.5\n");
  printf("\n");
  printf("Operadores unarios\n");
  b = 1;
  c = 2;
  z = 2.0;
  if (a)
    printf("a avalia true\n");
  if (b)
    printf("b avalia true\n");
  if (c)
    printf("c avalia true\n");
  if (x)
    printf("y avalia true\n");
  if (y)
    printf("y avalia true\n");
  if (z)
    printf("z avalia true\n");
  if (!a)
    printf("!a avalia true\n");
  if (!b)
    printf("!b avalia true\n");
  if (!b)
    printf("!c avalia true\n");
  if (!x)
    printf("!x avalia true\n");
  if (!y)
    printf("!y avalia true\n");
  if (!z)
    printf("!z avalia true\n");
  printf("\n");
  printf("Multiplas condicoes\n");
  if ((a == b) || (x < y))
    printf("Teste 1\n");
  if ((a == b) && (x < y))
    printf("Teste 2\n");
  printf("Switch - demonstrando o fall-through\n");
  printf("Sem break:\n");
  switch (a) {
  case 0:
    printf("Case a==0\n");
  case 1:
    printf("Case a==1\n");
  case 2:
    printf("Case a==2\n");
  default:
    printf("Caso contrario\n");
  }
  printf("Com break:\n");
  switch (a) {
  case 0:
    printf("Case a==0\n");
    break;
  case 1:
    printf("Case a==1\n");
    break;
  case 2:
    printf("Case a==2\n");
    break;
  default:
    printf("Caso contrario\n");
    break;
  }
  printf("\n");
  printf("Operador ?\n");
  (a == 0) ? printf("a==0\n") : printf("a!=0\n");
  printf("Resultado: %d\n", (a == 1) ? 20 : 30);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
lea    0xee7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    115a <main+0x4a>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    1172 <main+0x62>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xe62(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11db <main+0xcb>
jp     11db <main+0xcb>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cvtsi2ssl -0x8(%rbp),%xmm0
ucomiss -0x14(%rbp),%xmm0
jne    11fe <main+0xee>
jp     11fe <main+0xee>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cvtsi2ssl -0x8(%rbp),%xmm0
ucomiss -0x18(%rbp),%xmm0
jne    1221 <main+0x111>
jp     1221 <main+0x111>
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0xc(%rbp)
movl   $0x2,-0x10(%rbp)
movss  0xdb1(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1270 <main+0x160>
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
je     1288 <main+0x178>
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
je     12a0 <main+0x190>
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12bc <main+0x1ac>
jp     12bc <main+0x1ac>
jmp    12ca <main+0x1ba>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12e6 <main+0x1d6>
jp     12e6 <main+0x1d6>
jmp    12f4 <main+0x1e4>
lea    0xdde(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1310 <main+0x200>
jp     1310 <main+0x200>
jmp    131e <main+0x20e>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    1336 <main+0x226>
lea    0xd5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jne    134e <main+0x23e>
lea    0xd53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jne    1366 <main+0x256>
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    138b <main+0x27b>
jp     138b <main+0x27b>
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    13b0 <main+0x2a0>
jp     13b0 <main+0x2a0>
lea    0xd21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    13d5 <main+0x2c5>
jp     13d5 <main+0x2c5>
lea    0xd0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     1410 <main+0x300>
movss  -0x14(%rbp),%xmm1
movss  -0x18(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    141e <main+0x30e>
lea    0xce8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    144b <main+0x33b>
movss  -0x14(%rbp),%xmm1
movss  -0x18(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    144b <main+0x33b>
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcbf(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x21(%rbp)
call   1030 <printf@plt>
mov    -0x21(%rbp),%al
lea    0xcd1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x20(%rbp)
test   %eax,%eax
je     14a0 <main+0x390>
jmp    147e <main+0x36e>
mov    -0x20(%rbp),%eax
sub    $0x1,%eax
je     14ae <main+0x39e>
jmp    148f <main+0x37f>
mov    -0x20(%rbp),%eax
sub    $0x2,%eax
je     14bc <main+0x3ac>
jmp    14ca <main+0x3ba>
lea    0xc9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc95(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
test   %eax,%eax
je     151b <main+0x40b>
jmp    14f9 <main+0x3e9>
mov    -0x28(%rbp),%eax
sub    $0x1,%eax
je     152e <main+0x41e>
jmp    150a <main+0x3fa>
mov    -0x28(%rbp),%eax
sub    $0x2,%eax
je     1541 <main+0x431>
jmp    1554 <main+0x444>
lea    0xc21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1562 <main+0x452>
lea    0xc19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1562 <main+0x452>
lea    0xc11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1562 <main+0x452>
lea    0xc09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xabf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    159b <main+0x48b>
lea    0xbb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    15a9 <main+0x499>
lea    0xbea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%ecx
mov    $0x1e,%esi
mov    $0x14,%eax
cmp    $0x1,%ecx
cmove  %eax,%esi
lea    0xbcf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xed7(%rip),%rdi
call   1040 <puts@plt>
lea    0xee4(%rip),%rdi
call   1040 <puts@plt>
lea    0xedf(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed0(%rip),%rdi
call   1040 <puts@plt>
lea    0xedf(%rip),%rdi
call   1040 <puts@plt>
lea    0xede(%rip),%rdi
call   1040 <puts@plt>
lea    0xec9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xec5(%rip),%rdi
call   1040 <puts@plt>
lea    0xecc(%rip),%rdi
call   1040 <puts@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
lea    0xed0(%rip),%rdi
call   1040 <puts@plt>
lea    0xed2(%rip),%rdi
call   1040 <puts@plt>
lea    0xed4(%rip),%rdi
call   1040 <puts@plt>
lea    0xed7(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed0(%rip),%rdi
call   1040 <puts@plt>
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xed4(%rip),%rdi
call   1040 <puts@plt>
lea    0xeed(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1a(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xedd(%rip),%rdi
call   1040 <puts@plt>
lea    0xedb(%rip),%rdi
call   1040 <puts@plt>
lea    0xed9(%rip),%rdi
call   1040 <puts@plt>
lea    0xedc(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed3(%rip),%rdi
call   1040 <puts@plt>
lea    0xec2(%rip),%rdi
call   1040 <puts@plt>
lea    0xd69(%rip),%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Comparacao - int com int\0A\00"
@.str.1 = [8 x i8] c"0 == 0\0A\00"
@.str.2 = [8 x i8] c"a == 0\0A\00"
@.str.3 = [8 x i8] c"a == 1\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [28 x i8] c"Comparacao - int com float\0A\00"
@.str.6 = [12 x i8] c"0.0 == 0.0\0A\00"
@.str.7 = [10 x i8] c"x == 0.0\0A\00"
@.str.8 = [10 x i8] c"0 == 0.0\0A\00"
@.str.9 = [10 x i8] c"0 == 0.5\0A\00"
@.str.10 = [20 x i8] c"Operadores unarios\0A\00"
@.str.11 = [15 x i8] c"a avalia true\0A\00"
@.str.12 = [15 x i8] c"b avalia true\0A\00"
@.str.13 = [15 x i8] c"c avalia true\0A\00"
@.str.14 = [15 x i8] c"y avalia true\0A\00"
@.str.15 = [15 x i8] c"z avalia true\0A\00"
@.str.16 = [16 x i8] c"!a avalia true\0A\00"
@.str.17 = [16 x i8] c"!b avalia true\0A\00"
@.str.18 = [16 x i8] c"!c avalia true\0A\00"
@.str.19 = [16 x i8] c"!x avalia true\0A\00"
@.str.20 = [16 x i8] c"!y avalia true\0A\00"
@.str.21 = [16 x i8] c"!z avalia true\0A\00"
@.str.22 = [21 x i8] c"Multiplas condicoes\0A\00"
@.str.23 = [9 x i8] c"Teste 1\0A\00"
@.str.24 = [9 x i8] c"Teste 2\0A\00"
@.str.25 = [38 x i8] c"Switch - demonstrando o fall-through\0A\00"
@.str.26 = [12 x i8] c"Sem break:\0A\00"
@.str.27 = [11 x i8] c"Case a==0\0A\00"
@.str.28 = [11 x i8] c"Case a==1\0A\00"
@.str.29 = [11 x i8] c"Case a==2\0A\00"
@.str.30 = [16 x i8] c"Caso contrario\0A\00"
@.str.31 = [12 x i8] c"Com break:\0A\00"
@.str.32 = [12 x i8] c"Operador ?\0A\00"
@.str.33 = [6 x i8] c"a==0\0A\00"
@.str.34 = [6 x i8] c"a!=0\0A\00"
@.str.35 = [15 x i8] c"Resultado: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %14
14: ; preds = %12, %0
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %19
19: ; preds = %17, %14
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
store float 0.000000e+00, float* %5
store float 5.000000e-01, float* %6
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%23 = load float, float* %5
%24 = fpext float %23 to double
%25 = fcmp oeq double %24, 0.000000e+00
br i1 %25, label %26, label %28
26: ; preds = %19
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
br label %28
28: ; preds = %26, %19
%29 = load i32, i32* %2
%30 = sitofp i32 %29 to float
%31 = load float, float* %5
%32 = fcmp oeq float %30, %31
br i1 %32, label %33, label %35
33: ; preds = %28
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
br label %35
35: ; preds = %33, %28
%36 = load i32, i32* %2
%37 = sitofp i32 %36 to float
%38 = load float, float* %6
%39 = fcmp oeq float %37, %38
br i1 %39, label %40, label %42
40: ; preds = %35
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
br label %42
42: ; preds = %40, %35
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
store i32 1, i32* %3
store i32 2, i32* %4
store float 2.000000e+00, float* %7
%45 = load i32, i32* %2
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %42
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
br label %49
49: ; preds = %47, %42
%50 = load i32, i32* %3
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
br label %54
54: ; preds = %52, %49
%55 = load i32, i32* %4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
br label %59
59: ; preds = %57, %54
%60 = load float, float* %5
%61 = fcmp une float %60, 0.000000e+00
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0))
br label %64
64: ; preds = %62, %59
%65 = load float, float* %6
%66 = fcmp une float %65, 0.000000e+00
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0))
br label %69
69: ; preds = %67, %64
%70 = load float, float* %7
%71 = fcmp une float %70, 0.000000e+00
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
br label %74
74: ; preds = %72, %69
%75 = load i32, i32* %2
%76 = icmp ne i32 %75, 0
br i1 %76, label %79, label %77
77: ; preds = %74
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0))
br label %79
79: ; preds = %77, %74
%80 = load i32, i32* %3
%81 = icmp ne i32 %80, 0
br i1 %81, label %84, label %82
82: ; preds = %79
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0))
br label %84
84: ; preds = %82, %79
%85 = load i32, i32* %3
%86 = icmp ne i32 %85, 0
br i1 %86, label %89, label %87
87: ; preds = %84
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.18, i64 0, i64 0))
br label %89
89: ; preds = %87, %84
%90 = load float, float* %5
%91 = fcmp une float %90, 0.000000e+00
br i1 %91, label %94, label %92
92: ; preds = %89
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0))
br label %94
94: ; preds = %92, %89
%95 = load float, float* %6
%96 = fcmp une float %95, 0.000000e+00
br i1 %96, label %99, label %97
97: ; preds = %94
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0))
br label %99
99: ; preds = %97, %94
%100 = load float, float* %7
%101 = fcmp une float %100, 0.000000e+00
br i1 %101, label %104, label %102
102: ; preds = %99
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0))
br label %104
104: ; preds = %102, %99
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.22, i64 0, i64 0))
%107 = load i32, i32* %2
%108 = load i32, i32* %3
%109 = icmp eq i32 %107, %108
br i1 %109, label %114, label %110
110: ; preds = %104
%111 = load float, float* %5
%112 = load float, float* %6
%113 = fcmp olt float %111, %112
br i1 %113, label %114, label %116
114: ; preds = %110, %104
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0))
br label %116
116: ; preds = %114, %110
%117 = load i32, i32* %2
%118 = load i32, i32* %3
%119 = icmp eq i32 %117, %118
br i1 %119, label %120, label %126
120: ; preds = %116
%121 = load float, float* %5
%122 = load float, float* %6
%123 = fcmp olt float %121, %122
br i1 %123, label %124, label %126
124: ; preds = %120
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0))
br label %126
126: ; preds = %124, %120, %116
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.25, i64 0, i64 0))
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i64 0, i64 0))
%129 = load i32, i32* %2
switch i32 %129, label %136 [
i32 0, label %130
i32 1, label %132
i32 2, label %134
]
130: ; preds = %126
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0))
br label %132
132: ; preds = %126, %130
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i64 0, i64 0))
br label %134
134: ; preds = %126, %132
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.29, i64 0, i64 0))
br label %136
136: ; preds = %126, %134
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.30, i64 0, i64 0))
br label %138
138: ; preds = %136
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.31, i64 0, i64 0))
%140 = load i32, i32* %2
switch i32 %140, label %147 [
i32 0, label %141
i32 1, label %143
i32 2, label %145
]
141: ; preds = %138
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0))
br label %149
143: ; preds = %138
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i64 0, i64 0))
br label %149
145: ; preds = %138
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.29, i64 0, i64 0))
br label %149
147: ; preds = %138
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.30, i64 0, i64 0))
br label %149
149: ; preds = %147, %145, %143, %141
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i64 0, i64 0))
%152 = load i32, i32* %2
%153 = icmp eq i32 %152, 0
br i1 %153, label %154, label %156
154: ; preds = %149
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.33, i64 0, i64 0))
br label %158
156: ; preds = %149
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0))
br label %158
158: ; preds = %156, %154
%159 = phi i32 [ %155, %154 ], [ %157, %156 ]
%160 = load i32, i32* %2
%161 = icmp eq i32 %160, 1
%162 = zext i1 %161 to i64
%163 = select i1 %161, i32 20, i32 30
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0), i32 %163)
ret i32 0
}

LLVM IR (-O2):
@.str.35 = [15 x i8] c"Resultado: %d\0A\00"
@str = [25 x i8] c"Comparacao - int com int\00"
@str.36 = [7 x i8] c"0 == 0\00"
@str.37 = [7 x i8] c"a == 0\00"
@str.38 = [27 x i8] c"Comparacao - int com float\00"
@str.39 = [11 x i8] c"0.0 == 0.0\00"
@str.40 = [9 x i8] c"x == 0.0\00"
@str.41 = [9 x i8] c"0 == 0.0\00"
@str.42 = [19 x i8] c"Operadores unarios\00"
@str.43 = [14 x i8] c"b avalia true\00"
@str.44 = [14 x i8] c"c avalia true\00"
@str.45 = [14 x i8] c"y avalia true\00"
@str.46 = [14 x i8] c"z avalia true\00"
@str.47 = [15 x i8] c"!a avalia true\00"
@str.48 = [15 x i8] c"!x avalia true\00"
@str.49 = [20 x i8] c"Multiplas condicoes\00"
@str.50 = [8 x i8] c"Teste 1\00"
@str.51 = [37 x i8] c"Switch - demonstrando o fall-through\00"
@str.52 = [11 x i8] c"Sem break:\00"
@str.54 = [10 x i8] c"Case a==1\00"
@str.55 = [10 x i8] c"Case a==2\00"
@str.56 = [15 x i8] c"Caso contrario\00"
@str.57 = [11 x i8] c"Com break:\00"
@str.58 = [10 x i8] c"Case a==0\00"
@str.59 = [11 x i8] c"Operador ?\00"
@str.60 = [5 x i8] c"a==0\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.36, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.37, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.38, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.39, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.40, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.41, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.42, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.43, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.44, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.45, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.46, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.47, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.48, i64 0, i64 0))
%17 = tail call i32 @putchar(i32 10)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.49, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.50, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.51, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.52, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.58, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.54, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.55, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.56, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.57, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.58, i64 0, i64 0))
%28 = tail call i32 @putchar(i32 10)
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.59, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.60, i64 0, i64 0))
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0), i32 30)
ret i32 0
}