#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*/ H();
int /*<<< orphan*/ printf(char *, int);
int randChar(char *);
int randInt(int);
int F() {
  printf("%c", randChar("0123456789"));
  if (randInt(10) < 7)
    F();
  else if (randInt(10) < 8)
    H();
}


x86 assembly (clang, -O0):
<F>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xea4(%rip),%rdi
call   1060 <randChar@plt>
mov    %eax,%esi
lea    0xe93(%rip),%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
call   1070 <randInt@plt>
cmp    $0x7,%eax
jge    118f <F+0x3f>
call   1040 <F@plt>
jmp    11ae <F+0x5e>
mov    $0xa,%edi
call   1070 <randInt@plt>
cmp    $0x8,%eax
jge    11a9 <F+0x59>
mov    $0x0,%al
call   1030 <H@plt>
jmp    11ae <F+0x5e>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<F>:
push   %r14
push   %rbx
push   %rax
lea    0xeb8(%rip),%rdi
call   1050 <randChar@plt>
lea    0xea9(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    $0xa,%edi
call   1060 <randInt@plt>
cmp    $0x6,%eax
jg     11a1 <F+0x61>
lea    0xe8f(%rip),%r14
lea    0xe85(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1050 <randChar@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    $0xa,%edi
call   1060 <randInt@plt>
cmp    $0x7,%eax
jl     1180 <F+0x40>
mov    $0xa,%edi
call   1060 <randInt@plt>
cmp    $0x7,%eax
jg     11b7 <F+0x77>
xor    %eax,%eax
call   1030 <H@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [11 x i8] c"0123456789\00"
define i32 @F() {
%1 = alloca i32
%2 = call i32 @randChar(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 @randInt(i32 10)
%5 = icmp slt i32 %4, 7
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @F()
br label %14
8: ; preds = %0
%9 = call i32 @randInt(i32 10)
%10 = icmp slt i32 %9, 8
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 (...) @H()
br label %13
13: ; preds = %11, %8
br label %14
14: ; preds = %13, %6
%15 = load i32, i32* %1
ret i32 %15
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
@.str.1 = [11 x i8] c"0123456789\00"
define i32 @F() {
%1 = tail call i32 @randChar(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @randInt(i32 10)
%4 = icmp slt i32 %3, 7
br i1 %4, label %5, label %10
5: ; preds = %0, %5
%6 = tail call i32 @randChar(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = tail call i32 @randInt(i32 10)
%9 = icmp slt i32 %8, 7
br i1 %9, label %5, label %10
10: ; preds = %5, %0
%11 = tail call i32 @randInt(i32 10)
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 (...) @H()
br label %15
15: ; preds = %10, %13
ret i32 undef
}