#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*/ delete (char *);
int /*<<< orphan*/ insert(char *);
int /*<<< orphan*/ print_names();
void test_1(void) {
  insert("Konrad");
  print_names();
  insert("Heinrich");
  print_names();
  insert("Karl");
  print_names();
  insert("Anette");
  print_names();
  insert("Friedrich");
  print_names();
  insert("Anton");
  print_names();
  insert("Olga");
  print_names();
  insert("Eva");
  print_names();
  insert("Adam");
  print_names();
  delete ("Anton");
  print_names();
}


x86 assembly (clang, -O0):
<test_1>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1030 <insert@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
lea    0xeb9(%rip),%rdi
call   1030 <insert@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
lea    0xeaf(%rip),%rdi
call   1030 <insert@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
lea    0xea1(%rip),%rdi
call   1030 <insert@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
lea    0xe95(%rip),%rdi
call   1030 <insert@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
lea    0xe8c(%rip),%rdi
call   1030 <insert@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
lea    0xe7f(%rip),%rdi
call   1030 <insert@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
lea    0xe71(%rip),%rdi
call   1030 <insert@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
lea    0xe62(%rip),%rdi
call   1030 <insert@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
lea    0xe40(%rip),%rdi
call   1040 <delete@plt>
mov    $0x0,%al
call   1050 <print_names@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_1>:
push   %rbx
lea    0xec8(%rip),%rdi
call   1030 <insert@plt>
xor    %eax,%eax
call   1050 <print_names@plt>
lea    0xebc(%rip),%rdi
call   1030 <insert@plt>
xor    %eax,%eax
call   1050 <print_names@plt>
lea    0xeb2(%rip),%rdi
call   1030 <insert@plt>
xor    %eax,%eax
call   1050 <print_names@plt>
lea    0xea4(%rip),%rdi
call   1030 <insert@plt>
xor    %eax,%eax
call   1050 <print_names@plt>
lea    0xe98(%rip),%rdi
call   1030 <insert@plt>
xor    %eax,%eax
call   1050 <print_names@plt>
lea    0xe8f(%rip),%rbx
mov    %rbx,%rdi
call   1030 <insert@plt>
xor    %eax,%eax
call   1050 <print_names@plt>
lea    0xe7f(%rip),%rdi
call   1030 <insert@plt>
xor    %eax,%eax
call   1050 <print_names@plt>
lea    0xe71(%rip),%rdi
call   1030 <insert@plt>
xor    %eax,%eax
call   1050 <print_names@plt>
lea    0xe62(%rip),%rdi
call   1030 <insert@plt>
xor    %eax,%eax
call   1050 <print_names@plt>
mov    %rbx,%rdi
call   1040 <delete@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <print_names@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"Konrad\00"
@.str.1 = [9 x i8] c"Heinrich\00"
@.str.2 = [5 x i8] c"Karl\00"
@.str.3 = [7 x i8] c"Anette\00"
@.str.4 = [10 x i8] c"Friedrich\00"
@.str.5 = [6 x i8] c"Anton\00"
@.str.6 = [5 x i8] c"Olga\00"
@.str.7 = [4 x i8] c"Eva\00"
@.str.8 = [5 x i8] c"Adam\00"
define void @test_1() {
%1 = call i32 @insert(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @print_names()
%3 = call i32 @insert(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @print_names()
%5 = call i32 @insert(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 (...) @print_names()
%7 = call i32 @insert(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (...) @print_names()
%9 = call i32 @insert(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (...) @print_names()
%11 = call i32 @insert(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (...) @print_names()
%13 = call i32 @insert(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 (...) @print_names()
%15 = call i32 @insert(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 (...) @print_names()
%17 = call i32 @insert(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 (...) @print_names()
%19 = call i32 @delete(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 (...) @print_names()
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"Konrad\00"
@.str.1 = [9 x i8] c"Heinrich\00"
@.str.2 = [5 x i8] c"Karl\00"
@.str.3 = [7 x i8] c"Anette\00"
@.str.4 = [10 x i8] c"Friedrich\00"
@.str.5 = [6 x i8] c"Anton\00"
@.str.6 = [5 x i8] c"Olga\00"
@.str.7 = [4 x i8] c"Eva\00"
@.str.8 = [5 x i8] c"Adam\00"
define void @test_1() {
%1 = tail call i32 @insert(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @print_names()
%3 = tail call i32 @insert(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (...) @print_names()
%5 = tail call i32 @insert(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (...) @print_names()
%7 = tail call i32 @insert(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 (...) @print_names()
%9 = tail call i32 @insert(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 (...) @print_names()
%11 = tail call i32 @insert(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 (...) @print_names()
%13 = tail call i32 @insert(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 (...) @print_names()
%15 = tail call i32 @insert(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%16 = tail call i32 (...) @print_names()
%17 = tail call i32 @insert(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%18 = tail call i32 (...) @print_names()
%19 = tail call i32 @delete(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%20 = tail call i32 (...) @print_names()
ret void
}