#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 typed_value {
  int dummy;
};
struct inter {
  int dummy;
};

/* Variables and functions */
char *inter_intern_sym(struct inter *, char *, int /*<<< orphan*/);
struct typed_value *inter_undef_value(struct inter *, char *,
                                      int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ typed_value_destruct(struct typed_value *, struct inter *);
void inter_undef_dl_funcs(struct inter *inter) {
  char *name_sym;
  struct typed_value *value;
  name_sym = inter_intern_sym(inter, "dl.open", strlen("dl.open"));
  value = inter_undef_value(inter, "dl.open", strlen("dl.open"));
  typed_value_destruct(value, inter);
  name_sym = inter_intern_sym(inter, "dl.error", strlen("dl.error"));
  value = inter_undef_value(inter, "dl.error", strlen("dl.error"));
  typed_value_destruct(value, inter);
  name_sym = inter_intern_sym(inter, "dl.sym", strlen("dl.sym"));
  value = inter_undef_value(inter, "dl.sym", strlen("dl.sym"));
  typed_value_destruct(value, inter);
  name_sym = inter_intern_sym(inter, "dl.def-group", strlen("dl.def-group"));
  value = inter_undef_value(inter, "dl.def-group", strlen("dl.def-group"));
  typed_value_destruct(value, inter);
  name_sym = inter_intern_sym(inter, "dl.close", strlen("dl.close"));
  value = inter_undef_value(inter, "dl.close", strlen("dl.close"));
  typed_value_destruct(value, inter);
}


x86 assembly (clang, -O0):
<inter_undef_dl_funcs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    0xea5(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%edx
lea    0xe93(%rip),%rsi
call   1050 <inter_intern_sym@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    0xe7b(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%edx
lea    0xe69(%rip),%rsi
call   1060 <inter_undef_value@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <typed_value_destruct@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    0xe4c(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%edx
lea    0xe3a(%rip),%rsi
call   1050 <inter_intern_sym@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    0xe22(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x50(%rbp),%rdi
mov    %eax,%edx
lea    0xe10(%rip),%rsi
call   1060 <inter_undef_value@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <typed_value_destruct@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    0xdf4(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%edx
lea    0xde2(%rip),%rsi
call   1050 <inter_intern_sym@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    0xdca(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%edx
lea    0xdb8(%rip),%rsi
call   1060 <inter_undef_value@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <typed_value_destruct@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    0xd9a(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%edx
lea    0xd88(%rip),%rsi
call   1050 <inter_intern_sym@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    0xd70(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%edx
lea    0xd5e(%rip),%rsi
call   1060 <inter_undef_value@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <typed_value_destruct@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    0xd46(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%edx
lea    0xd34(%rip),%rsi
call   1050 <inter_intern_sym@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    0xd1c(%rip),%rdi
call   1040 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%edx
lea    0xd0a(%rip),%rsi
call   1060 <inter_undef_value@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <typed_value_destruct@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inter_undef_dl_funcs>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xeb2(%rip),%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1050 <inter_intern_sym@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1060 <inter_undef_value@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <typed_value_destruct@plt>
lea    0xe7e(%rip),%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1050 <inter_intern_sym@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1060 <inter_undef_value@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <typed_value_destruct@plt>
lea    0xe4b(%rip),%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1050 <inter_intern_sym@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1060 <inter_undef_value@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <typed_value_destruct@plt>
lea    0xe16(%rip),%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1050 <inter_intern_sym@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1060 <inter_undef_value@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <typed_value_destruct@plt>
lea    0xde7(%rip),%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1050 <inter_intern_sym@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1060 <inter_undef_value@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <typed_value_destruct@plt>

LLVM IR (-O0):
%struct.inter = type { i32 }
%struct.typed_value = type { i32 }
@.str = [8 x i8] c"dl.open\00"
@.str.1 = [9 x i8] c"dl.error\00"
@.str.2 = [7 x i8] c"dl.sym\00"
@.str.3 = [13 x i8] c"dl.def-group\00"
@.str.4 = [9 x i8] c"dl.close\00"
define void @inter_undef_dl_funcs(%struct.inter* %0) {
%2 = alloca %struct.inter*
%3 = alloca i8*
%4 = alloca %struct.typed_value*
store %struct.inter* %0, %struct.inter** %2
%5 = load %struct.inter*, %struct.inter** %2
%6 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%7 = call i8* @inter_intern_sym(%struct.inter* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %6)
store i8* %7, i8** %3
%8 = load %struct.inter*, %struct.inter** %2
%9 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%10 = call %struct.typed_value* @inter_undef_value(%struct.inter* %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %9)
store %struct.typed_value* %10, %struct.typed_value** %4
%11 = load %struct.typed_value*, %struct.typed_value** %4
%12 = load %struct.inter*, %struct.inter** %2
%13 = call i32 @typed_value_destruct(%struct.typed_value* %11, %struct.inter* %12)
%14 = load %struct.inter*, %struct.inter** %2
%15 = call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%16 = call i8* @inter_intern_sym(%struct.inter* %14, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %15)
store i8* %16, i8** %3
%17 = load %struct.inter*, %struct.inter** %2
%18 = call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%19 = call %struct.typed_value* @inter_undef_value(%struct.inter* %17, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %18)
store %struct.typed_value* %19, %struct.typed_value** %4
%20 = load %struct.typed_value*, %struct.typed_value** %4
%21 = load %struct.inter*, %struct.inter** %2
%22 = call i32 @typed_value_destruct(%struct.typed_value* %20, %struct.inter* %21)
%23 = load %struct.inter*, %struct.inter** %2
%24 = call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%25 = call i8* @inter_intern_sym(%struct.inter* %23, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %24)
store i8* %25, i8** %3
%26 = load %struct.inter*, %struct.inter** %2
%27 = call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%28 = call %struct.typed_value* @inter_undef_value(%struct.inter* %26, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %27)
store %struct.typed_value* %28, %struct.typed_value** %4
%29 = load %struct.typed_value*, %struct.typed_value** %4
%30 = load %struct.inter*, %struct.inter** %2
%31 = call i32 @typed_value_destruct(%struct.typed_value* %29, %struct.inter* %30)
%32 = load %struct.inter*, %struct.inter** %2
%33 = call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%34 = call i8* @inter_intern_sym(%struct.inter* %32, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %33)
store i8* %34, i8** %3
%35 = load %struct.inter*, %struct.inter** %2
%36 = call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%37 = call %struct.typed_value* @inter_undef_value(%struct.inter* %35, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %36)
store %struct.typed_value* %37, %struct.typed_value** %4
%38 = load %struct.typed_value*, %struct.typed_value** %4
%39 = load %struct.inter*, %struct.inter** %2
%40 = call i32 @typed_value_destruct(%struct.typed_value* %38, %struct.inter* %39)
%41 = load %struct.inter*, %struct.inter** %2
%42 = call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%43 = call i8* @inter_intern_sym(%struct.inter* %41, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %42)
store i8* %43, i8** %3
%44 = load %struct.inter*, %struct.inter** %2
%45 = call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%46 = call %struct.typed_value* @inter_undef_value(%struct.inter* %44, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %45)
store %struct.typed_value* %46, %struct.typed_value** %4
%47 = load %struct.typed_value*, %struct.typed_value** %4
%48 = load %struct.inter*, %struct.inter** %2
%49 = call i32 @typed_value_destruct(%struct.typed_value* %47, %struct.inter* %48)
ret void
}

LLVM IR (-O2):
%struct.inter = type { i32 }
%struct.typed_value = type { i32 }
@.str = [8 x i8] c"dl.open\00"
@.str.1 = [9 x i8] c"dl.error\00"
@.str.2 = [7 x i8] c"dl.sym\00"
@.str.3 = [13 x i8] c"dl.def-group\00"
@.str.4 = [9 x i8] c"dl.close\00"
define void @inter_undef_dl_funcs(%struct.inter* %0) {
%2 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = tail call i8* @inter_intern_sym(%struct.inter* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%5 = tail call %struct.typed_value* @inter_undef_value(%struct.inter* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = tail call i32 @typed_value_destruct(%struct.typed_value* %5, %struct.inter* %0)
%7 = tail call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i8* @inter_intern_sym(%struct.inter* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = tail call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call %struct.typed_value* @inter_undef_value(%struct.inter* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = tail call i32 @typed_value_destruct(%struct.typed_value* %10, %struct.inter* %0)
%12 = tail call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i8* @inter_intern_sym(%struct.inter* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = tail call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%15 = tail call %struct.typed_value* @inter_undef_value(%struct.inter* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%16 = tail call i32 @typed_value_destruct(%struct.typed_value* %15, %struct.inter* %0)
%17 = tail call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%18 = tail call i8* @inter_intern_sym(%struct.inter* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %17)
%19 = tail call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%20 = tail call %struct.typed_value* @inter_undef_value(%struct.inter* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%21 = tail call i32 @typed_value_destruct(%struct.typed_value* %20, %struct.inter* %0)
%22 = tail call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%23 = tail call i8* @inter_intern_sym(%struct.inter* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %22)
%24 = tail call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%25 = tail call %struct.typed_value* @inter_undef_value(%struct.inter* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %24)
%26 = tail call i32 @typed_value_destruct(%struct.typed_value* %25, %struct.inter* %0)
ret void
}