#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*/ getc(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ run(char *);
int /*<<< orphan*/ stdin;
char tolower(int /*<<< orphan*/);
int main(int const argc, const char **const argv) {
  printf("Delete unversioned items? [Yn]");
  char answer = tolower(getc(stdin));
  if (answer != 'n') {
    run("svn st --non-interactive --no-ignore");
    return true;
  }
  return false;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea3(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
call   1060 <getc@plt>
mov    %eax,%edi
call   1050 <tolower@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x6e,%eax
je     119f <main+0x5f>
lea    0xe91(%rip),%rdi
call   1030 <run@plt>
movl   $0x1,-0x4(%rbp)
jmp    11a6 <main+0x66>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
call   1060 <getc@plt>
mov    %eax,%edi
call   1050 <tolower@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x6e,%cl
je     117c <main+0x3c>
lea    0xead(%rip),%rdi
call   1030 <run@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"Delete unversioned items? [Yn]\00"
@stdin = global i32 0
@.str.1 = [37 x i8] c"svn st --non-interactive --no-ignore\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @stdin
%9 = call i32 @getc(i32 %8)
%10 = call signext i8 @tolower(i32 %9)
store i8 %10, i8* %6
%11 = load i8, i8* %6
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 110
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @run(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %17
16: ; preds = %2
store i32 0, i32* %3
br label %17
17: ; preds = %16, %14
%18 = load i32, i32* %3
ret i32 %18
}

LLVM IR (-O2):
@.str = [31 x i8] c"Delete unversioned items? [Yn]\00"
@stdin = global i32 0
@.str.1 = [37 x i8] c"svn st --non-interactive --no-ignore\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stdin
%5 = tail call i32 @getc(i32 %4)
%6 = tail call signext i8 @tolower(i32 %5)
%7 = icmp eq i8 %6, 110
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = tail call i32 @run(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %2, %8
%11 = phi i32 [ 1, %8 ], [ 0, %2 ]
ret i32 %11
}