#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 kgcd(int, int);
int /*<<< orphan*/ printf(char *, int, int);
int scanf(char *, int *, int *);
int main() {
  int a, b;
  while (scanf("%d%d", &a, &b) == 2) {
    if (kgcd(a, b) == 1)
      printf("%10d%10d    Good Choice\n\n", a, b);
    else
      printf("%10d%10d    Bad Choice\n\n", a, b);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1050 <scanf@plt>
cmp    $0x2,%eax
jne    119e <main+0x6e>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <kgcd@plt>
cmp    $0x1,%eax
jne    1187 <main+0x57>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe88(%rip),%rdi
call   1040 <printf@plt>
jmp    1199 <main+0x69>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe8b(%rip),%rdi
call   1040 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xebc(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
cmp    $0x2,%eax
jne    11b7 <main+0x87>
lea    0xea6(%rip),%r12
lea    0xeb9(%rip),%r13
lea    0xe93(%rip),%r14
lea    0xc(%rsp),%r15
lea    0x8(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
mov    0xc(%rsp),%edi
mov    0x8(%rsp),%esi
call   1030 <kgcd@plt>
cmp    $0x1,%eax
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    %r13,%rdi
cmove  %r12,%rdi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1050 <scanf@plt>
cmp    $0x2,%eax
je     1180 <main+0x50>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [26 x i8] c"%10d%10d Good Choice\0A\0A\00"
@.str.2 = [25 x i8] c"%10d%10d Bad Choice\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
br label %4
4: ; preds = %20, %0
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%6 = icmp eq i32 %5, 2
br i1 %6, label %7, label %21
7: ; preds = %4
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = call i32 @kgcd(i32 %8, i32 %9)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32 %14)
br label %20
16: ; preds = %7
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %17, i32 %18)
br label %20
20: ; preds = %16, %12
br label %4
21: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [26 x i8] c"%10d%10d Good Choice\0A\0A\00"
@.str.2 = [25 x i8] c"%10d%10d Bad Choice\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = icmp eq i32 %5, 2
br i1 %6, label %7, label %18
7: ; preds = %0, %7
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = call i32 @kgcd(i32 %8, i32 %9)
%11 = icmp eq i32 %10, 1
%12 = load i32, i32* %1
%13 = load i32, i32* %2
%14 = select i1 %11, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0)
%15 = call i32 @printf(i8* %14, i32 %12, i32 %13)
%16 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%17 = icmp eq i32 %16, 2
br i1 %17, label %7, label %18
18: ; preds = %7, %0
ret i32 0
}