#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 group3() {
  struct Wheel *a = create("1DD");
  struct Wheel *d = create("678");
  struct Map *m = insert('A', a, NULL);
  m = insert('D', d, m);
  exec('A', m);
}


x86 assembly (clang, -O0):
<group3>:
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)
mov    -0x8(%rbp),%rsi
mov    $0x41,%edi
xor    %eax,%eax
mov    %eax,%edx
call   1040 <insert@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    $0x44,%edi
call   1040 <insert@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
mov    $0x41,%edi
call   1050 <exec@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<group3>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rdi
call   1030 <create@plt>
mov    %rax,%rbx
lea    0xeba(%rip),%rdi
call   1030 <create@plt>
mov    %rax,%r14
mov    $0x41,%edi
mov    %rbx,%rsi
xor    %edx,%edx
call   1040 <insert@plt>
mov    $0x44,%edi
mov    %r14,%rsi
mov    %rax,%rdx
call   1040 <insert@plt>
mov    $0x41,%edi
mov    %rax,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <exec@plt>

LLVM IR (-O0):
%struct.Wheel = type { i32 }
%struct.Map = type { i32 }
@.str = [4 x i8] c"1DD\00"
@.str.1 = [4 x i8] c"678\00"
define void @group3() {
%1 = alloca %struct.Wheel*
%2 = alloca %struct.Wheel*
%3 = alloca %struct.Map*
%4 = call %struct.Wheel* @create(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store %struct.Wheel* %4, %struct.Wheel** %1
%5 = call %struct.Wheel* @create(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
store %struct.Wheel* %5, %struct.Wheel** %2
%6 = load %struct.Wheel*, %struct.Wheel** %1
%7 = call %struct.Map* @insert(i8 signext 65, %struct.Wheel* %6, %struct.Map* null)
store %struct.Map* %7, %struct.Map** %3
%8 = load %struct.Wheel*, %struct.Wheel** %2
%9 = load %struct.Map*, %struct.Map** %3
%10 = call %struct.Map* @insert(i8 signext 68, %struct.Wheel* %8, %struct.Map* %9)
store %struct.Map* %10, %struct.Map** %3
%11 = load %struct.Map*, %struct.Map** %3
%12 = call i32 @exec(i8 signext 65, %struct.Map* %11)
ret void
}

LLVM IR (-O2):
%struct.Wheel = type { i32 }
%struct.Map = type { i32 }
@.str = [4 x i8] c"1DD\00"
@.str.1 = [4 x i8] c"678\00"
define void @group3() {
%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 ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call %struct.Map* @insert(i8 signext 65, %struct.Wheel* %1, %struct.Map* null)
%4 = tail call %struct.Map* @insert(i8 signext 68, %struct.Wheel* %2, %struct.Map* %3)
%5 = tail call i32 @exec(i8 signext 65, %struct.Map* %4)
ret void
}