#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 d(int);
int /*<<< orphan*/ niceprint(char *);
int /*<<< orphan*/ printf(char *, int);
void cliff(void) {
  niceprint(
      "A cliff blocks the party's passage, but a rolled-up "
      "rope lader is visible at the top. If someone can climb the "
      "cliff-requiring "
      "a successful DC 15 Strength (Athletics) check--and toss down the "
      "ladder, "
      "the characters can proceed. Otherwise, they lose a day's travel finding "
      "another route. If the characters remove the ladder once they are at the "
      "top, they decrease the drow pursuit level by 1.\n\n");
  printf("Height: %d\n\n", 10 * (d(4) + d(4)));
}


x86 assembly (clang, -O0):
<cliff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
call   1050 <niceprint@plt>
mov    $0x4,%edi
call   1030 <d@plt>
mov    %eax,-0x4(%rbp)
mov    $0x4,%edi
call   1030 <d@plt>
mov    %eax,%ecx
mov    -0x4(%rbp),%eax
add    %ecx,%eax
imul   $0xa,%eax,%esi
lea    0x101e(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cliff>:
push   %rbx
lea    0xec8(%rip),%rdi
call   1050 <niceprint@plt>
mov    $0x4,%edi
call   1030 <d@plt>
mov    %eax,%ebx
mov    $0x4,%edi
call   1030 <d@plt>
add    %ebx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%esi
lea    0x1029(%rip),%rdi
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [394 x i8] c"A cliff blocks the party's passage, but a rolled-up rope lader is visible at the top. If someone can climb the cliff-requiring a successful DC 15 Strength (Athletics) check--and toss down the ladder, the characters can proceed. Otherwise, they lose a day's travel finding another route. If the characters remove the ladder once they are at the top, they decrease the drow pursuit level by 1.\0A\0A\00"
@.str.1 = [13 x i8] c"Height: %d\0A\0A\00"
define void @cliff() {
%1 = call i32 @niceprint(i8* getelementptr inbounds ([394 x i8], [394 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @d(i32 4)
%3 = call i32 @d(i32 4)
%4 = add nsw i32 %2, %3
%5 = mul nsw i32 10, %4
%6 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [394 x i8] c"A cliff blocks the party's passage, but a rolled-up rope lader is visible at the top. If someone can climb the cliff-requiring a successful DC 15 Strength (Athletics) check--and toss down the ladder, the characters can proceed. Otherwise, they lose a day's travel finding another route. If the characters remove the ladder once they are at the top, they decrease the drow pursuit level by 1.\0A\0A\00"
@.str.1 = [13 x i8] c"Height: %d\0A\0A\00"
define void @cliff() {
%1 = tail call i32 @niceprint(i8* getelementptr inbounds ([394 x i8], [394 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @d(i32 4)
%3 = tail call i32 @d(i32 4)
%4 = add nsw i32 %3, %2
%5 = mul nsw i32 %4, 10
%6 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret void
}