#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*/ printMessage(char *, int, int /*<<< orphan*/, int);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ wordConvert();
int main(void) {
  int isConverting = 1;
  while (isConverting == 1) {
    wordConvert();
    printMessage("Perform Encryption/Decryption Again (1 = Yes, 0 = No)?", 1, 0,
                 0);
    scanf("%d", &isConverting);
    printMessage("", 0, 0, 1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1196 <main+0x66>
mov    $0x0,%al
call   1030 <wordConvert@plt>
lea    0xea2(%rip),%rdi
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1040 <printMessage@plt>
lea    0xec4(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xeb3(%rip),%rdi
xor    %edx,%edx
mov    $0x1,%ecx
mov    %edx,%esi
call   1040 <printMessage@plt>
jmp    1146 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
movl   $0x1,0x4(%rsp)
lea    0xeb9(%rip),%r14
lea    0xee9(%rip),%r15
lea    0x4(%rsp),%r12
lea    0xedc(%rip),%rbx
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <wordConvert@plt>
mov    %r14,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <printMessage@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x1,%ecx
call   1040 <printMessage@plt>
cmpl   $0x1,0x4(%rsp)
je     1160 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [55 x i8] c"Perform Encryption/Decryption Again (1 = Yes, 0 = No)?\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [1 x i8] zeroinitializer
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
br label %3
3: ; preds = %6, %0
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = call i32 (...) @wordConvert()
%8 = call i32 @printMessage(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i32 1, i32 0, i32 0)
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%10 = call i32 @printMessage(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 1)
br label %3
11: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@.str = [55 x i8] c"Perform Encryption/Decryption Again (1 = Yes, 0 = No)?\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [1 x i8] zeroinitializer
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 1, i32* %1
br label %3
3: ; preds = %0, %3
%4 = call i32 (...) @wordConvert()
%5 = call i32 @printMessage(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i32 1, i32 0, i32 0)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%7 = call i32 @printMessage(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 1)
%8 = load i32, i32* %1
%9 = icmp eq i32 %8, 1
br i1 %9, label %3, label %10
10: ; preds = %3
ret i32 0
}