#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 sqrt(int);
void main() {
  int count = 0;
  int i = 0;
  int j = 0;
  for (int i = 101; i <= 200; i++) {
    for (j = 2; j <= sqrt(i); j++) {
      if (0 == i % j)
        break;
      else {
        printf("%-4d", i);
        count++;
        if (0 == count % 10)
          printf("\n");
        break;
      }
    }
  }
  printf("\nThe number is:%d\n", count);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x65,-0x10(%rbp)
cmpl   $0xc8,-0x10(%rbp)
jg     11de <main+0xbe>
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%edi
call   1040 <sqrt@plt>
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
cmp    %ecx,%eax
jg     11cb <main+0xab>
mov    -0x10(%rbp),%eax
cltd
idivl  -0xc(%rbp)
xor    %eax,%eax
cmp    %edx,%eax
jne    1189 <main+0x69>
jmp    11cb <main+0xab>
mov    -0x10(%rbp),%esi
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    %edx,%eax
jne    11c6 <main+0xa6>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11cb <main+0xab>
jmp    11d0 <main+0xb0>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1144 <main+0x24>
mov    -0x4(%rbp),%esi
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0x65,%ebp
lea    0xec0(%rip),%r14
xor    %ebx,%ebx
jmp    115b <main+0x2b>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%ebp
cmp    $0xc9,%ebp
je     119d <main+0x6d>
mov    %ebp,%edi
call   1050 <sqrt@plt>
cmp    $0x2,%eax
jl     1150 <main+0x20>
mov    %ebp,%eax
and    $0x1,%eax
je     1150 <main+0x20>
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebx
imul   $0xcccccccd,%ebx,%eax
add    $0x19999998,%eax
ror    %eax
cmp    $0x19999998,%eax
ja     1150 <main+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1150 <main+0x20>
lea    0xe61(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"%-4d\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [19 x i8] c"\0AThe number is:%d\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 101, i32* %4
br label %5
5: ; preds = %35, %0
%6 = load i32, i32* %4
%7 = icmp sle i32 %6, 200
br i1 %7, label %8, label %38
8: ; preds = %5
store i32 2, i32* %3
br label %9
9: ; preds = %31, %8
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = call i32 @sqrt(i32 %11)
%13 = icmp sle i32 %10, %12
br i1 %13, label %14, label %34
14: ; preds = %9
%15 = load i32, i32* %4
%16 = load i32, i32* %3
%17 = srem i32 %15, %16
%18 = icmp eq i32 0, %17
br i1 %18, label %19, label %20
19: ; preds = %14
br label %34
20: ; preds = %14
%21 = load i32, i32* %4
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %21)
%23 = load i32, i32* %1
%24 = add nsw i32 %23, 1
store i32 %24, i32* %1
%25 = load i32, i32* %1
%26 = srem i32 %25, 10
%27 = icmp eq i32 0, %26
br i1 %27, label %28, label %30
28: ; preds = %20
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %30
30: ; preds = %28, %20
br label %34
31: ; No predecessors!
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
br label %9
34: ; preds = %30, %19, %9
br label %35
35: ; preds = %34
%36 = load i32, i32* %4
%37 = add nsw i32 %36, 1
store i32 %37, i32* %4
br label %5
38: ; preds = %5
%39 = load i32, i32* %1
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %39)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%-4d\00"
@.str.2 = [19 x i8] c"\0AThe number is:%d\0A\00"
define void @main() {
br label %3
1: ; preds = %18
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %19)
ret void
3: ; preds = %0, %18
%4 = phi i32 [ 101, %0 ], [ %20, %18 ]
%5 = phi i32 [ 0, %0 ], [ %19, %18 ]
%6 = tail call i32 @sqrt(i32 %4)
%7 = icmp slt i32 %6, 2
%8 = and i32 %4, 1
%9 = icmp eq i32 %8, 0
%10 = or i1 %7, %9
br i1 %10, label %18, label %11
11: ; preds = %3
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %4)
%13 = add nsw i32 %5, 1
%14 = srem i32 %13, 10
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = tail call i32 @putchar(i32 10)
br label %18
18: ; preds = %3, %16, %11
%19 = phi i32 [ %13, %16 ], [ %13, %11 ], [ %5, %3 ]
%20 = add nuw nsw i32 %4, 1
%21 = icmp eq i32 %20, 201
br i1 %21, label %1, label %3
}