#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 number = 0;
  int temp = 0;
  int counter = 0;
  for (number = 1; number <= 100; number++) {
    for (temp = 1; temp <= number; temp++) {
      if (number % temp == 0) {
        counter++;
      }
      if (counter > 2) {
        break;
      } else if (counter == 2 && temp == number) {
        printf("%d\t", number);
      }
    }
    counter = 0;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     11d2 <main+0xc2>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11bd <main+0xad>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    1171 <main+0x61>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x2,-0x10(%rbp)
jle    1180 <main+0x70>
jmp    11bd <main+0xad>
cmpl   $0x2,-0x10(%rbp)
jne    11a5 <main+0x95>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    11a5 <main+0x95>
mov    -0x8(%rbp),%esi
lea    0xe60(%rip),%rdi
call   1030 <printf@plt>
jmp    11aa <main+0x9a>
jmp    11af <main+0x9f>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    114c <main+0x3c>
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113b <main+0x2b>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x1,%r13d
mov    $0x2,%r15d
xor    %r12d,%r12d
lea    0xecf(%rip),%r14
jmp    1152 <main+0x42>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r13d
add    $0x1,%r15d
add    $0x1,%r12d
cmp    $0x66,%r15d
je     1190 <main+0x80>
xor    %ebx,%ebx
xor    %ebp,%ebp
jmp    1165 <main+0x55>
nopl   0x0(%rax,%rax,1)
cmp    %ebx,%r13d
je     1140 <main+0x30>
mov    %ebx,%ecx
lea    0x1(%rcx),%ebx
mov    %r13d,%eax
xor    %edx,%edx
div    %ebx
cmp    $0x1,%edx
adc    $0x0,%ebp
cmp    $0x2,%ebp
ja     1140 <main+0x30>
jne    1160 <main+0x50>
cmp    %ecx,%r12d
jne    1160 <main+0x50>
mov    %r14,%rdi
mov    %r13d,%esi
call   1030 <printf@plt>
jmp    1160 <main+0x50>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\09\00"
define i32 @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 0, i32* %4
store i32 1, i32* %2
br label %5
5: ; preds = %41, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 100
br i1 %7, label %8, label %44
8: ; preds = %5
store i32 1, i32* %3
br label %9
9: ; preds = %37, %8
%10 = load i32, i32* %3
%11 = load i32, i32* %2
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %40
13: ; preds = %9
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = srem i32 %14, %15
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load i32, i32* %4
%20 = add nsw i32 %19, 1
store i32 %20, i32* %4
br label %21
21: ; preds = %18, %13
%22 = load i32, i32* %4
%23 = icmp sgt i32 %22, 2
br i1 %23, label %24, label %25
24: ; preds = %21
br label %40
25: ; preds = %21
%26 = load i32, i32* %4
%27 = icmp eq i32 %26, 2
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = load i32, i32* %3
%30 = load i32, i32* %2
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = load i32, i32* %2
%34 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %33)
br label %35
35: ; preds = %32, %28, %25
br label %36
36: ; preds = %35
br label %37
37: ; preds = %36
%38 = load i32, i32* %3
%39 = add nsw i32 %38, 1
store i32 %39, i32* %3
br label %9
40: ; preds = %24, %9
store i32 0, i32* %4
br label %41
41: ; preds = %40
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
br label %5
44: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\09\00"
define i32 @main() {
br label %1
1: ; preds = %0, %21
%2 = phi i32 [ 2, %0 ], [ %23, %21 ]
%3 = phi i32 [ 1, %0 ], [ %22, %21 ]
br label %4
4: ; preds = %1, %18
%5 = phi i32 [ 0, %1 ], [ %10, %18 ]
%6 = phi i32 [ 1, %1 ], [ %19, %18 ]
%7 = urem i32 %3, %6
%8 = icmp eq i32 %7, 0
%9 = zext i1 %8 to i32
%10 = add nuw nsw i32 %5, %9
%11 = icmp ugt i32 %10, 2
br i1 %11, label %21, label %12
12: ; preds = %4
%13 = icmp eq i32 %10, 2
%14 = icmp eq i32 %6, %3
%15 = select i1 %13, i1 %14, i1 false
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3)
br label %18
18: ; preds = %16, %12
%19 = add nuw nsw i32 %6, 1
%20 = icmp eq i32 %19, %2
br i1 %20, label %21, label %4
21: ; preds = %4, %18
%22 = add nuw nsw i32 %3, 1
%23 = add nuw nsw i32 %2, 1
%24 = icmp eq i32 %23, 102
br i1 %24, label %25, label %1
25: ; preds = %21
ret i32 0
}