#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 argc, char const *argv[]) {
  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)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x1c(%rbp),%rcx
lea    -0x20(%rbp),%r8
call   1040 <scanf@plt>
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jle    11b7 <main+0x97>
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    11b7 <main+0x97>
mov    -0x1c(%rbp),%eax
add    -0x20(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
cmp    %ecx,%eax
jle    11b7 <main+0x97>
cmpl   $0x0,-0x1c(%rbp)
jle    11b7 <main+0x97>
cmpl   $0x0,-0x20(%rbp)
jle    11b7 <main+0x97>
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11b7 <main+0x97>
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
jmp    11c3 <main+0xa3>
lea    0xe5f(%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(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %6, i32* %7, i32* %8, i32* %9)
%11 = load i32, i32* %7
%12 = load i32, i32* %8
%13 = icmp sgt i32 %11, %12
br i1 %13, label %14, label %38
14: ; preds = %2
%15 = load i32, i32* %9
%16 = load i32, i32* %6
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %38
18: ; preds = %14
%19 = load i32, i32* %8
%20 = load i32, i32* %9
%21 = add nsw i32 %19, %20
%22 = load i32, i32* %6
%23 = load i32, i32* %7
%24 = add nsw i32 %22, %23
%25 = icmp sgt i32 %21, %24
br i1 %25, label %26, label %38
26: ; preds = %18
%27 = load i32, i32* %8
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %26
%30 = load i32, i32* %9
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %38
32: ; preds = %29
%33 = load i32, i32* %6
%34 = srem i32 %33, 2
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %40
38: ; preds = %32, %29, %26, %18, %14, %2
%39 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %40
40: ; preds = %38, %36
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(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = bitcast i32* %5 to i8*
%10 = bitcast i32* %6 to i8*
%11 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4, i32* %5, i32* %6)
%12 = load i32, i32* %4
%13 = load i32, i32* %5
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %30
15: ; preds = %2
%16 = load i32, i32* %6
%17 = load i32, i32* %3
%18 = icmp sgt i32 %16, %17
br i1 %18, label %19, label %30
19: ; preds = %15
%20 = add nsw i32 %16, %13
%21 = add nsw i32 %17, %12
%22 = icmp sgt i32 %20, %21
%23 = icmp sgt i32 %13, 0
%24 = and i1 %23, %22
%25 = icmp sgt i32 %16, 0
%26 = select i1 %24, i1 %25, i1 false
%27 = and i32 %17, 1
%28 = icmp eq i32 %27, 0
%29 = select i1 %26, i1 %28, i1 false
br i1 %29, label %31, label %30
30: ; preds = %19, %15, %2
br label %31
31: ; preds = %19, %30
%32 = phi i8* [ getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0), %30 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.3, i64 0, i64 0), %19 ]
%33 = call i32 @puts(i8* dereferenceable(1) %32)
ret i32 0
}