#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*/ do_report(char *, int, int);
int /*<<< orphan*/ erl_init(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ erl_mk_atom(char *);
int /*<<< orphan*/ send_term(int /*<<< orphan*/);
void t_erl_mk_atom(void) {
  erl_init(NULL, 0);
  send_term(erl_mk_atom("madonna"));
  send_term(erl_mk_atom("Madonna"));
  send_term(erl_mk_atom("mad donna"));
  send_term(erl_mk_atom("_madonna_"));
  send_term(erl_mk_atom("/home/madonna/tour_plan"));
  send_term(erl_mk_atom("http://www.madonna.com/tour_plan"));
  send_term(erl_mk_atom("\'madonna\'"));
  send_term(erl_mk_atom("\"madonna\""));
  send_term(erl_mk_atom("\\madonna\\"));
  send_term(erl_mk_atom("{madonna,21,'mad donna',12}"));
  do_report("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/RaimoNiskanen/otp/refs/heads/basho/lib/"
            "erl_interface/test/erl_eterm_SUITE_data/eterm_test.c",
            439, 1);
}


x86 assembly (clang, -O0):
<t_erl_mk_atom>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
call   1060 <erl_init@plt>
lea    0xeaa(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe9f(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe94(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe8b(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe82(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe87(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe95(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe8c(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe83(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe7a(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe83(%rip),%rdi
mov    $0x1b7,%esi
mov    $0x1,%edx
call   1030 <do_report@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_erl_mk_atom>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1060 <erl_init@plt>
lea    0xeaf(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xea4(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe99(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe90(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe87(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe8c(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe9a(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe91(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe88(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe7f(%rip),%rdi
call   1050 <erl_mk_atom@plt>
mov    %eax,%edi
call   1040 <send_term@plt>
lea    0xe88(%rip),%rdi
mov    $0x1b7,%esi
mov    $0x1,%edx
pop    %rax
jmp    1030 <do_report@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"madonna\00"
@.str.1 = [8 x i8] c"Madonna\00"
@.str.2 = [10 x i8] c"mad donna\00"
@.str.3 = [10 x i8] c"_madonna_\00"
@.str.4 = [24 x i8] c"/home/madonna/tour_plan\00"
@.str.5 = [33 x i8] c"http://www.madonna.com/tour_plan\00"
@.str.6 = [10 x i8] c"'madonna'\00"
@.str.7 = [10 x i8] c"\22madonna\22\00"
@.str.8 = [10 x i8] c"\\madonna\\\00"
@.str.9 = [28 x i8] c"{madonna,21,'mad donna',12}\00"
@.str.10 = [182 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/RaimoNiskanen/otp/refs/heads/basho/lib/erl_interface/test/erl_eterm_SUITE_data/eterm_test.c\00"
define void @t_erl_mk_atom() {
%1 = call i32 @erl_init(i32* null, i32 0)
%2 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @send_term(i32 %2)
%4 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @send_term(i32 %4)
%6 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @send_term(i32 %6)
%8 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @send_term(i32 %8)
%10 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @send_term(i32 %10)
%12 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @send_term(i32 %12)
%14 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @send_term(i32 %14)
%16 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 @send_term(i32 %16)
%18 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 @send_term(i32 %18)
%20 = call i32 @erl_mk_atom(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0))
%21 = call i32 @send_term(i32 %20)
%22 = call i32 @do_report(i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str.10, i64 0, i64 0), i32 439, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"madonna\00"
@.str.1 = [8 x i8] c"Madonna\00"
@.str.2 = [10 x i8] c"mad donna\00"
@.str.3 = [10 x i8] c"_madonna_\00"
@.str.4 = [24 x i8] c"/home/madonna/tour_plan\00"
@.str.5 = [33 x i8] c"http://www.madonna.com/tour_plan\00"
@.str.6 = [10 x i8] c"'madonna'\00"
@.str.7 = [10 x i8] c"\22madonna\22\00"
@.str.8 = [10 x i8] c"\\madonna\\\00"
@.str.9 = [28 x i8] c"{madonna,21,'mad donna',12}\00"
@.str.10 = [182 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/RaimoNiskanen/otp/refs/heads/basho/lib/erl_interface/test/erl_eterm_SUITE_data/eterm_test.c\00"
define void @t_erl_mk_atom() {
%1 = tail call i32 @erl_init(i32* null, i32 0)
%2 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @send_term(i32 %2)
%4 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @send_term(i32 %4)
%6 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @send_term(i32 %6)
%8 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @send_term(i32 %8)
%10 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%11 = tail call i32 @send_term(i32 %10)
%12 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 @send_term(i32 %12)
%14 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%15 = tail call i32 @send_term(i32 %14)
%16 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%17 = tail call i32 @send_term(i32 %16)
%18 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%19 = tail call i32 @send_term(i32 %18)
%20 = tail call i32 @erl_mk_atom(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0))
%21 = tail call i32 @send_term(i32 %20)
%22 = tail call i32 @do_report(i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str.10, i64 0, i64 0), i32 439, i32 1)
ret void
}