#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 main() {
  int arr[] = {11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
  int found = 0;
  int number = 1;
  int i;
  while (found != 10) {
    found = 0;
    number++;
    for (i = 0; i < 10; i++) {
      if (number % arr[i] == 0)
        found += 1;
    }
  };
  printf("The number is: %d\n", number);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xec6(%rip),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x34(%rbp)
movl   $0x1,-0x38(%rbp)
cmpl   $0xa,-0x34(%rbp)
je     11b3 <main+0x93>
movl   $0x0,-0x34(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0xa,-0x3c(%rbp)
jge    11ae <main+0x8e>
mov    -0x38(%rbp),%eax
movslq -0x3c(%rbp),%rcx
cltd
idivl  -0x30(%rbp,%rcx,4)
cmp    $0x0,%edx
jne    119b <main+0x7b>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11a0 <main+0x80>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1173 <main+0x53>
jmp    1152 <main+0x32>
mov    -0x38(%rbp),%esi
lea    0xe6b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0x2,%esi
mov    $0xcccccccd,%r8d
mov    $0xaf286bcb,%r9d
mov    $0xf0f0f0f1,%r10d
mov    $0x88888889,%r11d
movdqa 0xec6(%rip),%xmm8
movdqa 0xece(%rip),%xmm1
movdqa 0xed6(%rip),%xmm2
movdqa 0xede(%rip),%xmm3
pxor   %xmm4,%xmm4
cs nopw 0x0(%rax,%rax,1)
mov    %esi,%ebx
mov    %rbx,%rax
imul   %r8,%rax
shr    $0x24,%rax
shl    $0x2,%eax
lea    (%rax,%rax,4),%r14d
mov    %rbx,%rdx
imul   %r9,%rdx
shr    $0x20,%rdx
mov    %esi,%edi
sub    %edx,%edi
shr    %edi
add    %edx,%edi
shr    $0x4,%edi
lea    (%rdi,%rdi,8),%edx
lea    (%rdi,%rdx,2),%edx
imul   $0x38e38e39,%rbx,%rdi
shr    $0x22,%rdi
add    %edi,%edi
lea    (%rdi,%rdi,8),%edi
mov    %rbx,%rcx
imul   %r10,%rcx
shr    $0x24,%rcx
mov    %ecx,%ebp
shl    $0x4,%ebp
add    %ecx,%ebp
imul   %r11,%rbx
shr    $0x23,%rbx
mov    %ebx,%ecx
shl    $0x4,%ecx
sub    %ecx,%ebx
movd   %esi,%xmm6
pshufd $0x0,%xmm6,%xmm5
movdqa %xmm5,%xmm7
psrld  $0x1,%xmm7
shufps $0xf0,%xmm7,%xmm6
pmuludq %xmm8,%xmm6
pshufd $0xed,%xmm6,%xmm6
movdqa %xmm5,%xmm7
pmuludq %xmm1,%xmm7
pshufd $0xed,%xmm7,%xmm7
punpckldq %xmm6,%xmm7
movdqa %xmm7,%xmm6
psrld  $0x3,%xmm6
psrld  $0x2,%xmm7
movsd  %xmm6,%xmm7
movapd %xmm7,%xmm6
pmuludq %xmm2,%xmm6
pshufd $0xe8,%xmm6,%xmm6
shufps $0xf5,%xmm7,%xmm7
pmuludq %xmm3,%xmm7
pshufd $0xe8,%xmm7,%xmm7
punpckldq %xmm7,%xmm6
psubd  %xmm6,%xmm5
add    %esi,%ebx
mov    %esi,%ecx
and    $0xf,%ecx
mov    %esi,%eax
sub    %ebp,%eax
mov    %esi,%ebp
sub    %edi,%ebp
movd   %ebx,%xmm6
movd   %ecx,%xmm7
punpckldq %xmm7,%xmm6
movd   %eax,%xmm7
movd   %ebp,%xmm0
punpckldq %xmm0,%xmm7
punpcklqdq %xmm7,%xmm6
xor    %ecx,%ecx
cmp    %edx,%esi
sete   %cl
xor    %edx,%edx
cmp    %r14d,%esi
sete   %dl
pcmpeqd %xmm4,%xmm6
pcmpeqd %xmm4,%xmm5
packssdw %xmm6,%xmm5
packsswb %xmm5,%xmm5
pmovmskb %xmm5,%eax
mov    %eax,%ebx
shr    %bl
and    $0x55,%bl
sub    %bl,%al
mov    %eax,%ebx
and    $0x33,%bl
shr    $0x2,%al
and    $0x33,%al
add    %bl,%al
mov    %eax,%ebx
shr    $0x4,%bl
add    %al,%bl
and    $0xf,%bl
movzbl %bl,%eax
add    %ecx,%eax
add    %edx,%eax
add    $0x1,%esi
cmp    $0xa,%eax
jne    1160 <main+0x50>
add    $0xffffffff,%esi
lea    0xd90(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [19 x i8] c"The number is: %d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 1, %0 ], [ %3, %1 ]
%3 = add nuw nsw i32 %2, 1
%4 = insertelement <4 x i32> poison, i32 %3, i64 0
%5 = shufflevector <4 x i32> %4, <4 x i32> poison, <4 x i32> zeroinitializer
%6 = urem <4 x i32> %5, <i32 11, i32 12, i32 13, i32 14>
%7 = urem i32 %3, 15
%8 = and i32 %3, 15
%9 = urem i32 %3, 17
%10 = urem i32 %3, 18
%11 = shufflevector <4 x i32> %6, <4 x i32> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef>
%12 = insertelement <8 x i32> %11, i32 %7, i64 4
%13 = insertelement <8 x i32> %12, i32 %8, i64 5
%14 = insertelement <8 x i32> %13, i32 %9, i64 6
%15 = insertelement <8 x i32> %14, i32 %10, i64 7
%16 = icmp eq <8 x i32> %15, zeroinitializer
%17 = urem i32 %3, 19
%18 = icmp eq i32 %17, 0
%19 = zext i1 %18 to i32
%20 = urem i32 %3, 20
%21 = icmp eq i32 %20, 0
%22 = zext i1 %21 to i32
%23 = bitcast <8 x i1> %16 to i8
%24 = call i8 @llvm.ctpop.i8(i8 %23)
%25 = zext i8 %24 to i32
%26 = add nuw nsw i32 %25, %19
%27 = add nuw nsw i32 %26, %22
%28 = icmp eq i32 %27, 10
br i1 %28, label %29, label %1
29: ; preds = %1
%30 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %3)
ret i32 0
}