#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 */
typedef int /*<<< orphan*/ words;

/* Variables and functions */
int /*<<< orphan*/ printf(char const *, char const *);
int /*<<< orphan*/ puts(char *);
void idontunderstand(const char *stuff) {
  const char *words[] = {
      "I do not understand '%s'.",
      "What does '%s' mean?",
      "'%s'? Come again?",
      "I know not of this '%s' of which thy speak.",
      "Perhaps one day I will know the meaning of '%s'.",
      "'%s'? What's that? Some kind of strange fruit?",
      "'%s'? Is that like a slime mold?",
      "Of course, of course, '%s'! I understand! Just kidding, I don't know "
      "what that means.",
      "Somewhere, there is some machine that understands '%s'. Unfortunately, "
      "it is not this one.",
      "Maybe one day, I will understand the true meaning of your words, such "
      "as '%s'. Alas, that day is not today.",
      "Your words carry far,\n"
      "From the white coast of Albion,\n"
      "To the towering peaks of the Himalayas,\n"
      "From the soft tundras of the Norden,\n"
      "To the wisping sands of the Sahara.\n"
      "I hear them resounding throughout the world.\n"
      "But I know naught their meaning,\n"
      "Nor do I know that of your prose or poems,\n"
      "Of your heart or soul,\n"
      "Of the word '%s'."};
  static int i = 0;
  if (!*stuff)
    return;
  printf(words[i], stuff);
  i = (i + 1) % (sizeof(words) / sizeof(*(words)));
  puts("");
}


