#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 *);
int main() {
  int aci1, aci2;
  int ucgen = 180;
  printf("Iki adet aci giriniz...\n");
  scanf("%d%d", &aci1, &aci2);
  int aci3 = ucgen - (aci1 + aci2);
  if (aci1 > 90 || aci2 > 90 || aci3 > 90) {
    printf("Bu ucgen genis acilidir...\n");
  } else if (aci1 == 90 || aci2 == 90 || aci3 == 90) {
    printf("Bu ucgen dik acilidir...\n");
  } else {
    printf("Bu ucgen dar acilidir...\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xb4,-0x10(%rbp)
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x10(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x5a,-0x8(%rbp)
jg     1182 <main+0x62>
cmpl   $0x5a,-0xc(%rbp)
jg     1182 <main+0x62>
cmpl   $0x5a,-0x14(%rbp)
jle    1193 <main+0x73>
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
jmp    11d3 <main+0xb3>
cmpl   $0x5a,-0x8(%rbp)
je     11b1 <main+0x91>
cmpl   $0x5a,-0xc(%rbp)
je     11b1 <main+0x91>
cmpl   $0x5a,-0x14(%rbp)
jne    11c2 <main+0xa2>
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
jmp    11ce <main+0xae>
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
jmp    11d3 <main+0xb3>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
lea    0xf03(%rip),%rdi
cmp    $0x5a,%eax
jg     1181 <main+0x61>
mov    (%rsp),%ecx
cmp    $0x5a,%ecx
jg     1181 <main+0x61>
lea    (%rcx,%rax,1),%edx
cmp    $0x5a,%edx
jl     1181 <main+0x61>
lea    0xece(%rip),%rdx
lea    0xeae(%rip),%rdi
cmove  %rdx,%rdi
cmp    $0x5a,%ecx
cmove  %rdx,%rdi
cmp    $0x5a,%eax
cmove  %rdx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Iki adet aci giriniz...\0A\00"
@.str.1 = [5 x i8] c"%d%d\00"
@.str.2 = [28 x i8] c"Bu ucgen genis acilidir...\0A\00"
@.str.3 = [26 x i8] c"Bu ucgen dik acilidir...\0A\00"
@.str.4 = [26 x i8] c"Bu ucgen dar acilidir...\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 180, i32* %4
%6 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3)
%8 = load i32, i32* %4
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = add nsw i32 %9, %10
%12 = sub nsw i32 %8, %11
store i32 %12, i32* %5
%13 = load i32, i32* %2
%14 = icmp sgt i32 %13, 90
br i1 %14, label %21, label %15
15: ; preds = %0
%16 = load i32, i32* %3
%17 = icmp sgt i32 %16, 90
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i32, i32* %5
%20 = icmp sgt i32 %19, 90
br i1 %20, label %21, label %23
21: ; preds = %18, %15, %0
%22 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
br label %37
23: ; preds = %18
%24 = load i32, i32* %2
%25 = icmp eq i32 %24, 90
br i1 %25, label %32, label %26
26: ; preds = %23
%27 = load i32, i32* %3
%28 = icmp eq i32 %27, 90
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = load i32, i32* %5
%31 = icmp eq i32 %30, 90
br i1 %31, label %32, label %34
32: ; preds = %29, %26, %23
%33 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %36
34: ; preds = %29
%35 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
br label %36
36: ; preds = %34, %32
br label %37
37: ; preds = %36, %21
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"%d%d\00"
@str = [24 x i8] c"Iki adet aci giriniz...\00"
@str.5 = [25 x i8] c"Bu ucgen dar acilidir...\00"
@str.6 = [25 x i8] c"Bu ucgen dik acilidir...\00"
@str.7 = [27 x i8] c"Bu ucgen genis acilidir...\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 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2)
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = add nsw i32 %8, %7
%10 = icmp sgt i32 %7, 90
%11 = icmp sgt i32 %8, 90
%12 = select i1 %10, i1 true, i1 %11
%13 = icmp slt i32 %9, 90
%14 = select i1 %12, i1 true, i1 %13
br i1 %14, label %22, label %15
15: ; preds = %0
%16 = icmp eq i32 %7, 90
%17 = icmp eq i32 %8, 90
%18 = select i1 %16, i1 true, i1 %17
%19 = icmp eq i32 %9, 90
%20 = select i1 %18, i1 true, i1 %19
%21 = select i1 %20, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @str.5, i64 0, i64 0)
br label %22
22: ; preds = %15, %0
%23 = phi i8* [ getelementptr inbounds ([27 x i8], [27 x i8]* @str.7, i64 0, i64 0), %0 ], [ %21, %15 ]
%24 = call i32 @puts(i8* dereferenceable(1) %23)
ret i32 0
}