#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 YinNum(int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int i, Elen, Glen;
  int E[60], G[60];
  Elen = Glen = 0;
  for (i = 2; i <= 60; i++) {
    if (YinNum(i) == i) {
      E[Elen] = i;
      Elen++;
    } else if (YinNum(i) > i) {
      G[Glen] = i;
      Glen++;
    }
  }
  printf("E:");
  for (i = 0; i < Elen; i++)
    printf(" %d", E[i]);
  printf("\n");
  printf("G:");
  for (i = 0; i < Glen; i++)
    printf(" %d", G[i]);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x2,-0x8(%rbp)
cmpl   $0x3c,-0x8(%rbp)
jg     11be <main+0x9e>
mov    -0x8(%rbp),%edi
call   1040 <YinNum@plt>
cmp    -0x8(%rbp),%eax
jne    117e <main+0x5e>
mov    -0x8(%rbp),%ecx
movslq -0xc(%rbp),%rax
mov    %ecx,-0x100(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11ab <main+0x8b>
mov    -0x8(%rbp),%edi
call   1040 <YinNum@plt>
cmp    -0x8(%rbp),%eax
jle    11a6 <main+0x86>
mov    -0x8(%rbp),%ecx
movslq -0x10(%rbp),%rax
mov    %ecx,-0x1f0(%rbp,%rax,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11ab <main+0x8b>
jmp    11b0 <main+0x90>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1147 <main+0x27>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1206 <main+0xe6>
movslq -0x8(%rbp),%rax
mov    -0x100(%rbp,%rax,4),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11d3 <main+0xb3>
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    125c <main+0x13c>
movslq -0x8(%rbp),%rax
mov    -0x1f0(%rbp,%rax,4),%esi
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1229 <main+0x109>
lea    0xda4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x1e8,%rsp
mov    $0x2,%ebx
xor    %r14d,%r14d
xor    %r15d,%r15d
jmp    1167 <main+0x37>
nopl   0x0(%rax,%rax,1)
movslq %r15d,%r15
mov    %ebx,0xf0(%rsp,%r15,4)
add    $0x1,%r15d
add    $0x1,%ebx
cmp    $0x3d,%ebx
je     118a <main+0x5a>
mov    %ebx,%edi
call   1050 <YinNum@plt>
cmp    %eax,%ebx
je     1150 <main+0x20>
mov    %ebx,%edi
call   1050 <YinNum@plt>
cmp    %ebx,%eax
jle    115f <main+0x2f>
movslq %r14d,%r14
mov    %ebx,(%rsp,%r14,4)
add    $0x1,%r14d
jmp    115f <main+0x2f>
lea    0xe6f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r15d,%r15d
jle    11ca <main+0x9a>
mov    %r15d,%r12d
lea    0xe5c(%rip),%r15
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    0xf0(%rsp,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    11b0 <main+0x80>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe2c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r14d,%r14d
jle    1216 <main+0xe6>
mov    %r14d,%r15d
lea    0xe12(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%rsp,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1200 <main+0xd0>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x1e8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"E:\00"
@.str.1 = [4 x i8] c" %d\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [3 x i8] c"G:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [60 x i32]
%6 = alloca [60 x i32]
store i32 0, i32* %1
store i32 0, i32* %4
store i32 0, i32* %3
store i32 2, i32* %2
br label %7
7: ; preds = %36, %0
%8 = load i32, i32* %2
%9 = icmp sle i32 %8, 60
br i1 %9, label %10, label %39
10: ; preds = %7
%11 = load i32, i32* %2
%12 = call i32 @YinNum(i32 %11)
%13 = load i32, i32* %2
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %22
15: ; preds = %10
%16 = load i32, i32* %2
%17 = load i32, i32* %3
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [60 x i32], [60 x i32]* %5, i64 0, i64 %18
store i32 %16, i32* %19
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
store i32 %21, i32* %3
br label %35
22: ; preds = %10
%23 = load i32, i32* %2
%24 = call i32 @YinNum(i32 %23)
%25 = load i32, i32* %2
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %34
27: ; preds = %22
%28 = load i32, i32* %2
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [60 x i32], [60 x i32]* %6, i64 0, i64 %30
store i32 %28, i32* %31
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 1
store i32 %33, i32* %4
br label %34
34: ; preds = %27, %22
br label %35
35: ; preds = %34, %15
br label %36
36: ; preds = %35
%37 = load i32, i32* %2
%38 = add nsw i32 %37, 1
store i32 %38, i32* %2
br label %7
39: ; preds = %7
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %41
41: ; preds = %51, %39
%42 = load i32, i32* %2
%43 = load i32, i32* %3
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %54
45: ; preds = %41
%46 = load i32, i32* %2
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [60 x i32], [60 x i32]* %5, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %49)
br label %51
51: ; preds = %45
%52 = load i32, i32* %2
%53 = add nsw i32 %52, 1
store i32 %53, i32* %2
br label %41
54: ; preds = %41
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %57
57: ; preds = %67, %54
%58 = load i32, i32* %2
%59 = load i32, i32* %4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %70
61: ; preds = %57
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [60 x i32], [60 x i32]* %6, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %65)
br label %67
67: ; preds = %61
%68 = load i32, i32* %2
%69 = add nsw i32 %68, 1
store i32 %69, i32* %2
br label %57
70: ; preds = %57
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"E:\00"
@.str.1 = [4 x i8] c" %d\00"
@.str.3 = [3 x i8] c"G:\00"
define i32 @main() {
%1 = alloca [60 x i32]
%2 = alloca [60 x i32]
%3 = bitcast [60 x i32]* %1 to i8*
%4 = bitcast [60 x i32]* %2 to i8*
br label %5
5: ; preds = %0, %22
%6 = phi i32 [ 0, %0 ], [ %24, %22 ]
%7 = phi i32 [ 0, %0 ], [ %23, %22 ]
%8 = phi i32 [ 2, %0 ], [ %25, %22 ]
%9 = tail call i32 @YinNum(i32 %8)
%10 = icmp eq i32 %9, %8
br i1 %10, label %11, label %15
11: ; preds = %5
%12 = sext i32 %7 to i64
%13 = getelementptr inbounds [60 x i32], [60 x i32]* %1, i64 0, i64 %12
store i32 %8, i32* %13
%14 = add nsw i32 %7, 1
br label %22
15: ; preds = %5
%16 = tail call i32 @YinNum(i32 %8)
%17 = icmp sgt i32 %16, %8
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = sext i32 %6 to i64
%20 = getelementptr inbounds [60 x i32], [60 x i32]* %2, i64 0, i64 %19
store i32 %8, i32* %20
%21 = add nsw i32 %6, 1
br label %22
22: ; preds = %11, %18, %15
%23 = phi i32 [ %14, %11 ], [ %7, %18 ], [ %7, %15 ]
%24 = phi i32 [ %6, %11 ], [ %21, %18 ], [ %6, %15 ]
%25 = add nuw nsw i32 %8, 1
%26 = icmp eq i32 %25, 61
br i1 %26, label %27, label %5
27: ; preds = %22
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%29 = icmp sgt i32 %23, 0
br i1 %29, label %30, label %39
30: ; preds = %27
%31 = zext i32 %23 to i64
br label %32
32: ; preds = %30, %32
%33 = phi i64 [ 0, %30 ], [ %37, %32 ]
%34 = getelementptr inbounds [60 x i32], [60 x i32]* %1, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %35)
%37 = add nuw nsw i64 %33, 1
%38 = icmp eq i64 %37, %31
br i1 %38, label %39, label %32
39: ; preds = %32, %27
%40 = tail call i32 @putchar(i32 10)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%42 = icmp sgt i32 %24, 0
br i1 %42, label %43, label %52
43: ; preds = %39
%44 = zext i32 %24 to i64
br label %45
45: ; preds = %43, %45
%46 = phi i64 [ 0, %43 ], [ %50, %45 ]
%47 = getelementptr inbounds [60 x i32], [60 x i32]* %2, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %48)
%50 = add nuw nsw i64 %46, 1
%51 = icmp eq i64 %50, %44
br i1 %51, label %52, label %45
52: ; preds = %45, %39
%53 = tail call i32 @putchar(i32 10)
ret i32 0
}