x86 assembly (clang, -O0):
<idontunderstand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x60(%rbp),%rdi
lea    0x2c79(%rip),%rsi
mov    $0x58,%edx
call   1050 <memcpy@plt>
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1163 <idontunderstand+0x33>
jmp    11a1 <idontunderstand+0x71>
movslq 0x2ed2(%rip),%rax
mov    -0x60(%rbp,%rax,8),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <printf@plt>
mov    0x2ebe(%rip),%eax
add    $0x1,%eax
cltq
mov    $0xb,%ecx
xor    %edx,%edx
div    %rcx
mov    %edx,%eax
mov    %eax,0x2ea7(%rip)
lea    0xe7d(%rip),%rdi
call   1030 <puts@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<idontunderstand>:
push   %rax
cmpb   $0x0,(%rdi)
je     1176 <idontunderstand+0x56>
mov    %rdi,%rsi
mov    0x2f05(%rip),%eax
lea    0x121e(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
call   1040 <printf@plt>
mov    0x2eec(%rip),%eax
lea    0x1(%rax),%ecx
mov    $0xba2e8ba3,%edx
imul   %rcx,%rdx
shr    $0x23,%rdx
lea    (%rdx,%rdx,4),%ecx
lea    (%rdx,%rcx,2),%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0x2ec9(%rip)
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [26 x i8] c"I do not understand '%s'.\00"
@.str.1 = [21 x i8] c"What does '%s' mean?\00"
@.str.2 = [18 x i8] c"'%s'? Come again?\00"
@.str.3 = [44 x i8] c"I know not of this '%s' of which thy speak.\00"
@.str.4 = [49 x i8] c"Perhaps one day I will know the meaning of '%s'.\00"
@.str.5 = [47 x i8] c"'%s'? What's that? Some kind of strange fruit?\00"
@.str.6 = [33 x i8] c"'%s'? Is that like a slime mold?\00"
@.str.7 = [86 x i8] c"Of course, of course, '%s'! I understand! Just kidding, I don't know what that means.\00"
@.str.8 = [91 x i8] c"Somewhere, there is some machine that understands '%s'. Unfortunately, it is not this one.\00"
@.str.9 = [108 x i8] c"Maybe one day, I will understand the true meaning of your words, such as '%s'. Alas, that day is not today.\00"
@.str.10 = [329 x i8] c"Your words carry far,\0AFrom the white coast of Albion,\0ATo the towering peaks of the Himalayas,\0AFrom the soft tundras of the Norden,\0ATo the wisping sands of the Sahara.\0AI hear them resounding throughout the world.\0ABut I know naught their meaning,\0ANor do I know that of your prose or poems,\0AOf your heart or soul,\0AOf the word '%s'.\00"
@__const.idontunderstand.words = [11 x i8*] [i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([329 x i8], [329 x i8]* @.str.10, i32 0, i32 0)]
@idontunderstand.i = internal global i32 0
@.str.11 = [1 x i8] zeroinitializer
define void @idontunderstand(i8* %0) {
%2 = alloca i8*
%3 = alloca [11 x i8*]
store i8* %0, i8** %2
%4 = bitcast [11 x i8*]* %3 to i8*
%5 = load i8*, i8** %2
%6 = load i8, i8* %5
%7 = icmp ne i8 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %1
br label %22
9: ; preds = %1
%10 = load i32, i32* @idontunderstand.i
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [11 x i8*], [11 x i8*]* %3, i64 0, i64 %11
%13 = load i8*, i8** %12
%14 = load i8*, i8** %2
%15 = call i32 @printf(i8* %13, i8* %14)
%16 = load i32, i32* @idontunderstand.i
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = urem i64 %18, 11
%20 = trunc i64 %19 to i32
store i32 %20, i32* @idontunderstand.i
%21 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
br label %22
22: ; preds = %9, %8
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"I do not understand '%s'.\00"
@.str.1 = [21 x i8] c"What does '%s' mean?\00"
@.str.2 = [18 x i8] c"'%s'? Come again?\00"
@.str.3 = [44 x i8] c"I know not of this '%s' of which thy speak.\00"
@.str.4 = [49 x i8] c"Perhaps one day I will know the meaning of '%s'.\00"
@.str.5 = [47 x i8] c"'%s'? What's that? Some kind of strange fruit?\00"
@.str.6 = [33 x i8] c"'%s'? Is that like a slime mold?\00"
@.str.7 = [86 x i8] c"Of course, of course, '%s'! I understand! Just kidding, I don't know what that means.\00"
@.str.8 = [91 x i8] c"Somewhere, there is some machine that understands '%s'. Unfortunately, it is not this one.\00"
@.str.9 = [108 x i8] c"Maybe one day, I will understand the true meaning of your words, such as '%s'. Alas, that day is not today.\00"
@.str.10 = [329 x i8] c"Your words carry far,\0AFrom the white coast of Albion,\0ATo the towering peaks of the Himalayas,\0AFrom the soft tundras of the Norden,\0ATo the wisping sands of the Sahara.\0AI hear them resounding throughout the world.\0ABut I know naught their meaning,\0ANor do I know that of your prose or poems,\0AOf your heart or soul,\0AOf the word '%s'.\00"
@reltable.idontunderstand = [11 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([26 x i8]* @.str to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.1 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.2 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([44 x i8]* @.str.3 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @.str.4 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([47 x i8]* @.str.5 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.6 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([86 x i8]* @.str.7 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([91 x i8]* @.str.8 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([108 x i8]* @.str.9 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([329 x i8]* @.str.10 to i64), i64 ptrtoint ([11 x i32]* @reltable.idontunderstand to i64)) to i32)]
@idontunderstand.i = internal unnamed_addr global i32 0
define void @idontunderstand(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1
%5 = load i32, i32* @idontunderstand.i
%6 = zext i32 %5 to i64
%7 = shl i64 %6, 2
%8 = call i8* @llvm.load.relative.i64(i8* bitcast ([11 x i32]* @reltable.idontunderstand to i8*), i64 %7)
%9 = tail call i32 @printf(i8* %8, i8* %0)
%10 = load i32, i32* @idontunderstand.i
%11 = add nsw i32 %10, 1
%12 = urem i32 %11, 11
store i32 %12, i32* @idontunderstand.i
%13 = tail call i32 @putchar(i32 10)
br label %14
14: ; preds = %1, %4
ret void
}