#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*/ digitalWrite(int, int);
int /*<<< orphan*/ usDelay(int);
void A(void) {
  digitalWrite(29, 1);
  usDelay(7000);
  digitalWrite(29, 0);
  usDelay(7000);
  digitalWrite(29, 1);
  usDelay(7000);
  digitalWrite(29, 0);
  usDelay(7000);
  digitalWrite(29, 1);
  usDelay(7000);
  digitalWrite(29, 0);
  usDelay(51000);
}


x86 assembly (clang, -O0):
<A>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1d,%edi
mov    $0x1,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
xor    %esi,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
mov    $0x1,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
xor    %esi,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
mov    $0x1,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
xor    %esi,%esi
call   1030 <digitalWrite@plt>
mov    $0xc738,%edi
call   1040 <usDelay@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<A>:
push   %rax
mov    $0x1d,%edi
mov    $0x1,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
xor    %esi,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
mov    $0x1,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
xor    %esi,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
mov    $0x1,%esi
call   1030 <digitalWrite@plt>
mov    $0x1b58,%edi
call   1040 <usDelay@plt>
mov    $0x1d,%edi
xor    %esi,%esi
call   1030 <digitalWrite@plt>
mov    $0xc738,%edi
pop    %rax
jmp    1040 <usDelay@plt>

LLVM IR (-O0):
define void @A() {
%1 = call i32 @digitalWrite(i32 29, i32 1)
%2 = call i32 @usDelay(i32 7000)
%3 = call i32 @digitalWrite(i32 29, i32 0)
%4 = call i32 @usDelay(i32 7000)
%5 = call i32 @digitalWrite(i32 29, i32 1)
%6 = call i32 @usDelay(i32 7000)
%7 = call i32 @digitalWrite(i32 29, i32 0)
%8 = call i32 @usDelay(i32 7000)
%9 = call i32 @digitalWrite(i32 29, i32 1)
%10 = call i32 @usDelay(i32 7000)
%11 = call i32 @digitalWrite(i32 29, i32 0)
%12 = call i32 @usDelay(i32 51000)
ret void
}

LLVM IR (-O2):
define void @A() {
%1 = tail call i32 @digitalWrite(i32 29, i32 1)
%2 = tail call i32 @usDelay(i32 7000)
%3 = tail call i32 @digitalWrite(i32 29, i32 0)
%4 = tail call i32 @usDelay(i32 7000)
%5 = tail call i32 @digitalWrite(i32 29, i32 1)
%6 = tail call i32 @usDelay(i32 7000)
%7 = tail call i32 @digitalWrite(i32 29, i32 0)
%8 = tail call i32 @usDelay(i32 7000)
%9 = tail call i32 @digitalWrite(i32 29, i32 1)
%10 = tail call i32 @usDelay(i32 7000)
%11 = tail call i32 @digitalWrite(i32 29, i32 0)
%12 = tail call i32 @usDelay(i32 51000)
ret void
}