#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 */
scalar_t__ EOF;
int /*<<< orphan*/ convert(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(int /*<<< orphan*/);
int /*<<< orphan*/ puts(char *);
int rrange(int /*<<< orphan*/, int);
scalar_t__ scanf(char *, char *);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  srand(time(NULL));
  int num1 = 0, num2 = 0, num3 = 0;
  int triple = 0;
  float money = 20.0;
  printf("Welcome to Jackpot! slot machine.\n");
  printf("If you get 2 of the same numbers/symbols next to eachother, you win "
         "$0.10.\n");
  printf("If you get 3 numbers/symbols the same, you get $2.\n");
  printf("If you get 3 numbers/symbols the same three times in a row, you win "
         "$20.!\n");
  printf("Each spin costs $0.10.\n");
  printf("====================================================\n");
  printf("You have $%.2f.\n", money);
  do {
    fflush(stdin);
    fflush(stdout);
    printf("Press q to quit, or anything else to spin: ");
    char what = 0;
    if (scanf("%c", &what) != EOF) {
      if (what == 'q') {
        printf("You leave with $%.2f.\n", money);
        return 0;
      }
      printf("\n\n");
      printf("Spinning... (press any key to stop)\n");
      money -= 0.1;
      int i = 0;
      while (i < 1) {
        num1 = rrange(0, 14);
        num2 = rrange(0, 14);
        num3 = rrange(0, 14);
        puts("");
        putchar(convert(num1));
        putchar(convert(num2));
        putchar(convert(num3));
        puts("");
        i++;
      }
      if ((num1 == num2) && (num2 == num3)) {
        if (triple == 3) {
          money += 20.0;
          printf("YOU WON $20!\n");
          triple = 0;
        } else {
          money += 5.0;
          printf("YOU WON $5!\n");
          triple++;
        }
      } else if ((num1 == num2) || (num2 == num3)) {
        money += 0.50;
        printf("YOU WON $0.50!\n");
        triple = 0;
      }
      printf("You have $%.2f.\n", money);
    } else {
      printf("Please enter correct input.\n");
    }
  } while (1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movss  0xe2d(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xeff(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xf28(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    0x2d9e(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
mov    0x2d78(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
lea    0xf0f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movb   $0x0,-0x19(%rbp)
lea    0xf29(%rip),%rdi
lea    -0x19(%rbp),%rsi
call   10b0 <scanf@plt>
mov    0x2d58(%rip),%rcx
cmp    (%rcx),%rax
je     148c <main+0x2fc>
movsbl -0x19(%rbp),%eax
cmp    $0x71,%eax
jne    12c1 <main+0x131>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xef6(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14ae <main+0x31e>
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd1a(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x1,-0x20(%rbp)
jge    138c <main+0x1fc>
xor    %edi,%edi
mov    $0xe,%esi
call   1090 <rrange@plt>
mov    %eax,-0x8(%rbp)
xor    %edi,%edi
mov    $0xe,%esi
call   1090 <rrange@plt>
mov    %eax,-0xc(%rbp)
xor    %edi,%edi
mov    $0xe,%esi
call   1090 <rrange@plt>
mov    %eax,-0x10(%rbp)
lea    0xe7d(%rip),%rdi
call   1050 <puts@plt>
mov    -0x8(%rbp),%edi
call   1040 <convert@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%edi
call   1040 <convert@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%edi
call   1040 <convert@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
lea    0xe44(%rip),%rdi
call   1050 <puts@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1302 <main+0x172>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1420 <main+0x290>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1420 <main+0x290>
cmpl   $0x3,-0x14(%rbp)
jne    13e6 <main+0x256>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc61(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xe10(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x14(%rbp)
jmp    141b <main+0x28b>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc21(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1470 <main+0x2e0>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     1438 <main+0x2a8>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    146b <main+0x2db>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xbc7(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xda1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x14(%rbp)
jmp    1470 <main+0x2e0>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce4(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
jmp    149a <main+0x30a>
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    149f <main+0x30f>
mov    $0x1,%al
test   $0x1,%al
jne    1243 <main+0xb3>
jmp    14ae <main+0x31e>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %edi,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
lea    0xec0(%rip),%rdi
call   1050 <puts@plt>
lea    0xed6(%rip),%rdi
call   1050 <puts@plt>
lea    0xf15(%rip),%rdi
call   1050 <puts@plt>
lea    0xf3c(%rip),%rdi
call   1050 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1050 <puts@plt>
lea    0xf85(%rip),%rdi
call   1050 <puts@plt>
lea    0xe21(%rip),%rdi
movsd  0xdfd(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xdfe(%rip),%xmm0
mov    0x2dcf(%rip),%r12
mov    0x2db0(%rip),%rbx
lea    0xe06(%rip),%r15
lea    0xe2b(%rip),%r14
lea    0xf(%rsp),%r13
mov    0x2da6(%rip),%rbp
movl   $0x0,0x14(%rsp)
movss  %xmm0,0x10(%rsp)
jmp    125c <main+0xcc>
nopw   0x0(%rax,%rax,1)
lea    0xf52(%rip),%rdi
call   1050 <puts@plt>
mov    (%r12),%edi
call   10a0 <fflush@plt>
mov    (%rbx),%edi
call   10a0 <fflush@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movb   $0x0,0xf(%rsp)
mov    %r14,%rdi
mov    %r13,%rsi
call   10b0 <scanf@plt>
cmp    0x0(%rbp),%rax
je     1250 <main+0xc0>
cmpb   $0x71,0xf(%rsp)
je     1420 <main+0x290>
lea    0xd8d(%rip),%rdi
call   1050 <puts@plt>
lea    0xf1b(%rip),%rdi
call   1050 <puts@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  0xd47(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
xor    %edi,%edi
mov    $0xe,%esi
call   1090 <rrange@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    $0xe,%esi
call   1090 <rrange@plt>
mov    %eax,%r14d
xor    %edi,%edi
mov    $0xe,%esi
call   1090 <rrange@plt>
mov    %eax,%r13d
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %ebp,%edi
call   1040 <convert@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    %r14d,%edi
call   1040 <convert@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    %r13d,%edi
call   1040 <convert@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmp    %r14d,%ebp
jne    1380 <main+0x1f0>
cmp    %r13d,%r14d
jne    1380 <main+0x1f0>
mov    0x14(%rsp),%ebp
cmp    $0x3,%ebp
je     13c2 <main+0x232>
movss  0x10(%rsp),%xmm0
addss  0xcc0(%rip),%xmm0
movss  %xmm0,0x10(%rsp)
lea    0xe93(%rip),%rdi
call   1050 <puts@plt>
movss  0x10(%rsp),%xmm0
add    $0x1,%ebp
mov    %ebp,0x14(%rsp)
jmp    13f0 <main+0x260>
nopl   0x0(%rax)
cmp    %r14d,%ebp
je     13a5 <main+0x215>
cmp    %r13d,%r14d
je     13a5 <main+0x215>
lea    0xcc8(%rip),%r14
lea    0xf(%rsp),%r13
mov    0x2c43(%rip),%rbp
movss  0x10(%rsp),%xmm0
jmp    1403 <main+0x273>
movss  0x10(%rsp),%xmm0
addss  0xc61(%rip),%xmm0
movss  %xmm0,0x10(%rsp)
lea    0xe29(%rip),%rdi
jmp    13dd <main+0x24d>
movss  0x10(%rsp),%xmm0
addss  0xc40(%rip),%xmm0
movss  %xmm0,0x10(%rsp)
lea    0xe27(%rip),%rdi
call   1050 <puts@plt>
movss  0x10(%rsp),%xmm0
movl   $0x0,0x14(%rsp)
lea    0xc62(%rip),%r14
lea    0xf(%rsp),%r13
mov    0x2bdd(%rip),%rbp
movss  %xmm0,0x10(%rsp)
cvtss2sd %xmm0,%xmm0
lea    0xc08(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
jmp    125c <main+0xcc>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc2b(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [35 x i8] c"Welcome to Jackpot! slot machine.\0A\00"
@.str.1 = [76 x i8] c"If you get 2 of the same numbers/symbols next to eachother, you win $0.10.\0A\00"
@.str.2 = [52 x i8] c"If you get 3 numbers/symbols the same, you get $2.\0A\00"
@.str.3 = [75 x i8] c"If you get 3 numbers/symbols the same three times in a row, you win $20.!\0A\00"
@.str.4 = [24 x i8] c"Each spin costs $0.10.\0A\00"
@.str.5 = [54 x i8] c"====================================================\0A\00"
@.str.6 = [17 x i8] c"You have $%.2f.\0A\00"
@stdin = global i32 0
@stdout = global i32 0
@.str.7 = [44 x i8] c"Press q to quit, or anything else to spin: \00"
@.str.8 = [3 x i8] c"%c\00"
@EOF = global i64 0
@.str.9 = [23 x i8] c"You leave with $%.2f.\0A\00"
@.str.10 = [3 x i8] c"\0A\0A\00"
@.str.11 = [37 x i8] c"Spinning... (press any key to stop)\0A\00"
@.str.12 = [1 x i8] zeroinitializer
@.str.13 = [14 x i8] c"YOU WON $20!\0A\00"
@.str.14 = [13 x i8] c"YOU WON $5!\0A\00"
@.str.15 = [16 x i8] c"YOU WON $0.50!\0A\00"
@.str.16 = [29 x i8] c"Please enter correct input.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca float
%7 = alloca i8
%8 = alloca i32
store i32 0, i32* %1
%9 = call i32 @time(i32* null)
%10 = call i32 @srand(i32 %9)
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store float 2.000000e+01, float* %6
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%17 = load float, float* %6
%18 = fpext float %17 to double
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), double %18)
br label %20
20: ; preds = %112, %0
%21 = load i32, i32* @stdin
%22 = call i32 @fflush(i32 %21)
%23 = load i32, i32* @stdout
%24 = call i32 @fflush(i32 %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0))
store i8 0, i8* %7
%26 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %7)
%27 = load i64, i64* @EOF
%28 = icmp ne i64 %26, %27
br i1 %28, label %29, label %109
29: ; preds = %20
%30 = load i8, i8* %7
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 113
br i1 %32, label %33, label %37
33: ; preds = %29
%34 = load float, float* %6
%35 = fpext float %34 to double
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %35)
store i32 0, i32* %1
br label %113
37: ; preds = %29
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%40 = load float, float* %6
%41 = fpext float %40 to double
%42 = fsub double %41, 1.000000e-01
%43 = fptrunc double %42 to float
store float %43, float* %6
store i32 0, i32* %8
br label %44
44: ; preds = %47, %37
%45 = load i32, i32* %8
%46 = icmp slt i32 %45, 1
br i1 %46, label %47, label %64
47: ; preds = %44
%48 = call i32 @rrange(i32 0, i32 14)
store i32 %48, i32* %2
%49 = call i32 @rrange(i32 0, i32 14)
store i32 %49, i32* %3
%50 = call i32 @rrange(i32 0, i32 14)
store i32 %50, i32* %4
%51 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0))
%52 = load i32, i32* %2
%53 = call i32 @convert(i32 %52)
%54 = call i32 @putchar(i32 %53)
%55 = load i32, i32* %3
%56 = call i32 @convert(i32 %55)
%57 = call i32 @putchar(i32 %56)
%58 = load i32, i32* %4
%59 = call i32 @convert(i32 %58)
%60 = call i32 @putchar(i32 %59)
%61 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.12, i64 0, i64 0))
%62 = load i32, i32* %8
%63 = add nsw i32 %62, 1
store i32 %63, i32* %8
br label %44
64: ; preds = %44
%65 = load i32, i32* %2
%66 = load i32, i32* %3
%67 = icmp eq i32 %65, %66
br i1 %67, label %68, label %90
68: ; preds = %64
%69 = load i32, i32* %3
%70 = load i32, i32* %4
%71 = icmp eq i32 %69, %70
br i1 %71, label %72, label %90
72: ; preds = %68
%73 = load i32, i32* %5
%74 = icmp eq i32 %73, 3
br i1 %74, label %75, label %81
75: ; preds = %72
%76 = load float, float* %6
%77 = fpext float %76 to double
%78 = fadd double %77, 2.000000e+01
%79 = fptrunc double %78 to float
store float %79, float* %6
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %5
br label %89
81: ; preds = %72
%82 = load float, float* %6
%83 = fpext float %82 to double
%84 = fadd double %83, 5.000000e+00
%85 = fptrunc double %84 to float
store float %85, float* %6
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%87 = load i32, i32* %5
%88 = add nsw i32 %87, 1
store i32 %88, i32* %5
br label %89
89: ; preds = %81, %75
br label %105
90: ; preds = %68, %64
%91 = load i32, i32* %2
%92 = load i32, i32* %3
%93 = icmp eq i32 %91, %92
br i1 %93, label %98, label %94
94: ; preds = %90
%95 = load i32, i32* %3
%96 = load i32, i32* %4
%97 = icmp eq i32 %95, %96
br i1 %97, label %98, label %104
98: ; preds = %94, %90
%99 = load float, float* %6
%100 = fpext float %99 to double
%101 = fadd double %100, 5.000000e-01
%102 = fptrunc double %101 to float
store float %102, float* %6
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %5
br label %104
104: ; preds = %98, %94
br label %105
105: ; preds = %104, %89
%106 = load float, float* %6
%107 = fpext float %106 to double
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), double %107)
br label %111
109: ; preds = %20
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0))
br label %111
111: ; preds = %109, %105
br label %112
112: ; preds = %111
br i1 true, label %20, label %113
113: ; preds = %33, %112
%114 = load i32, i32* %1
ret i32 %114
}

LLVM IR (-O2):
@.str.6 = [17 x i8] c"You have $%.2f.\0A\00"
@stdin = global i32 0
@stdout = global i32 0
@.str.7 = [44 x i8] c"Press q to quit, or anything else to spin: \00"
@.str.8 = [3 x i8] c"%c\00"
@EOF = global i64 0
@.str.9 = [23 x i8] c"You leave with $%.2f.\0A\00"
@str = [34 x i8] c"Welcome to Jackpot! slot machine.\00"
@str.17 = [75 x i8] c"If you get 2 of the same numbers/symbols next to eachother, you win $0.10.\00"
@str.18 = [51 x i8] c"If you get 3 numbers/symbols the same, you get $2.\00"
@str.19 = [74 x i8] c"If you get 3 numbers/symbols the same three times in a row, you win $20.!\00"
@str.20 = [23 x i8] c"Each spin costs $0.10.\00"
@str.21 = [53 x i8] c"====================================================\00"
@str.22 = [28 x i8] c"Please enter correct input.\00"
@str.23 = [2 x i8] c"\0A\00"
@str.24 = [36 x i8] c"Spinning... (press any key to stop)\00"
@str.25 = [15 x i8] c"YOU WON $0.50!\00"
@str.26 = [12 x i8] c"YOU WON $5!\00"
@str.27 = [13 x i8] c"YOU WON $20!\00"
define i32 @main() {
%1 = alloca i8
%2 = tail call i32 @time(i32* null)
%3 = tail call i32 @srand(i32 %2)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), double 2.000000e+01)
br label %11
11: ; preds = %66, %0
%12 = phi i32 [ 0, %0 ], [ %67, %66 ]
%13 = phi float [ 2.000000e+01, %0 ], [ %68, %66 ]
%14 = load i32, i32* @stdin
%15 = call i32 @fflush(i32 %14)
%16 = load i32, i32* @stdout
%17 = call i32 @fflush(i32 %16)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0))
store i8 0, i8* %1
%19 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* %1)
%20 = load i64, i64* @EOF
%21 = icmp eq i64 %19, %20
br i1 %21, label %64, label %22
22: ; preds = %11
%23 = load i8, i8* %1
%24 = icmp eq i8 %23, 113
br i1 %24, label %69, label %25
25: ; preds = %22
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.23, i64 0, i64 0))
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.24, i64 0, i64 0))
%28 = fpext float %13 to double
%29 = fadd double %28, -1.000000e-01
%30 = fptrunc double %29 to float
%31 = call i32 @rrange(i32 0, i32 14)
%32 = call i32 @rrange(i32 0, i32 14)
%33 = call i32 @rrange(i32 0, i32 14)
%34 = call i32 @putchar(i32 10)
%35 = call i32 @convert(i32 %31)
%36 = call i32 @putchar(i32 %35)
%37 = call i32 @convert(i32 %32)
%38 = call i32 @putchar(i32 %37)
%39 = call i32 @convert(i32 %33)
%40 = call i32 @putchar(i32 %39)
%41 = call i32 @putchar(i32 10)
%42 = icmp eq i32 %31, %32
%43 = icmp eq i32 %32, %33
%44 = select i1 %42, i1 %43, i1 false
br i1 %44, label %45, label %54
45: ; preds = %25
%46 = icmp eq i32 %12, 3
br i1 %46, label %47, label %50
47: ; preds = %45
%48 = fadd float %30, 2.000000e+01
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.27, i64 0, i64 0))
br label %59
50: ; preds = %45
%51 = fadd float %30, 5.000000e+00
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.26, i64 0, i64 0))
%53 = add nsw i32 %12, 1
br label %59
54: ; preds = %25
%55 = select i1 %42, i1 true, i1 %43
br i1 %55, label %56, label %59
56: ; preds = %54
%57 = fadd float %30, 5.000000e-01
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.25, i64 0, i64 0))
br label %59
59: ; preds = %54, %56, %47, %50
%60 = phi i32 [ 0, %47 ], [ %53, %50 ], [ 0, %56 ], [ %12, %54 ]
%61 = phi float [ %48, %47 ], [ %51, %50 ], [ %57, %56 ], [ %30, %54 ]
%62 = fpext float %61 to double
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), double %62)
br label %66
64: ; preds = %11
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.22, i64 0, i64 0))
br label %66
66: ; preds = %59, %64
%67 = phi i32 [ %60, %59 ], [ %12, %64 ]
%68 = phi float [ %61, %59 ], [ %13, %64 ]
br label %11
69: ; preds = %22
%70 = fpext float %13 to double
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %70)
ret i32 0
}