#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 *);
int main() {
  int vize, final;
  printf("Vize notunuz giriniz : ");
  scanf("%d", &vize);
  printf("Final notunuz giriniz: ");
  scanf("%d", &final);
  float ortalama = (vize * 0.4) + (final * 0.6);
  if (ortalama >= 60) {
    printf("\nGecme notu 60!\nNotunuz = %.2f Gectiniz!", ortalama);
  }
  if (ortalama < 60) {
    printf("\nGecme notu 60!\nNotunuz = %.2f Kaldiniz!", ortalama);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0xe93(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe7f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  0xe59(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     11c7 <main+0xa7>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe8b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xe31(%rip),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11f0 <main+0xd0>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe8b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xee8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef2(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xee1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
cvtsi2sdl 0xc(%rsp),%xmm0
cvtsi2sdl 0x8(%rsp),%xmm1
mulsd  0xe8a(%rip),%xmm1
mulsd  0xe8a(%rip),%xmm0
addsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
ucomiss 0xe80(%rip),%xmm1
jb     11b3 <main+0x93>
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xea7(%rip),%rdi
mov    $0x1,%al
movss  %xmm1,0x4(%rsp)
call   1030 <printf@plt>
movss  0x4(%rsp),%xmm1
movss  0xe55(%rip),%xmm0
ucomiss %xmm1,%xmm0
jbe    11d5 <main+0xb5>
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xea2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Vize notunuz giriniz : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [24 x i8] c"Final notunuz giriniz: \00"
@.str.3 = [41 x i8] c"\0AGecme notu 60!\0ANotunuz = %.2f Gectiniz!\00"
@.str.4 = [41 x i8] c"\0AGecme notu 60!\0ANotunuz = %.2f Kaldiniz!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%9 = load i32, i32* %2
%10 = sitofp i32 %9 to double
%11 = load i32, i32* %3
%12 = sitofp i32 %11 to double
%13 = fmul double %12, 6.000000e-01
%14 = call double @llvm.fmuladd.f64(double %10, double 4.000000e-01, double %13)
%15 = fptrunc double %14 to float
store float %15, float* %4
%16 = load float, float* %4
%17 = fcmp oge float %16, 6.000000e+01
br i1 %17, label %18, label %22
18: ; preds = %0
%19 = load float, float* %4
%20 = fpext float %19 to double
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), double %20)
br label %22
22: ; preds = %18, %0
%23 = load float, float* %4
%24 = fcmp olt float %23, 6.000000e+01
br i1 %24, label %25, label %29
25: ; preds = %22
%26 = load float, float* %4
%27 = fpext float %26 to double
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), double %27)
br label %29
29: ; preds = %25, %22
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"Vize notunuz giriniz : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [24 x i8] c"Final notunuz giriniz: \00"
@.str.3 = [41 x i8] c"\0AGecme notu 60!\0ANotunuz = %.2f Gectiniz!\00"
@.str.4 = [41 x i8] c"\0AGecme notu 60!\0ANotunuz = %.2f Kaldiniz!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 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 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = load i32, i32* %1
%10 = sitofp i32 %9 to double
%11 = load i32, i32* %2
%12 = sitofp i32 %11 to double
%13 = fmul double %12, 6.000000e-01
%14 = call double @llvm.fmuladd.f64(double %10, double 4.000000e-01, double %13)
%15 = fptrunc double %14 to float
%16 = fcmp ult float %15, 6.000000e+01
br i1 %16, label %20, label %17
17: ; preds = %0
%18 = fpext float %15 to double
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), double %18)
br label %20
20: ; preds = %17, %0
%21 = fcmp olt float %15, 6.000000e+01
br i1 %21, label %22, label %25
22: ; preds = %20
%23 = fpext float %15 to double
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), double %23)
br label %25
25: ; preds = %22, %20
ret i32 0
}