#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 *, int /*<<< orphan*/ *);
void init_task_section() {
  write("ganttproject.gan", "\t<tasks>\n", NULL);
  write("ganttproject.gan", "\t\t<taskproperties>\n", NULL);
  write("ganttproject.gan",
        "\t\t\t<taskproperty id=\"prior\" name=\"Priority\" type=\"custom\" "
        "valuetype=\"text\" />\n",
        NULL);
  write("ganttproject.gan",
        "\t\t\t<taskproperty id=\"type\" name=\"Type\" type=\"custom\" "
        "valuetype=\"text\" />\n",
        NULL);
  write("ganttproject.gan",
        "\t\t\t<taskproperty id=\"state\" name=\"State\" type=\"custom\" "
        "valuetype=\"text\" />\n",
        NULL);
  write("ganttproject.gan", "\t\t</taskproperties>\n", NULL);
}


x86 assembly (clang, -O0):
<init_task_section>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xeef(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <write@plt>
lea    0xece(%rip),%rdi
lea    0xee2(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <write@plt>
lea    0xeb7(%rip),%rdi
lea    0xedf(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <write@plt>
lea    0xea0(%rip),%rdi
lea    0xf17(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <write@plt>
lea    0xe89(%rip),%rdi
lea    0xf4a(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <write@plt>
lea    0xe72(%rip),%rdi
lea    0xf7f(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1030 <write@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_task_section>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xef2(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <write@plt>
lea    0xeeb(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <write@plt>
lea    0xeee(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <write@plt>
lea    0xf2c(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <write@plt>
lea    0xf65(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1030 <write@plt>
lea    0xfa0(%rip),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
pop    %rbx
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"ganttproject.gan\00"
@.str.1 = [10 x i8] c"\09<tasks>\0A\00"
@.str.2 = [20 x i8] c"\09\09<taskproperties>\0A\00"
@.str.3 = [79 x i8] c"\09\09\09<taskproperty id=\22prior\22 name=\22Priority\22 type=\22custom\22 valuetype=\22text\22 />\0A\00"
@.str.4 = [74 x i8] c"\09\09\09<taskproperty id=\22type\22 name=\22Type\22 type=\22custom\22 valuetype=\22text\22 />\0A\00"
@.str.5 = [76 x i8] c"\09\09\09<taskproperty id=\22state\22 name=\22State\22 type=\22custom\22 valuetype=\22text\22 />\0A\00"
@.str.6 = [21 x i8] c"\09\09</taskproperties>\0A\00"
define void @init_task_section() {
%1 = call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32* null)
%2 = call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32* null)
%3 = call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.3, i64 0, i64 0), i32* null)
%4 = call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0), i32* null)
%5 = call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.5, i64 0, i64 0), i32* null)
%6 = call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32* null)
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"ganttproject.gan\00"
@.str.1 = [10 x i8] c"\09<tasks>\0A\00"
@.str.2 = [20 x i8] c"\09\09<taskproperties>\0A\00"
@.str.3 = [79 x i8] c"\09\09\09<taskproperty id=\22prior\22 name=\22Priority\22 type=\22custom\22 valuetype=\22text\22 />\0A\00"
@.str.4 = [74 x i8] c"\09\09\09<taskproperty id=\22type\22 name=\22Type\22 type=\22custom\22 valuetype=\22text\22 />\0A\00"
@.str.5 = [76 x i8] c"\09\09\09<taskproperty id=\22state\22 name=\22State\22 type=\22custom\22 valuetype=\22text\22 />\0A\00"
@.str.6 = [21 x i8] c"\09\09</taskproperties>\0A\00"
define void @init_task_section() {
%1 = tail call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32* null)
%2 = tail call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32* null)
%3 = tail call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.3, i64 0, i64 0), i32* null)
%4 = tail call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0), i32* null)
%5 = tail call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.5, i64 0, i64 0), i32* null)
%6 = tail call i32 @write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32* null)
ret void
}