#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);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int x = 0, y = 0;
  scanf("%d", &x);
  scanf("%d", &y);
  int somaPares = x + y;
  int multiImpares = x * y;
  printf("%d\n", somaPares);
  printf("%d\n", multiImpares);
  while (x < y) {
    x++;
    if (x % 2 == 0)
      somaPares += x;
    else
      multiImpares *= x;
  }
  printf("A soma de X e Y mais os números pares entre eles é: %d\n", somaPares);
  printf("A multiplicação de X e Y mais os números ímpares entre eles é: %d",
         multiImpares);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
lea    0xf3a(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xf2a(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%esi
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11d4 <main+0xb4>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11c5 <main+0xa5>
mov    -0x8(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    11cf <main+0xaf>
mov    -0x8(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    118e <main+0x6e>
mov    -0x10(%rbp),%esi
lea    0xe22(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xe4d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
lea    0xf8f(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x8(%rsp),%eax
mov    0xc(%rsp),%ebx
lea    (%rbx,%rax,1),%ebp
imul   %eax,%ebx
lea    0xf18(%rip),%r14
mov    %r14,%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    0xc(%rsp),%r8d
mov    0x8(%rsp),%ecx
mov    %r8d,%edx
sub    %ecx,%edx
jle    1339 <main+0x219>
cmp    $0x8,%edx
jb     12fb <main+0x1db>
mov    %edx,%esi
and    $0xfffffff8,%esi
movd   %ebx,%xmm1
movaps 0xe51(%rip),%xmm0
movss  %xmm1,%xmm0
movd   %ebp,%xmm13
movd   %ecx,%xmm2
add    %esi,%ecx
pshufd $0x0,%xmm2,%xmm6
paddd  0xe45(%rip),%xmm6
pxor   %xmm11,%xmm11
movdqa 0xe47(%rip),%xmm12
pcmpeqd %xmm8,%xmm8
movdqa 0xe49(%rip),%xmm9
movdqa 0xe50(%rip),%xmm10
mov    %esi,%edi
movdqa %xmm12,%xmm2
pxor   %xmm14,%xmm14
nopl   0x0(%rax)
movdqa %xmm6,%xmm1
psubd  %xmm8,%xmm1
movdqa %xmm6,%xmm5
paddd  %xmm9,%xmm5
movdqa %xmm1,%xmm4
pand   %xmm12,%xmm4
movdqa %xmm5,%xmm7
pand   %xmm12,%xmm7
pcmpeqd %xmm11,%xmm4
pcmpeqd %xmm11,%xmm7
movdqa %xmm4,%xmm3
pandn  %xmm1,%xmm3
psubd  %xmm4,%xmm3
pand   %xmm1,%xmm4
paddd  %xmm4,%xmm13
movdqa %xmm7,%xmm1
pandn  %xmm5,%xmm1
psubd  %xmm7,%xmm1
pand   %xmm5,%xmm7
paddd  %xmm7,%xmm14
pshufd $0xf5,%xmm3,%xmm4
pmuludq %xmm0,%xmm3
pshufd $0xf5,%xmm0,%xmm0
pshufd $0xe8,%xmm3,%xmm3
pmuludq %xmm4,%xmm0
pshufd $0xe8,%xmm0,%xmm4
movdqa %xmm3,%xmm0
punpckldq %xmm4,%xmm0
pshufd $0xf5,%xmm1,%xmm3
pmuludq %xmm2,%xmm1
pshufd $0xf5,%xmm2,%xmm2
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm3,%xmm2
pshufd $0xe8,%xmm2,%xmm3
movdqa %xmm1,%xmm2
punpckldq %xmm3,%xmm2
paddd  %xmm10,%xmm6
add    $0xfffffff8,%edi
jne    1200 <main+0xe0>
paddd  %xmm13,%xmm14
pshufd $0xee,%xmm14,%xmm1
paddd  %xmm14,%xmm1
pshufd $0x55,%xmm1,%xmm3
paddd  %xmm1,%xmm3
movd   %xmm3,%ebp
pshufd $0xf5,%xmm0,%xmm1
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm1,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xee,%xmm2,%xmm0
pmuludq %xmm2,%xmm0
pshufd $0xaa,%xmm3,%xmm1
pmuludq %xmm3,%xmm1
pmuludq %xmm0,%xmm1
movd   %xmm1,%ebx
cmp    %esi,%edx
je     1334 <main+0x214>
mov    %r8d,%edx
neg    %edx
add    $0x1,%ecx
mov    $0x1,%r9d
nopl   0x0(%rax)
test   $0x1,%cl
mov    $0x0,%edi
cmove  %ecx,%edi
mov    %ecx,%eax
lea    0x1(%rdx,%rcx,1),%esi
cmove  %r9d,%ecx
add    %edi,%ebp
imul   %ecx,%ebx
add    $0x1,%eax
mov    %eax,%ecx
cmp    $0x1,%esi
jne    1310 <main+0x1f0>
mov    %r8d,0x8(%rsp)
lea    0xd10(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
lea    0xd3c(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [58 x i8] c"A soma de X e Y mais os n\C3\BAmeros pares entre eles \C3\A9: %d\0A\00"
@.str.3 = [71 x i8] c"A multiplica\C3\A7\C3\A3o de X e Y mais os n\C3\BAmeros \C3\ADmpares entre eles \C3\A9: %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = add nsw i32 %8, %9
store i32 %10, i32* %4
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = mul nsw i32 %11, %12
store i32 %13, i32* %5
%14 = load i32, i32* %4
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = load i32, i32* %5
%17 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %16)
br label %18
18: ; preds = %36, %0
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %37
22: ; preds = %18
%23 = load i32, i32* %2
%24 = add nsw i32 %23, 1
store i32 %24, i32* %2
%25 = load i32, i32* %2
%26 = srem i32 %25, 2
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %22
%29 = load i32, i32* %2
%30 = load i32, i32* %4
%31 = add nsw i32 %30, %29
store i32 %31, i32* %4
br label %36
32: ; preds = %22
%33 = load i32, i32* %2
%34 = load i32, i32* %5
%35 = mul nsw i32 %34, %33
store i32 %35, i32* %5
br label %36
36: ; preds = %32, %28
br label %18
37: ; preds = %18
%38 = load i32, i32* %4
%39 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %5
%41 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %1
ret i32 %42
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [58 x i8] c"A soma de X e Y mais os n\C3\BAmeros pares entre eles \C3\A9: %d\0A\00"
@.str.3 = [71 x i8] c"A multiplica\C3\A7\C3\A3o de X e Y mais os n\C3\BAmeros \C3\ADmpares entre eles \C3\A9: %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%4 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = add nsw i32 %8, %7
%10 = mul nsw i32 %8, %7
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%13 = load i32, i32* %2
%14 = load i32, i32* %1
%15 = icmp sgt i32 %13, %14
br i1 %15, label %16, label %76
16: ; preds = %0
%17 = sub i32 %13, %14
%18 = icmp ult i32 %17, 8
br i1 %18, label %57, label %19
19: ; preds = %16
%20 = and i32 %17, -8
%21 = add i32 %14, %20
%22 = insertelement <4 x i32> <i32 poison, i32 1, i32 1, i32 1>, i32 %10, i64 0
%23 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %9, i64 0
%24 = insertelement <4 x i32> poison, i32 %14, i64 0
%25 = shufflevector <4 x i32> %24, <4 x i32> poison, <4 x i32> zeroinitializer
%26 = add <4 x i32> %25, <i32 0, i32 1, i32 2, i32 3>
br label %27
27: ; preds = %27, %19
%28 = phi i32 [ 0, %19 ], [ %48, %27 ]
%29 = phi <4 x i32> [ %22, %19 ], [ %46, %27 ]
%30 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %19 ], [ %47, %27 ]
%31 = phi <4 x i32> [ %23, %19 ], [ %42, %27 ]
%32 = phi <4 x i32> [ zeroinitializer, %19 ], [ %43, %27 ]
%33 = phi <4 x i32> [ %26, %19 ], [ %49, %27 ]
%34 = add nsw <4 x i32> %33, <i32 1, i32 1, i32 1, i32 1>
%35 = add <4 x i32> %33, <i32 5, i32 5, i32 5, i32 5>
%36 = and <4 x i32> %34, <i32 1, i32 1, i32 1, i32 1>
%37 = and <4 x i32> %35, <i32 1, i32 1, i32 1, i32 1>
%38 = icmp eq <4 x i32> %36, zeroinitializer
%39 = icmp eq <4 x i32> %37, zeroinitializer
%40 = select <4 x i1> %38, <4 x i32> %34, <4 x i32> zeroinitializer
%41 = select <4 x i1> %39, <4 x i32> %35, <4 x i32> zeroinitializer
%42 = add <4 x i32> %40, %31
%43 = add <4 x i32> %41, %32
%44 = select <4 x i1> %38, <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> %34
%45 = select <4 x i1> %39, <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> %35
%46 = mul <4 x i32> %44, %29
%47 = mul <4 x i32> %45, %30
%48 = add nuw i32 %28, 8
%49 = add <4 x i32> %33, <i32 8, i32 8, i32 8, i32 8>
%50 = icmp eq i32 %48, %20
br i1 %50, label %51, label %27
51: ; preds = %27
%52 = add <4 x i32> %43, %42
%53 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %52)
%54 = mul <4 x i32> %47, %46
%55 = call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %54)
%56 = icmp eq i32 %17, %20
br i1 %56, label %73, label %57
57: ; preds = %16, %51
%58 = phi i32 [ %10, %16 ], [ %55, %51 ]
%59 = phi i32 [ %9, %16 ], [ %53, %51 ]
%60 = phi i32 [ %14, %16 ], [ %21, %51 ]
br label %61
61: ; preds = %57, %61
%62 = phi i32 [ %71, %61 ], [ %58, %57 ]
%63 = phi i32 [ %69, %61 ], [ %59, %57 ]
%64 = phi i32 [ %65, %61 ], [ %60, %57 ]
%65 = add nsw i32 %64, 1
%66 = and i32 %65, 1
%67 = icmp eq i32 %66, 0
%68 = select i1 %67, i32 %65, i32 0
%69 = add nsw i32 %68, %63
%70 = select i1 %67, i32 1, i32 %65
%71 = mul nsw i32 %70, %62
%72 = icmp eq i32 %65, %13
br i1 %72, label %73, label %61
73: ; preds = %61, %51
%74 = phi i32 [ %53, %51 ], [ %69, %61 ]
%75 = phi i32 [ %55, %51 ], [ %71, %61 ]
store i32 %13, i32* %1
br label %76
76: ; preds = %73, %0
%77 = phi i32 [ %74, %73 ], [ %9, %0 ]
%78 = phi i32 [ %75, %73 ], [ %10, %0 ]
%79 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i32 %77)
%80 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0), i32 %78)
ret i32 0
}