#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 */
bool checkDivisible(int number) {
  if (number % 2 == 0) {
    return false;
  }
  for (int i = 3; i <= 20; i += 2) {
    if (number % i != 0)
      return false;
  }
  return true;
}


x86 assembly (clang, -O0):
<checkDivisible>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1127 <checkDivisible+0x27>
movl   $0x0,-0x4(%rbp)
jmp    116e <checkDivisible+0x6e>
movl   $0x3,-0xc(%rbp)
cmpl   $0x14,-0xc(%rbp)
jg     1167 <checkDivisible+0x67>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
je     1154 <checkDivisible+0x54>
movl   $0x0,-0x4(%rbp)
jmp    116e <checkDivisible+0x6e>
jmp    1159 <checkDivisible+0x59>
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    112e <checkDivisible+0x2e>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkDivisible>:
movslq %edi,%rax
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
mov    %eax,%esi
sub    %ecx,%esi
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    %ecx
add    %edx,%ecx
lea    (%rcx,%rcx,4),%ecx
mov    %eax,%r8d
sub    %ecx,%r8d
or     %esi,%r8d
imul   $0xffffffff92492493,%rax,%rsi
shr    $0x20,%rsi
add    %eax,%esi
mov    %esi,%ecx
shr    $0x1f,%ecx
sar    $0x2,%esi
add    %ecx,%esi
lea    0x0(,%rsi,8),%ecx
sub    %ecx,%esi
add    %eax,%esi
imul   $0x38e38e39,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    %ecx
add    %edx,%ecx
lea    (%rcx,%rcx,8),%edx
mov    %eax,%r9d
sub    %edx,%r9d
or     %r8d,%r9d
or     %esi,%r9d
imul   $0x2e8ba2e9,%rax,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
sar    %edx
add    %esi,%edx
lea    (%rdx,%rdx,4),%esi
lea    (%rdx,%rsi,2),%edx
mov    %eax,%r8d
sub    %edx,%r8d
imul   $0x4ec4ec4f,%rax,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
sar    $0x2,%edx
add    %esi,%edx
lea    (%rdx,%rdx,2),%esi
lea    (%rdx,%rsi,4),%edx
mov    %eax,%esi
sub    %edx,%esi
or     %r8d,%esi
imul   $0xffffffff88888889,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0x3,%edx
add    %ecx,%edx
lea    (%rdx,%rdx,4),%ecx
lea    (%rcx,%rcx,2),%ecx
mov    %eax,%edx
sub    %ecx,%edx
or     %esi,%edx
or     %r9d,%edx
imul   $0x78787879,%rax,%rcx
mov    %rcx,%rsi
shr    $0x3f,%rsi
sar    $0x23,%rcx
add    %esi,%ecx
mov    %ecx,%esi
shl    $0x4,%esi
add    %ecx,%esi
mov    %eax,%ecx
sub    %esi,%ecx
or     %edx,%ecx
imul   $0x6bca1af3,%rax,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
sar    $0x23,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,8),%esi
lea    (%rdx,%rsi,2),%edx
sub    %edx,%eax
or     %ecx,%eax
sete   %al
and    %dil,%al
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @checkDivisible(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
%5 = load i32, i32* %3
%6 = srem i32 %5, 2
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, i32* %2
br label %24
9: ; preds = %1
store i32 3, i32* %4
br label %10
10: ; preds = %20, %9
%11 = load i32, i32* %4
%12 = icmp sle i32 %11, 20
br i1 %12, label %13, label %23
13: ; preds = %10
%14 = load i32, i32* %3
%15 = load i32, i32* %4
%16 = srem i32 %14, %15
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %13
store i32 0, i32* %2
br label %24
19: ; preds = %13
br label %20
20: ; preds = %19
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 2
store i32 %22, i32* %4
br label %10
23: ; preds = %10
store i32 1, i32* %2
br label %24
24: ; preds = %23, %18, %8
%25 = load i32, i32* %2
ret i32 %25
}

LLVM IR (-O2):
define i32 @checkDivisible(i32 %0) {
%2 = and i32 %0, 1
%3 = icmp ne i32 %2, 0
%4 = srem i32 %0, 3
%5 = srem i32 %0, 5
%6 = or i32 %4, %5
%7 = srem i32 %0, 7
%8 = or i32 %6, %7
%9 = srem i32 %0, 9
%10 = or i32 %8, %9
%11 = srem i32 %0, 11
%12 = or i32 %10, %11
%13 = srem i32 %0, 13
%14 = or i32 %12, %13
%15 = srem i32 %0, 15
%16 = or i32 %14, %15
%17 = srem i32 %0, 17
%18 = or i32 %16, %17
%19 = srem i32 %0, 19
%20 = or i32 %18, %19
%21 = icmp eq i32 %20, 0
%22 = and i1 %21, %3
%23 = zext i1 %22 to i32
ret i32 %23
}