#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 *, unsigned int, unsigned int);
bool checkIfNumberIsMultiple(unsigned int number) {
  for (unsigned int i = 999; i > 100; i--) {
    if ((number % i == 0) && (number / i >= 100) && (number / i < 999)) {
      printf(" number is a multiple of %d and %d  ", number / i, i);
      return true;
    }
  }
  return false;
}


x86 assembly (clang, -O0):
<checkIfNumberIsMultiple>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
movl   $0x3e7,-0xc(%rbp)
cmpl   $0x64,-0xc(%rbp)
jbe    1199 <checkIfNumberIsMultiple+0x89>
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
cmp    $0x0,%edx
jne    1186 <checkIfNumberIsMultiple+0x76>
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
cmp    $0x64,%eax
jb     1186 <checkIfNumberIsMultiple+0x76>
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
cmp    $0x3e7,%eax
jae    1186 <checkIfNumberIsMultiple+0x76>
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,%esi
mov    -0xc(%rbp),%edx
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    11a0 <checkIfNumberIsMultiple+0x90>
jmp    118b <checkIfNumberIsMultiple+0x7b>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    1122 <checkIfNumberIsMultiple+0x12>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkIfNumberIsMultiple>:
mov    $0x3e7,%ecx
jmp    1128 <checkIfNumberIsMultiple+0x18>
nopw   0x0(%rax,%rax,1)
add    $0xffffffff,%ecx
cmp    $0x64,%ecx
jbe    1158 <checkIfNumberIsMultiple+0x48>
mov    %edi,%eax
xor    %edx,%edx
div    %ecx
test   %edx,%edx
jne    1120 <checkIfNumberIsMultiple+0x10>
lea    -0x64(%rax),%edx
cmp    $0x382,%edx
ja     1120 <checkIfNumberIsMultiple+0x10>
push   %rax
lea    0xebb(%rip),%rdi
mov    %eax,%esi
mov    %ecx,%edx
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x8,%rsp
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [37 x i8] c" number is a multiple of %d and %d \00"
define i32 @checkIfNumberIsMultiple(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 999, i32* %4
br label %5
5: ; preds = %30, %1
%6 = load i32, i32* %4
%7 = icmp ugt i32 %6, 100
br i1 %7, label %8, label %33
8: ; preds = %5
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = urem i32 %9, %10
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %29
13: ; preds = %8
%14 = load i32, i32* %3
%15 = load i32, i32* %4
%16 = udiv i32 %14, %15
%17 = icmp uge i32 %16, 100
br i1 %17, label %18, label %29
18: ; preds = %13
%19 = load i32, i32* %3
%20 = load i32, i32* %4
%21 = udiv i32 %19, %20
%22 = icmp ult i32 %21, 999
br i1 %22, label %23, label %29
23: ; preds = %18
%24 = load i32, i32* %3
%25 = load i32, i32* %4
%26 = udiv i32 %24, %25
%27 = load i32, i32* %4
%28 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %26, i32 %27)
store i32 1, i32* %2
br label %34
29: ; preds = %18, %13, %8
br label %30
30: ; preds = %29
%31 = load i32, i32* %4
%32 = add i32 %31, -1
store i32 %32, i32* %4
br label %5
33: ; preds = %5
store i32 0, i32* %2
br label %34
34: ; preds = %33, %23
%35 = load i32, i32* %2
ret i32 %35
}

LLVM IR (-O2):
@.str = [37 x i8] c" number is a multiple of %d and %d \00"
define i32 @checkIfNumberIsMultiple(i32 %0) {
br label %2
2: ; preds = %1, %12
%3 = phi i32 [ 999, %1 ], [ %13, %12 ]
%4 = urem i32 %0, %3
%5 = udiv i32 %0, %3
%6 = icmp eq i32 %4, 0
%7 = add nsw i32 %5, -100
%8 = icmp ult i32 %7, 899
%9 = select i1 %6, i1 %8, i1 false
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %3)
br label %15
12: ; preds = %2
%13 = add nsw i32 %3, -1
%14 = icmp ugt i32 %13, 100
br i1 %14, label %2, label %15
15: ; preds = %12, %10
%16 = phi i32 [ 1, %10 ], [ 0, %12 ]
ret i32 %16
}