#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*/ cevap_karsiliklari(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int soru_sor();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  srand(time(NULL));
  int carpim_sonucu;
  carpim_sonucu = soru_sor();
  int sonsuz_dongu = 0;
  while (sonsuz_dongu < 1) {
    int girilen_cevap;
    printf("Sonuc = ");
    scanf("%d", &girilen_cevap);
    int cevap_kontrolu;
    if (girilen_cevap == carpim_sonucu) {
      cevap_kontrolu = 1;
      cevap_karsiliklari(cevap_kontrolu);
      break;
    } else {
      cevap_kontrolu = 0;
      cevap_karsiliklari(cevap_kontrolu);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
mov    $0x0,%al
call   1080 <soru_sor@plt>
mov    %eax,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jge    11ea <main+0x8a>
lea    0xe5f(%rip),%rdi
call   1040 <printf@plt>
lea    0xe5c(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1070 <scanf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    11d6 <main+0x76>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <cevap_karsiliklari@plt>
jmp    11ea <main+0x8a>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <cevap_karsiliklari@plt>
jmp    1190 <main+0x30>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
xor    %eax,%eax
call   1080 <soru_sor@plt>
mov    %eax,%ebx
lea    0xe7a(%rip),%rdi
call   1040 <printf@plt>
lea    0xe77(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1070 <scanf@plt>
cmp    %ebx,0x4(%rsp)
je     11e0 <main+0x80>
lea    0xe57(%rip),%r14
lea    0xe59(%rip),%r15
lea    0x4(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nop
xor    %edi,%edi
call   1030 <cevap_karsiliklari@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1070 <scanf@plt>
cmp    %ebx,0x4(%rsp)
jne    11c0 <main+0x60>
mov    $0x1,%edi
call   1030 <cevap_karsiliklari@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

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