#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*/ Secim(int);
int /*<<< orphan*/ main();
int /*<<< orphan*/ menu();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
void Return(int ogr) {
  int sec, gir, ekle;
  printf("***************************************************\nDevam Etmek "
         "Istiyor musunuz? 1 (Evet)/ 0 (Hayir) :");
  scanf("%d", &sec);
  if (sec == 1) {
    for (;;) {
      menu();
      Secim(ogr);
      printf("Devam etmek istiyor musunuz? 1(Evet), 0(Hayir): ");
      scanf("%d", &gir);
      if (gir == 1) {
        continue;
      } else if (gir == 0) {
        printf("Tekrar ögrenci eklemek ister misini? 1(Evet), 0(Hayir):");
        scanf("%d", &ekle);
        if (ekle == 1) {
          printf("===========================\nTEKRAR");
          main();
        } else if (gir == 0)
          break;
      }
    }
  }
}


x86 assembly (clang, -O0):
<Return>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xe9e(%rip),%rdi
call   1040 <printf@plt>
lea    0xef9(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1070 <scanf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    1230 <Return+0xe0>
jmp    1186 <Return+0x36>
mov    $0x0,%al
call   1030 <menu@plt>
mov    -0x4(%rbp),%edi
call   1050 <Secim@plt>
lea    0xece(%rip),%rdi
call   1040 <printf@plt>
lea    0xebf(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1070 <scanf@plt>
cmpl   $0x1,-0xc(%rbp)
jne    11c0 <Return+0x70>
jmp    1186 <Return+0x36>
cmpl   $0x0,-0xc(%rbp)
jne    1221 <Return+0xd1>
lea    0xeca(%rip),%rdi
call   1040 <printf@plt>
lea    0xe8a(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1070 <scanf@plt>
cmpl   $0x1,-0x10(%rbp)
jne    1208 <Return+0xb8>
lea    0xedd(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <main@plt>
jmp    121c <Return+0xcc>
cmpl   $0x0,-0xc(%rbp)
jne    1217 <Return+0xc7>
jmp    122b <Return+0xdb>
jmp    121c <Return+0xcc>
jmp    1221 <Return+0xd1>
jmp    1226 <Return+0xd6>
jmp    1186 <Return+0x36>
jmp    1230 <Return+0xe0>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Return>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edi,%ebx
lea    0xe99(%rip),%rdi
call   1040 <printf@plt>
lea    0xef4(%rip),%rdi
lea    0x14(%rsp),%rsi
call   1070 <scanf@plt>
cmpl   $0x1,0x14(%rsp)
jne    1209 <Return+0xb9>
lea    0xedb(%rip),%r14
lea    0xed1(%rip),%r15
lea    0xc(%rsp),%r12
lea    0xef9(%rip),%r13
lea    0x10(%rsp),%rbp
jmp    11c0 <Return+0x70>
lea    0xf24(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <main@plt>
nopl   0x0(%rax)
xor    %eax,%eax
call   1030 <menu@plt>
mov    %ebx,%edi
call   1050 <Secim@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1070 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jne    11c0 <Return+0x70>
mov    %r13,%rdi
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1070 <scanf@plt>
cmpl   $0x1,0x10(%rsp)
je     11a9 <Return+0x59>
cmpl   $0x0,0xc(%rsp)
jne    11c0 <Return+0x70>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [103 x i8] c"***************************************************\0ADevam Etmek Istiyor musunuz? 1 (Evet)/ 0 (Hayir) :\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [49 x i8] c"Devam etmek istiyor musunuz? 1(Evet), 0(Hayir): \00"
@.str.3 = [57 x i8] c"Tekrar \C3\B6grenci eklemek ister misini? 1(Evet), 0(Hayir):\00"
@.str.4 = [35 x i8] c"===========================\0ATEKRAR\00"
define void @Return(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %2
%6 = call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 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* %3)
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %40
10: ; preds = %1
br label %11
11: ; preds = %38, %19, %10
%12 = call i32 (...) @menu()
%13 = load i32, i32* %2
%14 = call i32 @Secim(i32 %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%17 = load i32, i32* %4
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %20
19: ; preds = %11
br label %11
20: ; preds = %11
%21 = load i32, i32* %4
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %37
23: ; preds = %20
%24 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%26 = load i32, i32* %5
%27 = icmp eq i32 %26, 1
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%30 = call i32 (...) @main()
br label %36
31: ; preds = %23
%32 = load i32, i32* %4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %31
br label %39
35: ; preds = %31
br label %36
36: ; preds = %35, %28
br label %37
37: ; preds = %36, %20
br label %38
38: ; preds = %37
br label %11
39: ; preds = %34
br label %40
40: ; preds = %39, %1
ret void
}

LLVM IR (-O2):
@.str = [103 x i8] c"***************************************************\0ADevam Etmek Istiyor musunuz? 1 (Evet)/ 0 (Hayir) :\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [49 x i8] c"Devam etmek istiyor musunuz? 1(Evet), 0(Hayir): \00"
@.str.3 = [57 x i8] c"Tekrar \C3\B6grenci eklemek ister misini? 1(Evet), 0(Hayir):\00"
@.str.4 = [35 x i8] c"===========================\0ATEKRAR\00"
define void @Return(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %31
12: ; preds = %1, %19
%13 = call i32 (...) @menu()
%14 = call i32 @Secim(i32 %0)
%15 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%17 = load i32, i32* %3
%18 = icmp eq i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %12, %25, %28
br label %12
20: ; preds = %12
%21 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%23 = load i32, i32* %4
%24 = icmp eq i32 %23, 1
br i1 %24, label %25, label %28
25: ; preds = %20
%26 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%27 = call i32 (...) @main()
br label %19
28: ; preds = %20
%29 = load i32, i32* %3
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %19
31: ; preds = %28, %1
ret void
}