#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 divisible(int *, int, long);
int /*<<< orphan*/ printf(char *, ...);
void print(int ayy[], int size, long int input) {
  int occurances[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int x = 0; x < size; x++) {
    occurances[ayy[x]] = occurances[ayy[x]] + 1;
  }
  printf("\n");
  printf("\nDigits:         0  1  2  3  4  5  6  7  8  9");
  printf("\nOccurrences: ");
  printf("   ");
  for (int i = 0; i < 10; i++) {
    printf("%d  ", occurances[i]);
  }
  printf("\n");
  int chek = 0;
  for (int y = 0; y < 10; y++) {
    if ((occurances[y] > 1)) {
      printf("\nWrong input for the second part.");
      printf("\nInput should not contain each digit more than once.\n");
      chek = 1;
      break;
    }
  }
  if ((occurances[0] > 0) && (chek != 1)) {
    printf("\nWrong input for the second part.");
    printf("\nInput should not contain zero.\n");
    chek = 1;
  }
  if ((occurances[0] > 0) && (chek == 1)) {
    printf("\nInput should not contain zero.\n");
  }
  int div = (divisible(ayy, size, input));
  if ((div == 1) && (chek != 1)) {
    printf("\n%ld is divisible by its digits.\n", input);
  } else if ((div == 0) && (chek != 1)) {
    printf("\n%ld is not divisible by its digits.\n", input);
  }
  chek = 0;
  div = 0;
}


