#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*/ ip(char const *);
int /*<<< orphan*/ line();
int /*<<< orphan*/ logtype(char const *);
int /*<<< orphan*/ name(char const *);
int /*<<< orphan*/ number(unsigned int);
int /*<<< orphan*/ space();
int /*<<< orphan*/ string(char *);
void log_nodata(const char server[4], const char *q, const char qtype[2],
                unsigned int ttl) {
  string("     nodata ");
  ip(server);
  space();
  number(ttl);
  space();
  logtype(qtype);
  space();
  name(q);
  line();
}


x86 assembly (clang, -O0):
<log_nodata>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
lea    0xe72(%rip),%rdi
call   1040 <string@plt>
mov    -0x8(%rbp),%rdi
call   1090 <ip@plt>
mov    $0x0,%al
call   1030 <space@plt>
mov    -0x1c(%rbp),%edi
call   1070 <number@plt>
mov    $0x0,%al
call   1030 <space@plt>
mov    -0x18(%rbp),%rdi
call   1060 <logtype@plt>
mov    $0x0,%al
call   1030 <space@plt>
mov    -0x10(%rbp),%rdi
call   1050 <name@plt>
mov    $0x0,%al
call   1080 <line@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_nodata>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%ebp
mov    %rdx,%r15
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xe77(%rip),%rdi
call   1040 <string@plt>
mov    %rbx,%rdi
call   1090 <ip@plt>
xor    %eax,%eax
call   1030 <space@plt>
mov    %ebp,%edi
call   1070 <number@plt>
xor    %eax,%eax
call   1030 <space@plt>
mov    %r15,%rdi
call   1060 <logtype@plt>
xor    %eax,%eax
call   1030 <space@plt>
mov    %r14,%rdi
call   1050 <name@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <line@plt>

LLVM IR (-O0):
@.str = [13 x i8] c" nodata \00"
define void @log_nodata(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = call i32 @string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%10 = load i8*, i8** %5
%11 = call i32 @ip(i8* %10)
%12 = call i32 (...) @space()
%13 = load i32, i32* %8
%14 = call i32 @number(i32 %13)
%15 = call i32 (...) @space()
%16 = load i8*, i8** %7
%17 = call i32 @logtype(i8* %16)
%18 = call i32 (...) @space()
%19 = load i8*, i8** %6
%20 = call i32 @name(i8* %19)
%21 = call i32 (...) @line()
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c" nodata \00"
define void @log_nodata(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = tail call i32 @string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @ip(i8* %0)
%7 = tail call i32 (...) @space()
%8 = tail call i32 @number(i32 %3)
%9 = tail call i32 (...) @space()
%10 = tail call i32 @logtype(i8* %2)
%11 = tail call i32 (...) @space()
%12 = tail call i32 @name(i8* %1)
%13 = tail call i32 (...) @line()
ret void
}