#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*/ print(char *);
void ex3() {
  print("\n------------------------------\n");
  print("Indique, para cada expressao logica abaixo, se ela retornara um valor "
        "TRUE ou FALSE.");
  if (1 > 3 || (!(5 <= 8)) && 6 == 7) {
    print("[1 > 3 || (! (5 <= 8)) && 6 == 7] e TRUE.");
  } else {
    print("[1 > 3 || (! (5 <= 8)) && 6 == 7] e FALSE.");
  }
  if (!((2 >= 5) && (5 <= 8) || ((4 + 3) > 7))) {
    print("[!((2 >= 5) && (5 <= 8) || ((4 + 3) > 7))] e TRUE.");
  } else {
    print("[!((2 >= 5) && (5 <= 8) || ((4 + 3) > 7))] e FALSE.");
  }
  if (7 % 4 == 3 && !(20 / 5 == 5)) {
    print("[7%4 == 3 && !(20/5 == 5)] e TRUE.");
  } else {
    print("[7%4 == 3 && !(20/5 == 5)] e FALSE.");
  }
  if ((23.1 >= 64 / 3) || ('b' == 'a')) {
    print("[(23.1 >= 64/3) || ('b' == 'a')] e TRUE.");
  } else {
    print("[(23.1 >= 64/3) || ('b' == 'a')] e FALSE.");
  }
  print("\n------------------------------\n");
}


x86 assembly (clang, -O0):
<ex3>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <print@plt>
lea    0xefa(%rip),%rdi
call   1030 <print@plt>
lea    0xf43(%rip),%rdi
call   1030 <print@plt>
lea    0xf62(%rip),%rdi
call   1030 <print@plt>
lea    0xf89(%rip),%rdi
call   1030 <print@plt>
lea    0xfa0(%rip),%rdi
call   1030 <print@plt>
lea    0xe9d(%rip),%rdi
call   1030 <print@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ex3>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
call   1030 <print@plt>
lea    0xefa(%rip),%rdi
call   1030 <print@plt>
lea    0xf43(%rip),%rdi
call   1030 <print@plt>
lea    0xf62(%rip),%rdi
call   1030 <print@plt>
lea    0xf89(%rip),%rdi
call   1030 <print@plt>
lea    0xfa0(%rip),%rdi
call   1030 <print@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <print@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"\0A------------------------------\0A\00"
@.str.1 = [85 x i8] c"Indique, para cada expressao logica abaixo, se ela retornara um valor TRUE ou FALSE.\00"
@.str.2 = [43 x i8] c"[1 > 3 || (! (5 <= 8)) && 6 == 7] e FALSE.\00"
@.str.3 = [51 x i8] c"[!((2 >= 5) && (5 <= 8) || ((4 + 3) > 7))] e TRUE.\00"
@.str.4 = [35 x i8] c"[7%4 == 3 && !(20/5 == 5)] e TRUE.\00"
@.str.5 = [41 x i8] c"[(23.1 >= 64/3) || ('b' == 'a')] e TRUE.\00"
define void @ex3() {
%1 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @print(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @print(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @print(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @print(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @print(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"\0A------------------------------\0A\00"
@.str.1 = [85 x i8] c"Indique, para cada expressao logica abaixo, se ela retornara um valor TRUE ou FALSE.\00"
@.str.2 = [43 x i8] c"[1 > 3 || (! (5 <= 8)) && 6 == 7] e FALSE.\00"
@.str.3 = [51 x i8] c"[!((2 >= 5) && (5 <= 8) || ((4 + 3) > 7))] e TRUE.\00"
@.str.4 = [35 x i8] c"[7%4 == 3 && !(20/5 == 5)] e TRUE.\00"
@.str.5 = [41 x i8] c"[(23.1 >= 64/3) || ('b' == 'a')] e TRUE.\00"
define void @ex3() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @print(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @print(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @print(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @print(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @print(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}