#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;
  scanf("%d %d %d %d", &a, &b, &c, &d);
  if (b > c && d > a)
    if (c + d > a + b)
      if (c > 0 && d > 0 && a % 2 == 0) {
        printf("Valores aceitos\n");
        return 0;
      }
  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    11c1 <main+0xa1>
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    11c1 <main+0xa1>
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
cmp    %ecx,%eax
jle    11bc <main+0x9c>
cmpl   $0x0,-0x10(%rbp)
jle    11b7 <main+0x97>
cmpl   $0x0,-0x14(%rbp)
jle    11b7 <main+0x97>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11b7 <main+0x97>
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11d4 <main+0xb4>
jmp    11bc <main+0x9c>
jmp    11c1 <main+0xa1>
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%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),%esi
mov    0xc(%rsp),%ecx
cmp    %ecx,%esi
jle    117b <main+0x5b>
mov    0x8(%rsp),%edx
mov    0x14(%rsp),%eax
cmp    %eax,%edx
jle    117b <main+0x5b>
lea    (%rdx,%rcx,1),%edi
add    %eax,%esi
cmp    %esi,%edi
jle    117b <main+0x5b>
test   %ecx,%ecx
jle    117b <main+0x5b>
test   %edx,%edx
jle    117b <main+0x5b>
and    $0x1,%eax
jne    117b <main+0x5b>
lea    0xea7(%rip),%rdi
jmp    1182 <main+0x62>
lea    0xe8a(%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 %36
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 %36
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 %35
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))
store i32 0, i32* %1
br label %38
34: ; preds = %28, %25, %22
br label %35
35: ; preds = %34, %14
br label %36
36: ; preds = %35, %10, %0
%37 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %38
38: ; preds = %36, %32
%39 = load i32, i32* %1
ret i32 %39
}

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
br i1 %20, label %21, label %28
21: ; preds = %17
%22 = icmp sgt i32 %11, 0
%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, %21, %13, %0
br label %29
29: ; preds = %21, %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), %21 ]
%31 = call i32 @puts(i8* dereferenceable(1) %30)
ret i32 0
}