#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 */
typedef int /*<<< orphan*/ tags;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *, char const *);
scalar_t__ strcmp(char const *, char const *);
void markdown(const char *tag_name, const char *content) {
  static const char *tags[] = {};
  int acceptable = 0;
  for (int i = 0; i < sizeof(tags) / sizeof(tags[0]); ++i) {
    acceptable = (acceptable || strcmp(tags[i], tag_name) == 0) ? 1 : 0;
  }
  if (acceptable != 0)
    printf("<%-12s> %s\n", tag_name, content);
}


x86 assembly (clang, -O0):
<markdown>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movslq -0x18(%rbp),%rax
cmp    $0x0,%rax
jae    119e <markdown+0x7e>
mov    $0x1,%al
cmpl   $0x0,-0x14(%rbp)
mov    %al,-0x19(%rbp)
jne    117d <markdown+0x5d>
movslq -0x18(%rbp),%rcx
lea    0x2ed2(%rip),%rax
mov    (%rax,%rcx,8),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    113e <markdown+0x1e>
cmpl   $0x0,-0x14(%rbp)
je     11bc <markdown+0x9c>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xe49(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<markdown>:
ret

LLVM IR (-O0):
@markdown.tags = internal global [0 x i8*] zeroinitializer
@.str = [12 x i8] c"<%-12s> %s\0A\00"
define void @markdown(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
store i32 0, i32* %5
store i32 0, i32* %6
br label %7
7: ; preds = %26, %2
%8 = load i32, i32* %6
%9 = sext i32 %8 to i64
%10 = icmp ult i64 %9, 0
br i1 %10, label %11, label %29
11: ; preds = %7
%12 = load i32, i32* %5
%13 = icmp ne i32 %12, 0
br i1 %13, label %22, label %14
14: ; preds = %11
%15 = load i32, i32* %6
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [0 x i8*], [0 x i8*]* @markdown.tags, i64 0, i64 %16
%18 = load i8*, i8** %17
%19 = load i8*, i8** %3
%20 = call i64 @strcmp(i8* %18, i8* %19)
%21 = icmp eq i64 %20, 0
br label %22
22: ; preds = %14, %11
%23 = phi i1 [ true, %11 ], [ %21, %14 ]
%24 = zext i1 %23 to i64
%25 = select i1 %23, i32 1, i32 0
store i32 %25, i32* %5
br label %26
26: ; preds = %22
%27 = load i32, i32* %6
%28 = add nsw i32 %27, 1
store i32 %28, i32* %6
br label %7
29: ; preds = %7
%30 = load i32, i32* %5
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i8*, i8** %3
%34 = load i8*, i8** %4
%35 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %33, i8* %34)
br label %36
36: ; preds = %32, %29
ret void
}

LLVM IR (-O2):
define void @markdown(i8* nocapture %0, i8* nocapture %1) {
ret void
}