#ifndef STRLEN
#define STRLEN 81
#endif
#define _COND(A,B,C) ((A)?(B):(C))
#ifdef TRACE_ACTION
#include <stdio.h>
#endif
#ifndef NULL
#define NULL ((char*)0)
#endif
#ifndef __EXEC_STATUS_H_LOADED
#define __EXEC_STATUS_H_LOADED
typedef struct {
unsigned int start:1;
unsigned int kill:1;
unsigned int active:1;
unsigned int suspended:1;
unsigned int prev_active:1;
unsigned int prev_suspended:1;
unsigned int exec_index;
unsigned int task_exec_index;
void (*pStart)();
void (*pRet)();
} __ExecStatus;
#endif
#define __ResetExecStatus(status) {\
status.prev_active = status.active; \
status.prev_suspended = status.suspended; \
status.start = status.kill = status.active = status.suspended = 0; }
#define __DSZ(V) (--(V)<=0)
#define BASIC_TYPES_DEFINED
typedef int boolean;
typedef int integer;
typedef char* string;
#define _true 1
#define _false 0
#define __Example2_GENERIC_TEST(TEST) return TEST;
typedef void (*__Example2_APF)();
static __Example2_APF *__Example2_PActionArray;
#include "example2.h"
#ifndef _NO_EXTERN_DEFINITIONS
#endif
static boolean __Example2_V0;
void Example2_I_Second_Tick () {
__Example2_V0 = _true;
}
#define __Example2_A1 \
__Example2_V0
#define __Example2_A2 \
Example2_O_LED2_TOGGLE()
#define __Example2_A3 \
__Example2_V0 = _false
int Example2_number_of_execs () {
return (0);
}
static void __Example2__reset_input () {
__Example2_V0 = _false;
}
#ifndef __SSC_BIT_TYPE_DEFINED
typedef char __SSC_BIT_TYPE;
#endif
static __SSC_BIT_TYPE __Example2_R[2] = {_true,
_false};
int Example2 () {
static __SSC_BIT_TYPE E[3];
E[0] = __Example2_R[1]&&!(__Example2_R[0]);
E[1] = E[0]&&(
#ifdef TRACE_ACTION
fprintf(stderr, "test 1\n"),
#endif
__Example2_A1);
if (E[1]) {
__Example2_A2;
#ifdef TRACE_ACTION
fprintf(stderr, "__Example2_A2\n");
#endif
}
E[2] = !(_true);
E[0] = E[0]&&!((
#ifdef TRACE_ACTION
fprintf(stderr, "test 1\n"),
#endif
__Example2_A1));
__Example2_R[1] = __Example2_R[0]||E[1]||(__Example2_R[1]&&E[0]);
E[0] = __Example2_R[1];
__Example2_R[0] = !(_true);
__Example2__reset_input();
return E[0];
}
int Example2_reset () {
__Example2_R[0] = _true;
__Example2_R[1] = _false;
__Example2__reset_input();
return 0;
}