#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 A, B;
  scanf(" %d %d", &A, &B);
  if (B >= A) {
    if (B % A == 0)
      printf("Sao Multiplos\n");
    else
      printf("Nao sao Multiplos\n");
  } else if (A >= B) {
    if (A % B == 0)
      printf("Sao Multiplos\n");
    else
      printf("Nao sao Multiplos\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jl     1181 <main+0x61>
mov    -0xc(%rbp),%eax
cltd
idivl  -0x8(%rbp)
cmp    $0x0,%edx
jne    1170 <main+0x50>
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
jmp    117c <main+0x5c>
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
jmp    11c4 <main+0xa4>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     11bf <main+0x9f>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    11ae <main+0x8e>
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
jmp    11ba <main+0x9a>
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
jmp    11bf <main+0x9f>
jmp    11c4 <main+0xa4>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    (%rsp),%ecx
mov    0x4(%rsp),%esi
cmp    %esi,%ecx
jge    1147 <main+0x27>
mov    %esi,%eax
cltd
idiv   %ecx
jmp    114c <main+0x2c>
mov    %ecx,%eax
cltd
idiv   %esi
test   %edx,%edx
lea    0xec4(%rip),%rax
lea    0xeab(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c" %d %d\00"
@.str.1 = [15 x i8] c"Sao Multiplos\0A\00"
@.str.2 = [19 x i8] c"Nao sao Multiplos\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp sge i32 %5, %6
br i1 %7, label %8, label %18
8: ; preds = %0
%9 = load i32, i32* %3
%10 = load i32, i32* %2
%11 = srem i32 %9, %10
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %17
15: ; preds = %8
%16 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %15, %13
br label %33
18: ; preds = %0
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = icmp sge i32 %19, %20
br i1 %21, label %22, label %32
22: ; preds = %18
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = srem i32 %23, %24
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %31
29: ; preds = %22
%30 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %31
31: ; preds = %29, %27
br label %32
32: ; preds = %31, %18
br label %33
33: ; preds = %32, %17
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c" %d %d\00"
@str.4 = [18 x i8] c"Nao sao Multiplos\00"
@str.5 = [14 x i8] c"Sao Multiplos\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %2
%7 = load i32, i32* %1
%8 = icmp slt i32 %6, %7
br i1 %8, label %13, label %9
9: ; preds = %0
%10 = srem i32 %6, %7
%11 = icmp eq i32 %10, 0
%12 = select i1 %11, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @str.4, i64 0, i64 0)
br label %17
13: ; preds = %0
%14 = srem i32 %7, %6
%15 = icmp eq i32 %14, 0
%16 = select i1 %15, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @str.4, i64 0, i64 0)
br label %17
17: ; preds = %13, %9
%18 = phi i8* [ %12, %9 ], [ %16, %13 ]
%19 = call i32 @puts(i8* dereferenceable(1) %18)
ret i32 0
}