#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 main() {
  int num1, num2;
  printf("Digite dois numeros");
  scanf("%d"
        "%d",
        &num1, &num2);
  if (num1 % 3 == 0 && num2 % 3 == 0) {
    printf("Eh divisivel por 3");
  }
  if (num1 % 5 == 0 && num2 % 5 == 0) {
    printf("Eh divisivel por 5");
  } else {
    printf("n\203o se aplica");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1183 <main+0x63>
mov    -0xc(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1183 <main+0x63>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11bc <main+0x9c>
mov    -0xc(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11bc <main+0x9c>
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
jmp    11c8 <main+0xa8>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
imul   $0xaaaaaaab,%eax,%ecx
add    $0x2aaaaaaa,%ecx
cmp    $0x55555554,%ecx
ja     117e <main+0x5e>
imul   $0xaaaaaaab,(%rsp),%ecx
add    $0x2aaaaaaa,%ecx
cmp    $0x55555554,%ecx
ja     117e <main+0x5e>
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
imul   $0xcccccccd,%eax,%eax
add    $0x19999999,%eax
cmp    $0x33333332,%eax
ja     11a3 <main+0x83>
imul   $0xcccccccd,(%rsp),%eax
add    $0x19999999,%eax
cmp    $0x33333333,%eax
jb     11b3 <main+0x93>
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xe72(%rip),%rdi
jmp    11aa <main+0x8a>

LLVM IR (-O0):
@.str = [20 x i8] c"Digite dois numeros\00"
@.str.1 = [5 x i8] c"%d%d\00"
@.str.2 = [19 x i8] c"Eh divisivel por 3\00"
@.str.3 = [19 x i8] c"Eh divisivel por 5\00"
@.str.4 = [14 x i8] c"n\83o se aplica\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3)
%6 = load i32, i32* %2
%7 = srem i32 %6, 3
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %0
%10 = load i32, i32* %3
%11 = srem i32 %10, 3
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %15
15: ; preds = %13, %9, %0
%16 = load i32, i32* %2
%17 = srem i32 %16, 5
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %15
%20 = load i32, i32* %3
%21 = srem i32 %20, 5
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
br label %27
25: ; preds = %19, %15
%26 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %27
27: ; preds = %25, %23
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"Digite dois numeros\00"
@.str.1 = [5 x i8] c"%d%d\00"
@.str.2 = [19 x i8] c"Eh divisivel por 3\00"
@.str.3 = [19 x i8] c"Eh divisivel por 5\00"
@.str.4 = [14 x i8] c"n\83o se aplica\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2)
%7 = load i32, i32* %1
%8 = srem i32 %7, 3
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %17
10: ; preds = %0
%11 = load i32, i32* %2
%12 = srem i32 %11, 3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32, i32* %1
br label %17
17: ; preds = %14, %10, %0
%18 = phi i32 [ %16, %14 ], [ %7, %10 ], [ %7, %0 ]
%19 = srem i32 %18, 5
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load i32, i32* %2
%23 = srem i32 %22, 5
%24 = icmp eq i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %21, %17
br label %26
26: ; preds = %21, %25
%27 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), %25 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), %21 ]
%28 = call i32 @printf(i8* dereferenceable(1) %27)
ret i32 0
}