x86 assembly (clang, -O0):
<print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1197 <print+0x67>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
movslq (%rax,%rcx,4),%rax
mov    -0x40(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rdx
movslq (%rax,%rdx,4),%rax
mov    %ecx,-0x40(%rbp,%rax,4)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    115a <print+0x2a>
lea    0xefe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x48(%rbp)
cmpl   $0xa,-0x48(%rbp)
jge    1204 <print+0xd4>
movslq -0x48(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%esi
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    11d6 <print+0xa6>
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
cmpl   $0xa,-0x50(%rbp)
jge    1274 <print+0x144>
movslq -0x50(%rbp),%rax
cmpl   $0x1,-0x40(%rbp,%rax,4)
jle    1261 <print+0x131>
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4c(%rbp)
jmp    1274 <print+0x144>
jmp    1266 <print+0x136>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1220 <print+0xf0>
cmpl   $0x0,-0x40(%rbp)
jle    12ab <print+0x17b>
cmpl   $0x1,-0x4c(%rbp)
je     12ab <print+0x17b>
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4c(%rbp)
cmpl   $0x0,-0x40(%rbp)
jle    12cd <print+0x19d>
cmpl   $0x1,-0x4c(%rbp)
jne    12cd <print+0x19d>
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1050 <divisible@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x1,-0x54(%rbp)
jne    130b <print+0x1db>
cmpl   $0x1,-0x4c(%rbp)
je     130b <print+0x1db>
mov    -0x18(%rbp),%rsi
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1336 <print+0x206>
cmpl   $0x0,-0x54(%rbp)
jne    1331 <print+0x201>
cmpl   $0x1,-0x4c(%rbp)
je     1331 <print+0x201>
mov    -0x18(%rbp),%rsi
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1336 <print+0x206>
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x54(%rbp)
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rdx,0x28(%rsp)
mov    %esi,%r15d
mov    %rdi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movq   $0x0,0x50(%rsp)
test   %esi,%esi
jle    1189 <print+0x49>
mov    %r15d,%ecx
lea    -0x1(%rcx),%rdx
mov    %ecx,%eax
and    $0x3,%eax
cmp    $0x3,%rdx
jae    11a0 <print+0x60>
xor    %edx,%edx
jmp    11e0 <print+0xa0>
xor    %r12d,%r12d
xor    %r13d,%r13d
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
jmp    121f <print+0xdf>
and    $0xfffffffc,%ecx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movslq (%rbx,%rdx,4),%rsi
addl   $0x1,0x30(%rsp,%rsi,4)
movslq 0x4(%rbx,%rdx,4),%rsi
addl   $0x1,0x30(%rsp,%rsi,4)
movslq 0x8(%rbx,%rdx,4),%rsi
addl   $0x1,0x30(%rsp,%rsi,4)
movslq 0xc(%rbx,%rdx,4),%rsi
addl   $0x1,0x30(%rsp,%rsi,4)
add    $0x4,%rdx
cmp    %rdx,%rcx
jne    11b0 <print+0x70>
test   %rax,%rax
je     1202 <print+0xc2>
lea    (%rbx,%rdx,4),%rcx
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movslq (%rcx,%rdx,4),%rsi
addl   $0x1,0x30(%rsp,%rsi,4)
add    $0x1,%rdx
cmp    %rdx,%rax
jne    11f0 <print+0xb0>
movaps 0x30(%rsp),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x40(%rsp),%xmm0
movaps %xmm0,(%rsp)
mov    0x50(%rsp),%r13d
mov    0x54(%rsp),%r12d
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xde0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe00(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe01(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movdqa 0x10(%rsp),%xmm0
movd   %xmm0,%ebp
lea    0xded(%rip),%r14
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
pshufd $0x55,0x10(%rsp),%xmm0
movd   %xmm0,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
pshufd $0xee,0x10(%rsp),%xmm0
movd   %xmm0,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
pshufd $0xff,0x10(%rsp),%xmm0
movd   %xmm0,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movdqa (%rsp),%xmm0
movd   %xmm0,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
pshufd $0x55,(%rsp),%xmm0
movd   %xmm0,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
pshufd $0xee,(%rsp),%xmm0
movd   %xmm0,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
pshufd $0xff,(%rsp),%xmm0
movd   %xmm0,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movdqa 0xcd6(%rip),%xmm0
movdqa 0x10(%rsp),%xmm1
pcmpgtd %xmm0,%xmm1
movdqa (%rsp),%xmm2
pcmpgtd %xmm0,%xmm2
packssdw %xmm2,%xmm1
pmovmskb %xmm1,%eax
test   %eax,%eax
jne    1375 <print+0x235>
cmp    $0x1,%r13d
jg     1375 <print+0x235>
cmp    $0x1,%r12d
jg     1375 <print+0x235>
test   %ebp,%ebp
jle    13bd <print+0x27d>
lea    0xcf6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd52(%rip),%rdi
call   1040 <puts@plt>
jmp    1393 <print+0x253>
lea    0xcda(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd56(%rip),%rdi
call   1040 <puts@plt>
test   %ebp,%ebp
jle    139f <print+0x25f>
lea    0xd26(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    %r15d,%esi
mov    0x28(%rsp),%rdx
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <divisible@plt>
mov    %rbx,%rdi
mov    %r15d,%esi
mov    0x28(%rsp),%rbx
mov    %rbx,%rdx
call   1060 <divisible@plt>
test   %eax,%eax
je     13e2 <print+0x2a2>
cmp    $0x1,%eax
jne    1401 <print+0x2c1>
lea    0xc98(%rip),%rdi
jmp    13e9 <print+0x2a9>
lea    0xcb1(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [46 x i8] c"\0ADigits: 0 1 2 3 4 5 6 7 8 9\00"
@.str.2 = [15 x i8] c"\0AOccurrences: \00"
@.str.3 = [4 x i8] c" \00"
@.str.4 = [5 x i8] c"%d \00"
@.str.5 = [34 x i8] c"\0AWrong input for the second part.\00"
@.str.6 = [54 x i8] c"\0AInput should not contain each digit more than once.\0A\00"
@.str.7 = [33 x i8] c"\0AInput should not contain zero.\0A\00"
@.str.8 = [34 x i8] c"\0A%ld is divisible by its digits.\0A\00"
@.str.9 = [38 x i8] c"\0A%ld is not divisible by its digits.\0A\00"
define void @print(i32* %0, i32 %1, i64 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i64
%7 = alloca [10 x i32]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i64 %2, i64* %6
%13 = bitcast [10 x i32]* %7 to i8*
store i32 0, i32* %8
br label %14
14: ; preds = %35, %3
%15 = load i32, i32* %8
%16 = load i32, i32* %5
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %38
18: ; preds = %14
%19 = load i32*, i32** %4
%20 = load i32, i32* %8
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, i32* %19, i64 %21
%23 = load i32, i32* %22
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %24
%26 = load i32, i32* %25
%27 = add nsw i32 %26, 1
%28 = load i32*, i32** %4
%29 = load i32, i32* %8
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, i32* %28, i64 %30
%32 = load i32, i32* %31
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %33
store i32 %27, i32* %34
br label %35
35: ; preds = %18
%36 = load i32, i32* %8
%37 = add nsw i32 %36, 1
store i32 %37, i32* %8
br label %14
38: ; preds = %14
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %9
br label %43
43: ; preds = %52, %38
%44 = load i32, i32* %9
%45 = icmp slt i32 %44, 10
br i1 %45, label %46, label %55
46: ; preds = %43
%47 = load i32, i32* %9
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %50)
br label %52
52: ; preds = %46
%53 = load i32, i32* %9
%54 = add nsw i32 %53, 1
store i32 %54, i32* %9
br label %43
55: ; preds = %43
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %10
store i32 0, i32* %11
br label %57
57: ; preds = %70, %55
%58 = load i32, i32* %11
%59 = icmp slt i32 %58, 10
br i1 %59, label %60, label %73
60: ; preds = %57
%61 = load i32, i32* %11
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %62
%64 = load i32, i32* %63
%65 = icmp sgt i32 %64, 1
br i1 %65, label %66, label %69
66: ; preds = %60
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %10
br label %73
69: ; preds = %60
br label %70
70: ; preds = %69
%71 = load i32, i32* %11
%72 = add nsw i32 %71, 1
store i32 %72, i32* %11
br label %57
73: ; preds = %66, %57
%74 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 0
%75 = load i32, i32* %74
%76 = icmp sgt i32 %75, 0
br i1 %76, label %77, label %83
77: ; preds = %73
%78 = load i32, i32* %10
%79 = icmp ne i32 %78, 1
br i1 %79, label %80, label %83
80: ; preds = %77
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %10
br label %83
83: ; preds = %80, %77, %73
%84 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 0
%85 = load i32, i32* %84
%86 = icmp sgt i32 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %83
%88 = load i32, i32* %10
%89 = icmp eq i32 %88, 1
br i1 %89, label %90, label %92
90: ; preds = %87
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
br label %92
92: ; preds = %90, %87, %83
%93 = load i32*, i32** %4
%94 = load i32, i32* %5
%95 = load i64, i64* %6
%96 = call i32 @divisible(i32* %93, i32 %94, i64 %95)
store i32 %96, i32* %12
%97 = load i32, i32* %12
%98 = icmp eq i32 %97, 1
br i1 %98, label %99, label %105
99: ; preds = %92
%100 = load i32, i32* %10
%101 = icmp ne i32 %100, 1
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load i64, i64* %6
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i64 %103)
br label %115
105: ; preds = %99, %92
%106 = load i32, i32* %12
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %114
108: ; preds = %105
%109 = load i32, i32* %10
%110 = icmp ne i32 %109, 1
br i1 %110, label %111, label %114
111: ; preds = %108
%112 = load i64, i64* %6
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i64 %112)
br label %114
114: ; preds = %111, %108, %105
br label %115
115: ; preds = %114, %102
store i32 0, i32* %10
store i32 0, i32* %12
ret void
}

LLVM IR (-O2):
@.str.1 = [46 x i8] c"\0ADigits: 0 1 2 3 4 5 6 7 8 9\00"
@.str.2 = [15 x i8] c"\0AOccurrences: \00"
@.str.3 = [4 x i8] c" \00"
@.str.4 = [5 x i8] c"%d \00"
@.str.5 = [34 x i8] c"\0AWrong input for the second part.\00"
@.str.8 = [34 x i8] c"\0A%ld is divisible by its digits.\0A\00"
@.str.9 = [38 x i8] c"\0A%ld is not divisible by its digits.\0A\00"
@str.10 = [32 x i8] c"\0AInput should not contain zero.\00"
@str.11 = [53 x i8] c"\0AInput should not contain each digit more than once.\00"
define void @print(i32* %0, i32 %1, i64 %2) {
%4 = alloca [10 x i32]
%5 = bitcast [10 x i32]* %4 to i8*
%6 = icmp sgt i32 %1, 0
br i1 %6, label %7, label %36
7: ; preds = %3
%8 = zext i32 %1 to i64
%9 = add nsw i64 %8, -1
%10 = and i64 %8, 3
%11 = icmp ult i64 %9, 3
br i1 %11, label %14, label %12
12: ; preds = %7
%13 = and i64 %8, 4294967292
br label %71
14: ; preds = %71, %7
%15 = phi i64 [ 0, %7 ], [ %101, %71 ]
%16 = icmp eq i64 %10, 0
br i1 %16, label %29, label %17
17: ; preds = %14, %17
%18 = phi i64 [ %26, %17 ], [ %15, %14 ]
%19 = phi i64 [ %27, %17 ], [ 0, %14 ]
%20 = getelementptr inbounds i32, i32* %0, i64 %18
%21 = load i32, i32* %20
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %22
%24 = load i32, i32* %23
%25 = add nsw i32 %24, 1
store i32 %25, i32* %23
%26 = add nuw nsw i64 %18, 1
%27 = add i64 %19, 1
%28 = icmp eq i64 %27, %10
br i1 %28, label %29, label %17
29: ; preds = %17, %14
%30 = bitcast [10 x i32]* %4 to <8 x i32>*
%31 = load <8 x i32>, <8 x i32>* %30
%32 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 8
%33 = load i32, i32* %32
%34 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 9
%35 = load i32, i32* %34
br label %36
36: ; preds = %29, %3
%37 = phi i32 [ %35, %29 ], [ 0, %3 ]
%38 = phi i32 [ %33, %29 ], [ 0, %3 ]
%39 = phi <8 x i32> [ %31, %29 ], [ zeroinitializer, %3 ]
%40 = tail call i32 @putchar(i32 10)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%44 = extractelement <8 x i32> %39, i64 0
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%46 = extractelement <8 x i32> %39, i64 1
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %46)
%48 = extractelement <8 x i32> %39, i64 2
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %48)
%50 = extractelement <8 x i32> %39, i64 3
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %50)
%52 = extractelement <8 x i32> %39, i64 4
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %52)
%54 = extractelement <8 x i32> %39, i64 5
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %54)
%56 = extractelement <8 x i32> %39, i64 6
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %56)
%58 = extractelement <8 x i32> %39, i64 7
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %58)
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %38)
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %37)
%62 = tail call i32 @putchar(i32 10)
%63 = freeze <8 x i32> %39
%64 = icmp sgt <8 x i32> %63, <i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
%65 = bitcast <8 x i1> %64 to i8
%66 = icmp ne i8 %65, 0
%67 = icmp sgt i32 %38, 1
%68 = select i1 %66, i1 true, i1 %67
%69 = icmp sgt i32 %37, 1
%70 = select i1 %68, i1 true, i1 %69
br i1 %70, label %109, label %104
71: ; preds = %71, %12
%72 = phi i64 [ 0, %12 ], [ %101, %71 ]
%73 = phi i64 [ 0, %12 ], [ %102, %71 ]
%74 = getelementptr inbounds i32, i32* %0, i64 %72
%75 = load i32, i32* %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = add nsw i32 %78, 1
store i32 %79, i32* %77
%80 = or i64 %72, 1
%81 = getelementptr inbounds i32, i32* %0, i64 %80
%82 = load i32, i32* %81
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %83
%85 = load i32, i32* %84
%86 = add nsw i32 %85, 1
store i32 %86, i32* %84
%87 = or i64 %72, 2
%88 = getelementptr inbounds i32, i32* %0, i64 %87
%89 = load i32, i32* %88
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = add nsw i32 %92, 1
store i32 %93, i32* %91
%94 = or i64 %72, 3
%95 = getelementptr inbounds i32, i32* %0, i64 %94
%96 = load i32, i32* %95
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %97
%99 = load i32, i32* %98
%100 = add nsw i32 %99, 1
store i32 %100, i32* %98
%101 = add nuw nsw i64 %72, 4
%102 = add i64 %73, 4
%103 = icmp eq i64 %102, %13
br i1 %103, label %14, label %71
104: ; preds = %36
%105 = icmp sgt i32 %44, 0
br i1 %105, label %106, label %117
106: ; preds = %104
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%108 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.10, i64 0, i64 0))
br label %113
109: ; preds = %36
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%111 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.11, i64 0, i64 0))
%112 = icmp sgt i32 %44, 0
br i1 %112, label %113, label %115
113: ; preds = %106, %109
%114 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.10, i64 0, i64 0))
br label %115
115: ; preds = %109, %113
%116 = tail call i32 @divisible(i32* %0, i32 %1, i64 %2)
br label %123
117: ; preds = %104
%118 = tail call i32 @divisible(i32* %0, i32 %1, i64 %2)
switch i32 %118, label %123 [
i32 1, label %119
i32 0, label %121
]
119: ; preds = %117
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i64 %2)
br label %123
121: ; preds = %117
%122 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i64 %2)
br label %123
123: ; preds = %117, %115, %121, %119
ret void
}