#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*/ mkd_define_tag(char *, int /*<<< orphan*/);
int /*<<< orphan*/ mkd_prepare_tags();
int /*<<< orphan*/ mkd_sort_tags();
void mkd_with_html5_tags() {
  static int populated = 0;
  if (populated)
    return;
  populated = 1;
  mkd_prepare_tags();
  mkd_define_tag("ASIDE", 0);
  mkd_define_tag("FOOTER", 0);
  mkd_define_tag("HEADER", 0);
  mkd_define_tag("HGROUP", 0);
  mkd_define_tag("NAV", 0);
  mkd_define_tag("SECTION", 0);
  mkd_define_tag("ARTICLE", 0);
  mkd_sort_tags();
}


x86 assembly (clang, -O0):
<mkd_with_html5_tags>:
push   %rbp
mov    %rsp,%rbp
cmpl   $0x0,0x2f01(%rip)
je     1146 <mkd_with_html5_tags+0x16>
jmp    11c0 <mkd_with_html5_tags+0x90>
movl   $0x1,0x2eec(%rip)
mov    $0x0,%al
call   1030 <mkd_prepare_tags@plt>
lea    0xea2(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe9a(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe93(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe8c(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe85(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe7b(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe75(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
mov    $0x0,%al
call   1040 <mkd_sort_tags@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkd_with_html5_tags>:
push   %rax
cmpb   $0x0,0x2f04(%rip)
je     113c <mkd_with_html5_tags+0xc>
pop    %rax
ret
movb   $0x1,0x2ef9(%rip)
xor    %eax,%eax
call   1030 <mkd_prepare_tags@plt>
lea    0xeaf(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xea7(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xea0(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe99(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe92(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe88(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
lea    0xe82(%rip),%rdi
xor    %esi,%esi
call   1050 <mkd_define_tag@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <mkd_sort_tags@plt>

LLVM IR (-O0):
@mkd_with_html5_tags.populated = internal global i32 0
@.str = [6 x i8] c"ASIDE\00"
@.str.1 = [7 x i8] c"FOOTER\00"
@.str.2 = [7 x i8] c"HEADER\00"
@.str.3 = [7 x i8] c"HGROUP\00"
@.str.4 = [4 x i8] c"NAV\00"
@.str.5 = [8 x i8] c"SECTION\00"
@.str.6 = [8 x i8] c"ARTICLE\00"
define void @mkd_with_html5_tags() {
%1 = load i32, i32* @mkd_with_html5_tags.populated
%2 = icmp ne i32 %1, 0
br i1 %2, label %3, label %4
3: ; preds = %0
br label %14
4: ; preds = %0
store i32 1, i32* @mkd_with_html5_tags.populated
%5 = call i32 (...) @mkd_prepare_tags()
%6 = call i32 @mkd_define_tag(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 0)
%7 = call i32 @mkd_define_tag(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 0)
%8 = call i32 @mkd_define_tag(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 0)
%9 = call i32 @mkd_define_tag(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 0)
%10 = call i32 @mkd_define_tag(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 0)
%11 = call i32 @mkd_define_tag(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 0)
%12 = call i32 @mkd_define_tag(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 0)
%13 = call i32 (...) @mkd_sort_tags()
br label %14
14: ; preds = %4, %3
ret void
}

LLVM IR (-O2):
@mkd_with_html5_tags.populated = internal unnamed_addr global i1 false
@.str = [6 x i8] c"ASIDE\00"
@.str.1 = [7 x i8] c"FOOTER\00"
@.str.2 = [7 x i8] c"HEADER\00"
@.str.3 = [7 x i8] c"HGROUP\00"
@.str.4 = [4 x i8] c"NAV\00"
@.str.5 = [8 x i8] c"SECTION\00"
@.str.6 = [8 x i8] c"ARTICLE\00"
define void @mkd_with_html5_tags() {
%1 = load i1, i1* @mkd_with_html5_tags.populated
br i1 %1, label %12, label %2
2: ; preds = %0
store i1 true, i1* @mkd_with_html5_tags.populated
%3 = tail call i32 (...) @mkd_prepare_tags()
%4 = tail call i32 @mkd_define_tag(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 0)
%5 = tail call i32 @mkd_define_tag(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 0)
%6 = tail call i32 @mkd_define_tag(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 0)
%7 = tail call i32 @mkd_define_tag(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 0)
%8 = tail call i32 @mkd_define_tag(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 0)
%9 = tail call i32 @mkd_define_tag(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 0)
%10 = tail call i32 @mkd_define_tag(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 0)
%11 = tail call i32 (...) @mkd_sort_tags()
br label %12
12: ; preds = %0, %2
ret void
}