#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 /*<<< orphan*/ scanf(char *, int *, int *, int *, int *);
int main() {
  int a, b, c, d, indicator = 0;
  scanf("%i %i %i %i", &a, &b, &c, &d);
  if ((b > c) && (d > a))
    indicator++;
  if ((c + d) > (a + b))
    indicator++;
  if (!(a % 2))
    indicator++;
  if (indicator == 3)
    printf("Valores aceitos\n");
  else
    printf("Valores nao aceitos\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1173 <main+0x53>
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1173 <main+0x53>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
cmp    %ecx,%eax
jle    1190 <main+0x70>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11ad <main+0x8d>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x3,-0x18(%rbp)
jne    11c8 <main+0xa8>
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
jmp    11d4 <main+0xb4>
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
call   1040 <scanf@plt>
mov    0x10(%rsp),%r9d
mov    0xc(%rsp),%ecx
cmp    %ecx,%r9d
setg   %r8b
mov    0x8(%rsp),%esi
mov    0x14(%rsp),%edx
mov    %edx,%edi
cmp    %edx,%esi
setg   %al
and    %r8b,%al
movzbl %al,%eax
add    %ecx,%esi
add    %r9d,%edx
lea    0x1(%rax),%ecx
cmp    %edx,%esi
cmovle %eax,%ecx
not    %edi
and    $0x1,%edi
add    %ecx,%edi
cmp    $0x3,%edi
lea    0xe99(%rip),%rax
lea    0xe7e(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%i %i %i %i\00"
@.str.1 = [17 x i8] c"Valores aceitos\0A\00"
@.str.2 = [21 x i8] c"Valores nao aceitos\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %6
%7 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4, i32* %5)
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = icmp sgt i32 %8, %9
br i1 %10, label %11, label %18
11: ; preds = %0
%12 = load i32, i32* %5
%13 = load i32, i32* %2
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, i32* %6
%17 = add nsw i32 %16, 1
store i32 %17, i32* %6
br label %18
18: ; preds = %15, %11, %0
%19 = load i32, i32* %4
%20 = load i32, i32* %5
%21 = add nsw i32 %19, %20
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = add nsw i32 %22, %23
%25 = icmp sgt i32 %21, %24
br i1 %25, label %26, label %29
26: ; preds = %18
%27 = load i32, i32* %6
%28 = add nsw i32 %27, 1
store i32 %28, i32* %6
br label %29
29: ; preds = %26, %18
%30 = load i32, i32* %2
%31 = srem i32 %30, 2
%32 = icmp ne i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %29
%34 = load i32, i32* %6
%35 = add nsw i32 %34, 1
store i32 %35, i32* %6
br label %36
36: ; preds = %33, %29
%37 = load i32, i32* %6
%38 = icmp eq i32 %37, 3
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %43
41: ; preds = %36
%42 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %43
43: ; preds = %41, %39
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%i %i %i %i\00"
@str = [20 x i8] c"Valores nao aceitos\00"
@str.3 = [16 x i8] c"Valores aceitos\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3, i32* %4)
%10 = load i32, i32* %2
%11 = load i32, i32* %3
%12 = icmp sgt i32 %10, %11
%13 = load i32, i32* %4
%14 = load i32, i32* %1
%15 = icmp sgt i32 %13, %14
%16 = select i1 %12, i1 %15, i1 false
%17 = zext i1 %16 to i32
%18 = add nsw i32 %13, %11
%19 = add nsw i32 %14, %10
%20 = icmp sgt i32 %18, %19
%21 = select i1 %16, i32 2, i32 1
%22 = select i1 %20, i32 %21, i32 %17
%23 = and i32 %14, 1
%24 = xor i32 %23, 1
%25 = add nuw nsw i32 %22, %24
%26 = icmp eq i32 %25, 3
%27 = select i1 %26, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0)
%28 = call i32 @puts(i8* dereferenceable(1) %27)
ret i32 0
}