#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 Wheel {
  int dummy;
};
struct Map {
  int dummy;
};

/* Variables and functions */
struct Wheel *create(char *);
int /*<<< orphan*/ exec(char, struct Map *);
struct Map *insert(char, struct Wheel *, struct Map *);
void group4() {
  struct Wheel *a = create("1BC");
  struct Wheel *b = create("34");
  struct Wheel *c = create("5B");
  struct Map *m = insert('A', a, NULL);
  m = insert('B', b, m);
  m = insert('C', c, m);
  exec('A', m);
}


x86 assembly (clang, -O0):
<group4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xec1(%rip),%rdi
call   1030 <create@plt>
mov    %rax,-0x8(%rbp)
lea    0xeb5(%rip),%rdi
call   1030 <create@plt>
mov    %rax,-0x10(%rbp)
lea    0xea8(%rip),%rdi
call   1030 <create@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    $0x41,%edi
xor    %eax,%eax
mov    %eax,%edx
call   1040 <insert@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    $0x42,%edi
call   1040 <insert@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    $0x43,%edi
call   1040 <insert@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    $0x41,%edi
call   1050 <exec@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<group4>:
push   %r15
push   %r14
push   %rbx
lea    0xec4(%rip),%rdi
call   1030 <create@plt>
mov    %rax,%rbx
lea    0xeb9(%rip),%rdi
call   1030 <create@plt>
mov    %rax,%r14
lea    0xead(%rip),%rdi
call   1030 <create@plt>
mov    %rax,%r15
mov    $0x41,%edi
mov    %rbx,%rsi
xor    %edx,%edx
call   1040 <insert@plt>
mov    $0x42,%edi
mov    %r14,%rsi
mov    %rax,%rdx
call   1040 <insert@plt>
mov    $0x43,%edi
mov    %r15,%rsi
mov    %rax,%rdx
call   1040 <insert@plt>
mov    $0x41,%edi
mov    %rax,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <exec@plt>

LLVM IR (-O0):
%struct.Wheel = type { i32 }
%struct.Map = type { i32 }
@.str = [4 x i8] c"1BC\00"
@.str.1 = [3 x i8] c"34\00"
@.str.2 = [3 x i8] c"5B\00"
define void @group4() {
%1 = alloca %struct.Wheel*
%2 = alloca %struct.Wheel*
%3 = alloca %struct.Wheel*
%4 = alloca %struct.Map*
%5 = call %struct.Wheel* @create(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store %struct.Wheel* %5, %struct.Wheel** %1
%6 = call %struct.Wheel* @create(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store %struct.Wheel* %6, %struct.Wheel** %2
%7 = call %struct.Wheel* @create(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store %struct.Wheel* %7, %struct.Wheel** %3
%8 = load %struct.Wheel*, %struct.Wheel** %1
%9 = call %struct.Map* @insert(i8 signext 65, %struct.Wheel* %8, %struct.Map* null)
store %struct.Map* %9, %struct.Map** %4
%10 = load %struct.Wheel*, %struct.Wheel** %2
%11 = load %struct.Map*, %struct.Map** %4
%12 = call %struct.Map* @insert(i8 signext 66, %struct.Wheel* %10, %struct.Map* %11)
store %struct.Map* %12, %struct.Map** %4
%13 = load %struct.Wheel*, %struct.Wheel** %3
%14 = load %struct.Map*, %struct.Map** %4
%15 = call %struct.Map* @insert(i8 signext 67, %struct.Wheel* %13, %struct.Map* %14)
store %struct.Map* %15, %struct.Map** %4
%16 = load %struct.Map*, %struct.Map** %4
%17 = call i32 @exec(i8 signext 65, %struct.Map* %16)
ret void
}

LLVM IR (-O2):
%struct.Wheel = type { i32 }
%struct.Map = type { i32 }
@.str = [4 x i8] c"1BC\00"
@.str.1 = [3 x i8] c"34\00"
@.str.2 = [3 x i8] c"5B\00"
define void @group4() {
%1 = tail call %struct.Wheel* @create(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = tail call %struct.Wheel* @create(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call %struct.Wheel* @create(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call %struct.Map* @insert(i8 signext 65, %struct.Wheel* %1, %struct.Map* null)
%5 = tail call %struct.Map* @insert(i8 signext 66, %struct.Wheel* %2, %struct.Map* %4)
%6 = tail call %struct.Map* @insert(i8 signext 67, %struct.Wheel* %3, %struct.Map* %5)
%7 = tail call i32 @exec(i8 signext 65, %struct.Map* %6)
ret void
}