#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*/ write(char *, char *, char *);
void function_id(char *id) {
  write("msproject.xml", "\t<UID>%s</UID>\n", id);
  write("msproject.xml", "\t<ID>%s</ID>\n", id);
  write("msproject.xml", "\t<Active>1</Active>", NULL);
  write("msproject.xml", "\t<Manual>1</Manual>", NULL);
  write("msproject.xml", "\t<IsNull>0</IsNull>", NULL);
}


x86 assembly (clang, -O0):
<function_id>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
lea    0xed9(%rip),%rdi
lea    0xee0(%rip),%rsi
call   1030 <write@plt>
mov    -0x8(%rbp),%rdx
lea    0xec2(%rip),%rdi
lea    0xed9(%rip),%rsi
call   1030 <write@plt>
lea    0xeaf(%rip),%rdi
lea    0xed4(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <write@plt>
lea    0xe98(%rip),%rdi
lea    0xed1(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <write@plt>
lea    0xe81(%rip),%rdi
lea    0xece(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<function_id>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee2(%rip),%r14
lea    0xee9(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1030 <write@plt>
lea    0xee7(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1030 <write@plt>
lea    0xee3(%rip),%rsi
mov    %r14,%rdi
xor    %edx,%edx
call   1030 <write@plt>
lea    0xee6(%rip),%rsi
mov    %r14,%rdi
xor    %edx,%edx
call   1030 <write@plt>
lea    0xee9(%rip),%rsi
mov    %r14,%rdi
xor    %edx,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"msproject.xml\00"
@.str.1 = [16 x i8] c"\09<UID>%s</UID>\0A\00"
@.str.2 = [14 x i8] c"\09<ID>%s</ID>\0A\00"
@.str.3 = [20 x i8] c"\09<Active>1</Active>\00"
@.str.4 = [20 x i8] c"\09<Manual>1</Manual>\00"
@.str.5 = [20 x i8] c"\09<IsNull>0</IsNull>\00"
define void @function_id(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%7 = call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* null)
%8 = call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* null)
%9 = call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* null)
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"msproject.xml\00"
@.str.1 = [16 x i8] c"\09<UID>%s</UID>\0A\00"
@.str.2 = [14 x i8] c"\09<ID>%s</ID>\0A\00"
@.str.3 = [20 x i8] c"\09<Active>1</Active>\00"
@.str.4 = [20 x i8] c"\09<Manual>1</Manual>\00"
@.str.5 = [20 x i8] c"\09<IsNull>0</IsNull>\00"
define void @function_id(i8* %0) {
%2 = tail call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%3 = tail call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%4 = tail call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* null)
%5 = tail call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* null)
%6 = tail call i32 @write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* null)
ret void
}