#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 */
size_t markov_rand(int);
const char *markov_get_punct() {
  size_t val = markov_rand(100);
  if (val < 67)
    return ".";
  if (val < 72)
    return "?";
  if (val < 85)
    return "!";
  if (val < 97)
    return "...";
  if (val < 98)
    return "‽";
  if (val < 99)
    return ". FailFish";
  return ". Kappa";
}


x86 assembly (clang, -O0):
<markov_get_punct>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x64,%edi
call   1030 <markov_rand@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x43,-0x10(%rbp)
jae    1141 <markov_get_punct+0x31>
lea    0xece(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d3 <markov_get_punct+0xc3>
cmpq   $0x48,-0x10(%rbp)
jae    115c <markov_get_punct+0x4c>
lea    0xead(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d3 <markov_get_punct+0xc3>
cmpq   $0x55,-0x10(%rbp)
jae    1177 <markov_get_punct+0x67>
lea    0xe94(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d3 <markov_get_punct+0xc3>
cmpq   $0x61,-0x10(%rbp)
jae    1192 <markov_get_punct+0x82>
lea    0xe7b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d3 <markov_get_punct+0xc3>
cmpq   $0x62,-0x10(%rbp)
jae    11ad <markov_get_punct+0x9d>
lea    0xe64(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d3 <markov_get_punct+0xc3>
cmpq   $0x63,-0x10(%rbp)
jae    11c8 <markov_get_punct+0xb8>
lea    0xe4d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d3 <markov_get_punct+0xc3>
lea    0xe48(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<markov_get_punct>:
push   %rax
mov    $0x64,%edi
call   1030 <markov_rand@plt>
cmp    $0x43,%rax
jae    112a <markov_get_punct+0x1a>
lea    0xede(%rip),%rax
pop    %rcx
ret
cmp    $0x48,%rax
jae    1139 <markov_get_punct+0x29>
lea    0xec9(%rip),%rax
pop    %rcx
ret
cmp    $0x55,%rax
jae    1148 <markov_get_punct+0x38>
lea    0xebc(%rip),%rax
pop    %rcx
ret
cmp    $0x61,%rax
jae    1157 <markov_get_punct+0x47>
lea    0xeaf(%rip),%rax
pop    %rcx
ret
jne    1162 <markov_get_punct+0x52>
lea    0xea8(%rip),%rax
pop    %rcx
ret
cmp    $0x63,%rax
lea    0xe9f(%rip),%rcx
lea    0xea3(%rip),%rax
cmovb  %rcx,%rax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c".\00"
@.str.1 = [2 x i8] c"?\00"
@.str.2 = [2 x i8] c"!\00"
@.str.3 = [4 x i8] c"...\00"
@.str.4 = [4 x i8] c"\E2\80\BD\00"
@.str.5 = [11 x i8] c". FailFish\00"
@.str.6 = [8 x i8] c". Kappa\00"
define i8* @markov_get_punct() {
%1 = alloca i8*
%2 = alloca i64
%3 = call i64 @markov_rand(i32 100)
store i64 %3, i64* %2
%4 = load i64, i64* %2
%5 = icmp ult i64 %4, 67
br i1 %5, label %6, label %7
6: ; preds = %0
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %1
br label %28
7: ; preds = %0
%8 = load i64, i64* %2
%9 = icmp ult i64 %8, 72
br i1 %9, label %10, label %11
10: ; preds = %7
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %1
br label %28
11: ; preds = %7
%12 = load i64, i64* %2
%13 = icmp ult i64 %12, 85
br i1 %13, label %14, label %15
14: ; preds = %11
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %1
br label %28
15: ; preds = %11
%16 = load i64, i64* %2
%17 = icmp ult i64 %16, 97
br i1 %17, label %18, label %19
18: ; preds = %15
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %1
br label %28
19: ; preds = %15
%20 = load i64, i64* %2
%21 = icmp ult i64 %20, 98
br i1 %21, label %22, label %23
22: ; preds = %19
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %1
br label %28
23: ; preds = %19
%24 = load i64, i64* %2
%25 = icmp ult i64 %24, 99
br i1 %25, label %26, label %27
26: ; preds = %23
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8** %1
br label %28
27: ; preds = %23
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8** %1
br label %28
28: ; preds = %27, %26, %22, %18, %14, %10, %6
%29 = load i8*, i8** %1
ret i8* %29
}

LLVM IR (-O2):
@.str = [2 x i8] c".\00"
@.str.1 = [2 x i8] c"?\00"
@.str.2 = [2 x i8] c"!\00"
@.str.3 = [4 x i8] c"...\00"
@.str.4 = [4 x i8] c"\E2\80\BD\00"
@.str.5 = [11 x i8] c". FailFish\00"
@.str.6 = [8 x i8] c". Kappa\00"
define i8* @markov_get_punct() {
%1 = tail call i64 @markov_rand(i32 100)
%2 = icmp ult i64 %1, 67
br i1 %2, label %14, label %3
3: ; preds = %0
%4 = icmp ult i64 %1, 72
br i1 %4, label %14, label %5
5: ; preds = %3
%6 = icmp ult i64 %1, 85
br i1 %6, label %14, label %7
7: ; preds = %5
%8 = icmp ult i64 %1, 97
br i1 %8, label %14, label %9
9: ; preds = %7
%10 = icmp eq i64 %1, 97
br i1 %10, label %14, label %11
11: ; preds = %9
%12 = icmp ult i64 %1, 99
%13 = select i1 %12, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
br label %14
14: ; preds = %11, %9, %7, %5, %3, %0
%15 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %0 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %5 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), %9 ], [ %13, %11 ]
ret i8* %15
}