#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*/ JTAG_DELAY();
int /*<<< orphan*/ JTAG_SET(int);
void JTAG_Reset(void) {
  JTAG_SET((1 << 3) | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | (1 << 2));
  JTAG_DELAY();
}


x86 assembly (clang, -O0):
<JTAG_Reset>:
push   %rbp
mov    %rsp,%rbp
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
mov    $0x0,%al
call   1030 <JTAG_DELAY@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<JTAG_Reset>:
push   %rax
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xa,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
call   1030 <JTAG_DELAY@plt>
mov    $0xe,%edi
call   1040 <JTAG_SET@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <JTAG_DELAY@plt>

LLVM IR (-O0):
define void @JTAG_Reset() {
%1 = call i32 @JTAG_SET(i32 10)
%2 = call i32 (...) @JTAG_DELAY()
%3 = call i32 @JTAG_SET(i32 14)
%4 = call i32 (...) @JTAG_DELAY()
%5 = call i32 @JTAG_SET(i32 10)
%6 = call i32 (...) @JTAG_DELAY()
%7 = call i32 @JTAG_SET(i32 14)
%8 = call i32 (...) @JTAG_DELAY()
%9 = call i32 @JTAG_SET(i32 10)
%10 = call i32 (...) @JTAG_DELAY()
%11 = call i32 @JTAG_SET(i32 14)
%12 = call i32 (...) @JTAG_DELAY()
%13 = call i32 @JTAG_SET(i32 10)
%14 = call i32 (...) @JTAG_DELAY()
%15 = call i32 @JTAG_SET(i32 14)
%16 = call i32 (...) @JTAG_DELAY()
%17 = call i32 @JTAG_SET(i32 10)
%18 = call i32 (...) @JTAG_DELAY()
%19 = call i32 @JTAG_SET(i32 14)
%20 = call i32 (...) @JTAG_DELAY()
%21 = call i32 @JTAG_SET(i32 10)
%22 = call i32 (...) @JTAG_DELAY()
%23 = call i32 @JTAG_SET(i32 14)
%24 = call i32 (...) @JTAG_DELAY()
ret void
}

LLVM IR (-O2):
define void @JTAG_Reset() {
%1 = tail call i32 @JTAG_SET(i32 10)
%2 = tail call i32 (...) @JTAG_DELAY()
%3 = tail call i32 @JTAG_SET(i32 14)
%4 = tail call i32 (...) @JTAG_DELAY()
%5 = tail call i32 @JTAG_SET(i32 10)
%6 = tail call i32 (...) @JTAG_DELAY()
%7 = tail call i32 @JTAG_SET(i32 14)
%8 = tail call i32 (...) @JTAG_DELAY()
%9 = tail call i32 @JTAG_SET(i32 10)
%10 = tail call i32 (...) @JTAG_DELAY()
%11 = tail call i32 @JTAG_SET(i32 14)
%12 = tail call i32 (...) @JTAG_DELAY()
%13 = tail call i32 @JTAG_SET(i32 10)
%14 = tail call i32 (...) @JTAG_DELAY()
%15 = tail call i32 @JTAG_SET(i32 14)
%16 = tail call i32 (...) @JTAG_DELAY()
%17 = tail call i32 @JTAG_SET(i32 10)
%18 = tail call i32 (...) @JTAG_DELAY()
%19 = tail call i32 @JTAG_SET(i32 14)
%20 = tail call i32 (...) @JTAG_DELAY()
%21 = tail call i32 @JTAG_SET(i32 10)
%22 = tail call i32 (...) @JTAG_DELAY()
%23 = tail call i32 @JTAG_SET(i32 14)
%24 = tail call i32 (...) @JTAG_DELAY()
ret void
}