#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*/ DeBug(char *, int);
int /*<<< orphan*/ GPIO_SetIndex(int, int);
int /*<<< orphan*/ Tos_TaskDelay(int);
void Task_App1(void *Tags) {
  while (1) {
    Tos_TaskDelay(1000);
    GPIO_SetIndex(0, 0);
    GPIO_SetIndex(1, 0);
    Tos_TaskDelay(10);
    GPIO_SetIndex(0, 1);
    GPIO_SetIndex(1, 1);
    Tos_TaskDelay(100);
    GPIO_SetIndex(0, 0);
    GPIO_SetIndex(1, 0);
    Tos_TaskDelay(10);
    GPIO_SetIndex(0, 1);
    GPIO_SetIndex(1, 1);
    DeBug("dddd", 4);
  }
}


x86 assembly (clang, -O0):
<Task_App1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x3e8,%edi
call   1050 <Tos_TaskDelay@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1030 <GPIO_SetIndex@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0xa,%edi
call   1050 <Tos_TaskDelay@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <GPIO_SetIndex@plt>
mov    $0x64,%edi
call   1050 <Tos_TaskDelay@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1030 <GPIO_SetIndex@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0xa,%edi
call   1050 <Tos_TaskDelay@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <GPIO_SetIndex@plt>
lea    0xe3b(%rip),%rdi
mov    $0x4,%esi
call   1040 <DeBug@plt>
jmp    113c <Task_App1+0xc>

x86 assembly (clang, -O2):
<Task_App1>:
push   %rbx
lea    0xec8(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    $0x3e8,%edi
call   1050 <Tos_TaskDelay@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0xa,%edi
call   1050 <Tos_TaskDelay@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0x64,%edi
call   1050 <Tos_TaskDelay@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0xa,%edi
call   1050 <Tos_TaskDelay@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <GPIO_SetIndex@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <GPIO_SetIndex@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <DeBug@plt>
jmp    1140 <Task_App1+0x10>

LLVM IR (-O0):
@.str = [5 x i8] c"dddd\00"
define void @Task_App1(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %1, %3
%4 = call i32 @Tos_TaskDelay(i32 1000)
%5 = call i32 @GPIO_SetIndex(i32 0, i32 0)
%6 = call i32 @GPIO_SetIndex(i32 1, i32 0)
%7 = call i32 @Tos_TaskDelay(i32 10)
%8 = call i32 @GPIO_SetIndex(i32 0, i32 1)
%9 = call i32 @GPIO_SetIndex(i32 1, i32 1)
%10 = call i32 @Tos_TaskDelay(i32 100)
%11 = call i32 @GPIO_SetIndex(i32 0, i32 0)
%12 = call i32 @GPIO_SetIndex(i32 1, i32 0)
%13 = call i32 @Tos_TaskDelay(i32 10)
%14 = call i32 @GPIO_SetIndex(i32 0, i32 1)
%15 = call i32 @GPIO_SetIndex(i32 1, i32 1)
%16 = call i32 @DeBug(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
br label %3
}

LLVM IR (-O2):
@.str = [5 x i8] c"dddd\00"
define void @Task_App1(i8* nocapture readnone %0) {
br label %2
2: ; preds = %1, %2
%3 = tail call i32 @Tos_TaskDelay(i32 1000)
%4 = tail call i32 @GPIO_SetIndex(i32 0, i32 0)
%5 = tail call i32 @GPIO_SetIndex(i32 1, i32 0)
%6 = tail call i32 @Tos_TaskDelay(i32 10)
%7 = tail call i32 @GPIO_SetIndex(i32 0, i32 1)
%8 = tail call i32 @GPIO_SetIndex(i32 1, i32 1)
%9 = tail call i32 @Tos_TaskDelay(i32 100)
%10 = tail call i32 @GPIO_SetIndex(i32 0, i32 0)
%11 = tail call i32 @GPIO_SetIndex(i32 1, i32 0)
%12 = tail call i32 @Tos_TaskDelay(i32 10)
%13 = tail call i32 @GPIO_SetIndex(i32 0, i32 1)
%14 = tail call i32 @GPIO_SetIndex(i32 1, i32 1)
%15 = tail call i32 @DeBug(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
br label %2
}