#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 sqrt(int);
void main() {
  int K[15], vzs = 0, P[15];
  for (int i = 0; i < 15; i++) {
    printf("Informe o valor da posicao %d: ", i + 1);
    scanf("%d", &K[i]);
  }
  for (int i = 0; i < 15; i++) {
    for (int j = 1; j <= sqrt(K[i]); j++) {
      if (K[i] == 1) {
        vzs++;
      }
      if (K[i] % j == 0) {
        vzs++;
      }
    }
    if (vzs == 1) {
      P[i] = K[i];
    } else {
      P[i] = 0;
    }
    vzs = 0;
  }
  printf("Vetor P:\n");
  for (int i = 0; i < 15; i++) {
    if (P[i] != 0) {
      printf("%d ", P[i]);
    }
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x84(%rbp)
cmpl   $0xf,-0x84(%rbp)
jge    11a2 <main+0x72>
mov    -0x84(%rbp),%esi
add    $0x1,%esi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x84(%rbp),%rax
lea    -0x40(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe97(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    114c <main+0x1c>
movl   $0x0,-0x88(%rbp)
cmpl   $0xf,-0x88(%rbp)
jge    1296 <main+0x166>
movl   $0x1,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
mov    %eax,-0x94(%rbp)
movslq -0x88(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1050 <sqrt@plt>
mov    %eax,%ecx
mov    -0x94(%rbp),%eax
cmp    %ecx,%eax
jg     1247 <main+0x117>
movslq -0x88(%rbp),%rax
cmpl   $0x1,-0x40(%rbp,%rax,4)
jne    120a <main+0xda>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
movslq -0x88(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
cltd
idivl  -0x8c(%rbp)
cmp    $0x0,%edx
jne    122e <main+0xfe>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1233 <main+0x103>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    11c3 <main+0x93>
cmpl   $0x1,-0x44(%rbp)
jne    126c <main+0x13c>
movslq -0x88(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%ecx
movslq -0x88(%rbp),%rax
mov    %ecx,-0x80(%rbp,%rax,4)
jmp    127b <main+0x14b>
movslq -0x88(%rbp),%rax
movl   $0x0,-0x80(%rbp,%rax,4)
movl   $0x0,-0x44(%rbp)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    11ac <main+0x7c>
lea    0xd86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x90(%rbp)
cmpl   $0xf,-0x90(%rbp)
jge    12ff <main+0x1cf>
movslq -0x90(%rbp),%rax
cmpl   $0x0,-0x80(%rbp,%rax,4)
je     12e6 <main+0x1b6>
movslq -0x90(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%esi
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12eb <main+0x1bb>
mov    -0x90(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x90(%rbp)
jmp    12ae <main+0x17e>
lea    0xd25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x80,%rsp
lea    0xe9a(%rip),%r14
xor    %r12d,%r12d
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea1(%rip),%r15
mov    %rsp,%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x20(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x24(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x28(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2c(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x30(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x34(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x38(%rsp),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
jmp    132f <main+0x1df>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ecx,0x40(%rsp,%r12,4)
add    $0x1,%r12
cmp    $0xf,%r12
je     1382 <main+0x232>
mov    (%rsp,%r12,4),%edi
call   1070 <sqrt@plt>
mov    $0x0,%ecx
test   %eax,%eax
jle    1320 <main+0x1d0>
xor    %ebx,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%ebx
mov    (%rsp,%r12,4),%edi
xor    %eax,%eax
cmp    $0x1,%edi
sete   %al
add    %eax,%ebp
mov    %edi,%eax
cltd
idiv   %ebx
cmp    $0x1,%edx
adc    $0x0,%ebp
call   1070 <sqrt@plt>
cmp    %eax,%ebx
jl     1350 <main+0x200>
xor    %ecx,%ecx
cmp    $0x1,%ebp
jne    1320 <main+0x1d0>
mov    (%rsp,%r12,4),%ecx
jmp    1320 <main+0x1d0>
lea    0xc9e(%rip),%rdi
call   1040 <puts@plt>
mov    0x40(%rsp),%esi
test   %esi,%esi
je     13a4 <main+0x254>
lea    0xc86(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rsp),%esi
test   %esi,%esi
je     13ba <main+0x26a>
lea    0xc70(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rsp),%esi
test   %esi,%esi
je     13d0 <main+0x280>
lea    0xc5a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4c(%rsp),%esi
test   %esi,%esi
je     13e6 <main+0x296>
lea    0xc44(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x50(%rsp),%esi
test   %esi,%esi
je     13fc <main+0x2ac>
lea    0xc2e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x54(%rsp),%esi
test   %esi,%esi
je     1412 <main+0x2c2>
lea    0xc18(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x58(%rsp),%esi
test   %esi,%esi
je     1428 <main+0x2d8>
lea    0xc02(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x5c(%rsp),%esi
test   %esi,%esi
je     143e <main+0x2ee>
lea    0xbec(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x60(%rsp),%esi
test   %esi,%esi
je     1454 <main+0x304>
lea    0xbd6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x64(%rsp),%esi
test   %esi,%esi
je     146a <main+0x31a>
lea    0xbc0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x68(%rsp),%esi
test   %esi,%esi
je     1480 <main+0x330>
lea    0xbaa(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x6c(%rsp),%esi
test   %esi,%esi
je     1496 <main+0x346>
lea    0xb94(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x70(%rsp),%esi
test   %esi,%esi
je     14ac <main+0x35c>
lea    0xb7e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x74(%rsp),%esi
test   %esi,%esi
je     14c2 <main+0x372>
lea    0xb68(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x78(%rsp),%esi
test   %esi,%esi
je     14d8 <main+0x388>
lea    0xb52(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [32 x i8] c"Informe o valor da posicao %d: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [10 x i8] c"Vetor P:\0A\00"
@.str.3 = [4 x i8] c"%d \00"
@.str.4 = [2 x i8] c"\0A\00"
define void @main() {
%1 = alloca [15 x i32]
%2 = alloca i32
%3 = alloca [15 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %2
store i32 0, i32* %4
br label %8
8: ; preds = %19, %0
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 15
br i1 %10, label %11, label %22
11: ; preds = %8
%12 = load i32, i32* %4
%13 = add nsw i32 %12, 1
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 %16
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %17)
br label %19
19: ; preds = %11
%20 = load i32, i32* %4
%21 = add nsw i32 %20, 1
store i32 %21, i32* %4
br label %8
22: ; preds = %8
store i32 0, i32* %5
br label %23
23: ; preds = %75, %22
%24 = load i32, i32* %5
%25 = icmp slt i32 %24, 15
br i1 %25, label %26, label %78
26: ; preds = %23
store i32 1, i32* %6
br label %27
27: ; preds = %56, %26
%28 = load i32, i32* %6
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = call i32 @sqrt(i32 %32)
%34 = icmp sle i32 %28, %33
br i1 %34, label %35, label %59
35: ; preds = %27
%36 = load i32, i32* %5
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 %37
%39 = load i32, i32* %38
%40 = icmp eq i32 %39, 1
br i1 %40, label %41, label %44
41: ; preds = %35
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
br label %44
44: ; preds = %41, %35
%45 = load i32, i32* %5
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = load i32, i32* %6
%50 = srem i32 %48, %49
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %44
%53 = load i32, i32* %2
%54 = add nsw i32 %53, 1
store i32 %54, i32* %2
br label %55
55: ; preds = %52, %44
br label %56
56: ; preds = %55
%57 = load i32, i32* %6
%58 = add nsw i32 %57, 1
store i32 %58, i32* %6
br label %27
59: ; preds = %27
%60 = load i32, i32* %2
%61 = icmp eq i32 %60, 1
br i1 %61, label %62, label %70
62: ; preds = %59
%63 = load i32, i32* %5
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 %64
%66 = load i32, i32* %65
%67 = load i32, i32* %5
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [15 x i32], [15 x i32]* %3, i64 0, i64 %68
store i32 %66, i32* %69
br label %74
70: ; preds = %59
%71 = load i32, i32* %5
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [15 x i32], [15 x i32]* %3, i64 0, i64 %72
store i32 0, i32* %73
br label %74
74: ; preds = %70, %62
store i32 0, i32* %2
br label %75
75: ; preds = %74
%76 = load i32, i32* %5
%77 = add nsw i32 %76, 1
store i32 %77, i32* %5
br label %23
78: ; preds = %23
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %7
br label %80
80: ; preds = %96, %78
%81 = load i32, i32* %7
%82 = icmp slt i32 %81, 15
br i1 %82, label %83, label %99
83: ; preds = %80
%84 = load i32, i32* %7
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [15 x i32], [15 x i32]* %3, i64 0, i64 %85
%87 = load i32, i32* %86
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %95
89: ; preds = %83
%90 = load i32, i32* %7
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [15 x i32], [15 x i32]* %3, i64 0, i64 %91
%93 = load i32, i32* %92
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %93)
br label %95
95: ; preds = %89, %83
br label %96
96: ; preds = %95
%97 = load i32, i32* %7
%98 = add nsw i32 %97, 1
store i32 %98, i32* %7
br label %80
99: ; preds = %80
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [32 x i8] c"Informe o valor da posicao %d: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c"%d \00"
@str = [9 x i8] c"Vetor P:\00"
define void @main() {
%1 = alloca [15 x i32]
%2 = alloca [15 x i32]
%3 = bitcast [15 x i32]* %1 to i8*
%4 = bitcast [15 x i32]* %2 to i8*
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 1)
%6 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 2)
%9 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 1
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 3)
%12 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 2
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %12)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 4)
%15 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 3
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 5)
%18 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 4
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %18)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 6)
%21 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 5
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %21)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 7)
%24 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 6
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %24)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 8)
%27 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 7
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %27)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 9)
%30 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 8
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %30)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 10)
%33 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 9
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %33)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 11)
%36 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 10
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %36)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 12)
%39 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 11
%40 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %39)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 13)
%42 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 12
%43 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %42)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 14)
%45 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 13
%46 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %45)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 15)
%48 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 14
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %48)
br label %50
50: ; preds = %0, %79
%51 = phi i64 [ 0, %0 ], [ %82, %79 ]
%52 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = call i32 @sqrt(i32 %53)
%55 = icmp slt i32 %54, 1
br i1 %55, label %79, label %63
56: ; preds = %79
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%58 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 0
%59 = load i32, i32* %58
%60 = icmp eq i32 %59, 0
br i1 %60, label %86, label %84
61: ; preds = %63
%62 = icmp eq i32 %73, 1
br i1 %62, label %77, label %79
63: ; preds = %50, %63
%64 = phi i32 [ %74, %63 ], [ 1, %50 ]
%65 = phi i32 [ %73, %63 ], [ 0, %50 ]
%66 = load i32, i32* %52
%67 = icmp eq i32 %66, 1
%68 = zext i1 %67 to i32
%69 = add nsw i32 %65, %68
%70 = srem i32 %66, %64
%71 = icmp eq i32 %70, 0
%72 = zext i1 %71 to i32
%73 = add nsw i32 %69, %72
%74 = add nuw nsw i32 %64, 1
%75 = call i32 @sqrt(i32 %66)
%76 = icmp slt i32 %64, %75
br i1 %76, label %63, label %61
77: ; preds = %61
%78 = load i32, i32* %52
br label %79
79: ; preds = %50, %61, %77
%80 = phi i32 [ %78, %77 ], [ 0, %61 ], [ 0, %50 ]
%81 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 %51
store i32 %80, i32* %81
%82 = add nuw nsw i64 %51, 1
%83 = icmp eq i64 %82, 15
br i1 %83, label %56, label %50
84: ; preds = %56
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %59)
br label %86
86: ; preds = %56, %84
%87 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 1
%88 = load i32, i32* %87
%89 = icmp eq i32 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %86
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %88)
br label %92
92: ; preds = %90, %86
%93 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 2
%94 = load i32, i32* %93
%95 = icmp eq i32 %94, 0
br i1 %95, label %98, label %96
96: ; preds = %92
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %94)
br label %98
98: ; preds = %96, %92
%99 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 3
%100 = load i32, i32* %99
%101 = icmp eq i32 %100, 0
br i1 %101, label %104, label %102
102: ; preds = %98
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %100)
br label %104
104: ; preds = %102, %98
%105 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 4
%106 = load i32, i32* %105
%107 = icmp eq i32 %106, 0
br i1 %107, label %110, label %108
108: ; preds = %104
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %106)
br label %110
110: ; preds = %108, %104
%111 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 5
%112 = load i32, i32* %111
%113 = icmp eq i32 %112, 0
br i1 %113, label %116, label %114
114: ; preds = %110
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %112)
br label %116
116: ; preds = %114, %110
%117 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 6
%118 = load i32, i32* %117
%119 = icmp eq i32 %118, 0
br i1 %119, label %122, label %120
120: ; preds = %116
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %118)
br label %122
122: ; preds = %120, %116
%123 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 7
%124 = load i32, i32* %123
%125 = icmp eq i32 %124, 0
br i1 %125, label %128, label %126
126: ; preds = %122
%127 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %124)
br label %128
128: ; preds = %126, %122
%129 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 8
%130 = load i32, i32* %129
%131 = icmp eq i32 %130, 0
br i1 %131, label %134, label %132
132: ; preds = %128
%133 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %130)
br label %134
134: ; preds = %132, %128
%135 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 9
%136 = load i32, i32* %135
%137 = icmp eq i32 %136, 0
br i1 %137, label %140, label %138
138: ; preds = %134
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %136)
br label %140
140: ; preds = %138, %134
%141 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 10
%142 = load i32, i32* %141
%143 = icmp eq i32 %142, 0
br i1 %143, label %146, label %144
144: ; preds = %140
%145 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %142)
br label %146
146: ; preds = %144, %140
%147 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 11
%148 = load i32, i32* %147
%149 = icmp eq i32 %148, 0
br i1 %149, label %152, label %150
150: ; preds = %146
%151 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %148)
br label %152
152: ; preds = %150, %146
%153 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 12
%154 = load i32, i32* %153
%155 = icmp eq i32 %154, 0
br i1 %155, label %158, label %156
156: ; preds = %152
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %154)
br label %158
158: ; preds = %156, %152
%159 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 13
%160 = load i32, i32* %159
%161 = icmp eq i32 %160, 0
br i1 %161, label %164, label %162
162: ; preds = %158
%163 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %160)
br label %164
164: ; preds = %162, %158
%165 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 14
%166 = load i32, i32* %165
%167 = icmp eq i32 %166, 0
br i1 %167, label %170, label %168
168: ; preds = %164
%169 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %166)
br label %170
170: ; preds = %168, %164
%171 = call i32 @putchar(i32 10)
ret void
}