#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(void) {
  int a, b, c, d;
  scanf("%d %d %d %d", &a, &b, &c, &d);
  if (b > c && d > a && (c + d) > (a + b) && c > 0 && d > 0 && (a % 2) == 0) {
    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)
lea    0xeca(%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    11b0 <main+0x90>
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    11b0 <main+0x90>
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
cmp    %ecx,%eax
jle    11b0 <main+0x90>
cmpl   $0x0,-0x10(%rbp)
jle    11b0 <main+0x90>
cmpl   $0x0,-0x14(%rbp)
jle    11b0 <main+0x90>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11b0 <main+0x90>
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
jmp    11bc <main+0x9c>
lea    0xe66(%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),%ecx
mov    0xc(%rsp),%edx
cmp    %edx,%ecx
jle    117a <main+0x5a>
mov    0x8(%rsp),%esi
mov    0x14(%rsp),%eax
cmp    %eax,%esi
jle    117a <main+0x5a>
test   %edx,%edx
jle    117a <main+0x5a>
add    %esi,%edx
add    %eax,%ecx
cmp    %ecx,%edx
jle    117a <main+0x5a>
test   %esi,%esi
jle    117a <main+0x5a>
and    $0x1,%eax
jne    117a <main+0x5a>
lea    0xea8(%rip),%rdi
jmp    1181 <main+0x61>
lea    0xe8b(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%d %d %d %d\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
store i32 0, i32* %1
%6 = 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)
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %34
10: ; preds = %0
%11 = load i32, i32* %5
%12 = load i32, i32* %2
%13 = icmp sgt i32 %11, %12
br i1 %13, label %14, label %34
14: ; preds = %10
%15 = load i32, i32* %4
%16 = load i32, i32* %5
%17 = add nsw i32 %15, %16
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = add nsw i32 %18, %19
%21 = icmp sgt i32 %17, %20
br i1 %21, label %22, label %34
22: ; preds = %14
%23 = load i32, i32* %4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %34
25: ; preds = %22
%26 = load i32, i32* %5
%27 = icmp sgt i32 %26, 0
br i1 %27, label %28, label %34
28: ; preds = %25
%29 = load i32, i32* %2
%30 = srem i32 %29, 2
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %36
34: ; preds = %28, %25, %22, %14, %10, %0
%35 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %36
36: ; preds = %34, %32
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%d %d %d %d\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
br i1 %12, label %13, label %28
13: ; preds = %0
%14 = load i32, i32* %4
%15 = load i32, i32* %1
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %28
17: ; preds = %13
%18 = add nsw i32 %14, %11
%19 = add nsw i32 %15, %10
%20 = icmp sgt i32 %18, %19
%21 = icmp sgt i32 %11, 0
%22 = and i1 %21, %20
%23 = icmp sgt i32 %14, 0
%24 = select i1 %22, i1 %23, i1 false
%25 = and i32 %15, 1
%26 = icmp eq i32 %25, 0
%27 = select i1 %24, i1 %26, i1 false
br i1 %27, label %29, label %28
28: ; preds = %17, %13, %0
br label %29
29: ; preds = %17, %28
%30 = phi i8* [ getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0), %28 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.3, i64 0, i64 0), %17 ]
%31 = call i32 @puts(i8* dereferenceable(1) %30)
ret i32 0
}