#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 */
struct mapc_t {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ display_both(struct mapc_t *, char *);
struct mapc_t *mapc_create();
int /*<<< orphan*/ mapc_set(struct mapc_t *, char *, char *);
int /*<<< orphan*/ printf(char *);
main(int argc, char **argv) {
  struct mapc_t *array;
  array = mapc_create();
  mapc_set(array, "Cow", "Muuuuu");
  mapc_set(array, "Dog", "Guau");
  mapc_set(array, "Cat", "Miau");
  display_both(array, "Dog");
  display_both(array, "Cat");
  display_both(array, "Cow");
  printf("\n");
  mapc_set(array, "Dog", "Guau Guau");
  display_both(array, "Dog");
  display_both(array, "Cat");
  display_both(array, "Cow");
  printf("\n");
  display_both(array, "Fox");
  printf("\n");
  mapc_set(array, "Fox", "Ding Ding Ding");
  display_both(array, "Fox");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <mapc_create@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe9b(%rip),%rsi
lea    0xe98(%rip),%rdx
call   1030 <mapc_set@plt>
mov    -0x18(%rbp),%rdi
lea    0xe8f(%rip),%rsi
lea    0xe9c(%rip),%rdx
call   1030 <mapc_set@plt>
mov    -0x18(%rbp),%rdi
lea    0xe7c(%rip),%rsi
lea    0xe79(%rip),%rdx
call   1030 <mapc_set@plt>
mov    -0x18(%rbp),%rdi
lea    0xe61(%rip),%rsi
call   1060 <display_both@plt>
mov    -0x18(%rbp),%rdi
lea    0xe55(%rip),%rsi
call   1060 <display_both@plt>
mov    -0x18(%rbp),%rdi
lea    0xe36(%rip),%rsi
call   1060 <display_both@plt>
lea    0xe42(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe25(%rip),%rsi
lea    0xe2d(%rip),%rdx
call   1030 <mapc_set@plt>
mov    -0x18(%rbp),%rdi
lea    0xe0e(%rip),%rsi
call   1060 <display_both@plt>
mov    -0x18(%rbp),%rdi
lea    0xe02(%rip),%rsi
call   1060 <display_both@plt>
mov    -0x18(%rbp),%rdi
lea    0xde3(%rip),%rsi
call   1060 <display_both@plt>
lea    0xdef(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdeb(%rip),%rsi
call   1060 <display_both@plt>
lea    0xdd3(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdcf(%rip),%rsi
lea    0xdcc(%rip),%rdx
call   1030 <mapc_set@plt>
mov    -0x18(%rbp),%rdi
lea    0xdb8(%rip),%rsi
call   1060 <display_both@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <mapc_create@plt>
mov    %rax,%rbx
lea    0xea7(%rip),%r14
lea    0xea4(%rip),%rdx
mov    %rax,%rdi
mov    %r14,%rsi
call   1040 <mapc_set@plt>
lea    0xe99(%rip),%r15
lea    0xea4(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <mapc_set@plt>
lea    0xe84(%rip),%r12
lea    0xe81(%rip),%rdx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <mapc_set@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1060 <display_both@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1060 <display_both@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <display_both@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe49(%rip),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <mapc_set@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1060 <display_both@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1060 <display_both@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <display_both@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe16(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <display_both@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdfe(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <mapc_set@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <display_both@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.mapc_t = type { i32 }
@.str = [4 x i8] c"Cow\00"
@.str.1 = [7 x i8] c"Muuuuu\00"
@.str.2 = [4 x i8] c"Dog\00"
@.str.3 = [5 x i8] c"Guau\00"
@.str.4 = [4 x i8] c"Cat\00"
@.str.5 = [5 x i8] c"Miau\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [10 x i8] c"Guau Guau\00"
@.str.8 = [4 x i8] c"Fox\00"
@.str.9 = [15 x i8] c"Ding Ding Ding\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca %struct.mapc_t*
store i32 %0, i32* %3
store i8** %1, i8*** %4
%6 = call %struct.mapc_t* (...) @mapc_create()
store %struct.mapc_t* %6, %struct.mapc_t** %5
%7 = load %struct.mapc_t*, %struct.mapc_t** %5
%8 = call i32 @mapc_set(%struct.mapc_t* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%9 = load %struct.mapc_t*, %struct.mapc_t** %5
%10 = call i32 @mapc_set(%struct.mapc_t* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%11 = load %struct.mapc_t*, %struct.mapc_t** %5
%12 = call i32 @mapc_set(%struct.mapc_t* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%13 = load %struct.mapc_t*, %struct.mapc_t** %5
%14 = call i32 @display_both(%struct.mapc_t* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%15 = load %struct.mapc_t*, %struct.mapc_t** %5
%16 = call i32 @display_both(%struct.mapc_t* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%17 = load %struct.mapc_t*, %struct.mapc_t** %5
%18 = call i32 @display_both(%struct.mapc_t* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%20 = load %struct.mapc_t*, %struct.mapc_t** %5
%21 = call i32 @mapc_set(%struct.mapc_t* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%22 = load %struct.mapc_t*, %struct.mapc_t** %5
%23 = call i32 @display_both(%struct.mapc_t* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%24 = load %struct.mapc_t*, %struct.mapc_t** %5
%25 = call i32 @display_both(%struct.mapc_t* %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%26 = load %struct.mapc_t*, %struct.mapc_t** %5
%27 = call i32 @display_both(%struct.mapc_t* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%29 = load %struct.mapc_t*, %struct.mapc_t** %5
%30 = call i32 @display_both(%struct.mapc_t* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%32 = load %struct.mapc_t*, %struct.mapc_t** %5
%33 = call i32 @mapc_set(%struct.mapc_t* %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%34 = load %struct.mapc_t*, %struct.mapc_t** %5
%35 = call i32 @display_both(%struct.mapc_t* %34, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.mapc_t = type { i32 }
@.str = [4 x i8] c"Cow\00"
@.str.1 = [7 x i8] c"Muuuuu\00"
@.str.2 = [4 x i8] c"Dog\00"
@.str.3 = [5 x i8] c"Guau\00"
@.str.4 = [4 x i8] c"Cat\00"
@.str.5 = [5 x i8] c"Miau\00"
@.str.7 = [10 x i8] c"Guau Guau\00"
@.str.8 = [4 x i8] c"Fox\00"
@.str.9 = [15 x i8] c"Ding Ding Ding\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call %struct.mapc_t* (...) @mapc_create()
%4 = tail call i32 @mapc_set(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @mapc_set(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @mapc_set(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @display_both(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @display_both(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @display_both(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @mapc_set(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%12 = tail call i32 @display_both(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @display_both(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i32 @display_both(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @display_both(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%17 = tail call i32 @putchar(i32 10)
%18 = tail call i32 @mapc_set(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%19 = tail call i32 @display_both(%struct.mapc_t* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}