#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 /*<<< orphan*/ scanf(char *, ...);
int main() {
  short run = 0;
  while (run == 0) {
    long num;
    scanf("%d", &num);
    long natej = num % 2;
    if (natej == 0) {
      printf("zawji");
    } else {
      printf("fardi");
      scanf("%d", &run);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movw   $0x0,-0x6(%rbp)
movswl -0x6(%rbp),%eax
cmp    $0x0,%eax
jne    11a5 <main+0x85>
lea    0xeb7(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x10(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1182 <main+0x62>
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
jmp    11a0 <main+0x80>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
lea    0xe6b(%rip),%rdi
lea    -0x6(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1135 <main+0x15>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
movw   $0x0,0x6(%rsp)
lea    0xec5(%rip),%rbx
lea    0x8(%rsp),%r14
lea    0xebc(%rip),%r15
lea    0xebb(%rip),%r12
lea    0x6(%rsp),%r13
jmp    117d <main+0x5d>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpw   $0x0,0x6(%rsp)
jne    11a1 <main+0x81>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
testb  $0x1,0x8(%rsp)
jne    1160 <main+0x40>
mov    %r15,%rdi
call   1030 <printf@plt>
cmpw   $0x0,0x6(%rsp)
je     117d <main+0x5d>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

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