file
stringlengths 18
26
| data
stringlengths 2
1.05M
|
---|---|
the_stack_data/79944.c | #include <stdio.h>
int main ()
{
long int a, n, s;
while (scanf("%ld", &n)==1)
{
if (n<0)
break;
else
{
s= (n*(n+1)/2)+1;
printf("%ld\n", s);
}
}
return 0;
}
|
the_stack_data/159516763.c | /*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: MCU RTC timer
License: Revised BSD License, see LICENSE.TXT file include in the project
Maintainer: Miguel Luis and Gregory Cristian
*/
/**
******************************************************************************
* @file hw_rtc.c
* @author MCD Application Team
* @brief driver for RTC
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2018 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Liberty license
* SLA0044, the "License"; You may not use this file except in compliance with
* the License. You may obtain a copy of the License at:
* www.st.com/SLA0044
*
******************************************************************************
*/
#if 0
/* Includes ------------------------------------------------------------------*/
#include <math.h>
#include <time.h>
#include "hw.h"
#include "low_power_manager.h"
#include "systime.h"
/* Private typedef -----------------------------------------------------------*/
typedef struct
{
uint32_t Rtc_Time; /* Reference time */
RTC_TimeTypeDef RTC_Calndr_Time; /* Reference time in calendar format */
RTC_DateTypeDef RTC_Calndr_Date; /* Reference date in calendar format */
} RtcTimerContext_t;
/* Private define ------------------------------------------------------------*/
/* MCU Wake Up Time */
#define MIN_ALARM_DELAY 3 /* in ticks */
/* subsecond number of bits */
#define N_PREDIV_S 10
/* Synchonuous prediv */
#define PREDIV_S ((1<<N_PREDIV_S)-1)
/* Asynchonuous prediv */
#define PREDIV_A (1<<(15-N_PREDIV_S))-1
/* Sub-second mask definition */
#define HW_RTC_ALARMSUBSECONDMASK (N_PREDIV_S<<RTC_ALRMASSR_MASKSS_Pos)
/* RTC Time base in us */
#define USEC_NUMBER 1000000
#define MSEC_NUMBER (USEC_NUMBER/1000)
#define RTC_ALARM_TIME_BASE (USEC_NUMBER>>N_PREDIV_S)
#define COMMON_FACTOR 3
#define CONV_NUMER (MSEC_NUMBER>>COMMON_FACTOR)
#define CONV_DENOM (1<<(N_PREDIV_S-COMMON_FACTOR))
#define DAYS_IN_LEAP_YEAR ( ( uint32_t ) 366U )
#define DAYS_IN_YEAR ( ( uint32_t ) 365U )
#define SECONDS_IN_1DAY ( ( uint32_t )86400U )
#define SECONDS_IN_1HOUR ( ( uint32_t ) 3600U )
#define SECONDS_IN_1MINUTE ( ( uint32_t ) 60U )
#define MINUTES_IN_1HOUR ( ( uint32_t ) 60U )
#define HOURS_IN_1DAY ( ( uint32_t ) 24U )
#define DAYS_IN_MONTH_CORRECTION_NORM ((uint32_t) 0x99AAA0 )
#define DAYS_IN_MONTH_CORRECTION_LEAP ((uint32_t) 0x445550 )
#define DIVC( X, N ) ( ( ( X ) + ( N ) -1 ) / ( N ) )
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/*!
* \brief Indicates if the RTC is already Initalized or not
*/
static bool HW_RTC_Initalized = false;
/*!
* \brief compensates MCU wakeup time
*/
static bool McuWakeUpTimeInitialized = false;
/*!
* \brief compensates MCU wakeup time
*/
static int16_t McuWakeUpTimeCal = 0;
/*!
* Number of days in each month on a normal year
*/
static const uint8_t DaysInMonth[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
/*!
* Number of days in each month on a leap year
*/
static const uint8_t DaysInMonthLeapYear[] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
static RTC_HandleTypeDef RtcHandle = {0};
static RTC_AlarmTypeDef RTC_AlarmStructure;
/*!
* Keep the value of the RTC timer when the RTC alarm is set
* Set with the HW_RTC_SetTimerContext function
* Value is kept as a Reference to calculate alarm
*/
static RtcTimerContext_t RtcTimerContext;
/* Private function prototypes -----------------------------------------------*/
static void HW_RTC_SetConfig(void);
static void HW_RTC_SetAlarmConfig(void);
static void HW_RTC_StartWakeUpAlarm(uint32_t timeoutValue);
static uint64_t HW_RTC_GetCalendarValue(RTC_DateTypeDef *RTC_DateStruct, RTC_TimeTypeDef *RTC_TimeStruct);
/* Exported functions ---------------------------------------------------------*/
/*!
* @brief Initializes the RTC timer
* @note The timer is based on the RTC
* @param none
* @retval none
*/
void HW_RTC_Init(void)
{
if (HW_RTC_Initalized == false)
{
HW_RTC_SetConfig();
HW_RTC_SetAlarmConfig();
HW_RTC_SetTimerContext();
HW_RTC_Initalized = true;
}
}
/*!
* @brief Configures the RTC timer
* @note The timer is based on the RTC
* @param none
* @retval none
*/
static void HW_RTC_SetConfig(void)
{
RTC_TimeTypeDef RTC_TimeStruct;
RTC_DateTypeDef RTC_DateStruct;
RtcHandle.Instance = RTC;
RtcHandle.Init.HourFormat = RTC_HOURFORMAT_24;
RtcHandle.Init.AsynchPrediv = PREDIV_A; /* RTC_ASYNCH_PREDIV; */
RtcHandle.Init.SynchPrediv = PREDIV_S; /* RTC_SYNCH_PREDIV; */
RtcHandle.Init.OutPut = RTC_OUTPUT;
RtcHandle.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH;
RtcHandle.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN;
HAL_RTC_Init(&RtcHandle);
/*Monday 1st January 2016*/
RTC_DateStruct.Year = 0;
RTC_DateStruct.Month = RTC_MONTH_JANUARY;
RTC_DateStruct.Date = 1;
RTC_DateStruct.WeekDay = RTC_WEEKDAY_MONDAY;
HAL_RTC_SetDate(&RtcHandle, &RTC_DateStruct, RTC_FORMAT_BIN);
/*at 0:0:0*/
RTC_TimeStruct.Hours = 0;
RTC_TimeStruct.Minutes = 0;
RTC_TimeStruct.Seconds = 0;
RTC_TimeStruct.TimeFormat = 0;
RTC_TimeStruct.SubSeconds = 0;
RTC_TimeStruct.StoreOperation = RTC_DAYLIGHTSAVING_NONE;
RTC_TimeStruct.DayLightSaving = RTC_STOREOPERATION_RESET;
HAL_RTC_SetTime(&RtcHandle, &RTC_TimeStruct, RTC_FORMAT_BIN);
/*Enable Direct Read of the calendar registers (not through Shadow) */
HAL_RTCEx_EnableBypassShadow(&RtcHandle);
}
/*!
* @brief calculates the wake up time between wake up and mcu start
* @note resulotion in RTC_ALARM_TIME_BASE in timer ticks
* @param none
* @retval none
*/
void HW_RTC_setMcuWakeUpTime(void)
{
RTC_TimeTypeDef RTC_TimeStruct;
RTC_DateTypeDef RTC_DateStruct;
TimerTime_t now, hit;
int16_t McuWakeUpTime;
if ((McuWakeUpTimeInitialized == false) &&
(HAL_NVIC_GetPendingIRQ(RTC_Alarm_IRQn) == 1))
{
/* warning: works ok if now is below 30 days
it is ok since it's done once at first alarm wake-up*/
McuWakeUpTimeInitialized = true;
now = (uint32_t) HW_RTC_GetCalendarValue(&RTC_DateStruct, &RTC_TimeStruct);
HAL_RTC_GetAlarm(&RtcHandle, &RTC_AlarmStructure, RTC_ALARM_A, RTC_FORMAT_BIN);
hit = RTC_AlarmStructure.AlarmTime.Seconds +
60 * (RTC_AlarmStructure.AlarmTime.Minutes +
60 * (RTC_AlarmStructure.AlarmTime.Hours +
24 * (RTC_AlarmStructure.AlarmDateWeekDay)));
hit = (hit << N_PREDIV_S) + (PREDIV_S - RTC_AlarmStructure.AlarmTime.SubSeconds);
McuWakeUpTime = (int16_t)((now - hit));
McuWakeUpTimeCal += McuWakeUpTime;
}
}
int16_t HW_RTC_getMcuWakeUpTime(void)
{
return McuWakeUpTimeCal;
}
/*!
* @brief returns the wake up time in ticks
* @param none
* @retval wake up time in ticks
*/
uint32_t HW_RTC_GetMinimumTimeout(void)
{
return (MIN_ALARM_DELAY);
}
/*!
* @brief converts time in ms to time in ticks
* @param [IN] time in milliseconds
* @retval returns time in timer ticks
*/
uint32_t HW_RTC_ms2Tick(TimerTime_t timeMilliSec)
{
/*return( ( timeMicroSec / RTC_ALARM_TIME_BASE ) ); */
return (uint32_t)((((uint64_t)timeMilliSec) * CONV_DENOM) / CONV_NUMER);
}
/*!
* @brief converts time in ticks to time in ms
* @param [IN] time in timer ticks
* @retval returns time in milliseconds
*/
TimerTime_t HW_RTC_Tick2ms(uint32_t tick)
{
/*return( ( timeMicroSec * RTC_ALARM_TIME_BASE ) ); */
uint32_t seconds = tick >> N_PREDIV_S;
tick = tick & PREDIV_S;
return ((seconds * 1000) + ((tick * 1000) >> N_PREDIV_S));
}
/*!
* @brief Set the alarm
* @note The alarm is set at now (read in this funtion) + timeout
* @param timeout Duration of the Timer ticks
*/
void HW_RTC_SetAlarm(uint32_t timeout)
{
/* we don't go in Low Power mode for timeout below MIN_ALARM_DELAY */
if ((MIN_ALARM_DELAY + McuWakeUpTimeCal) < ((timeout - HW_RTC_GetTimerElapsedTime())))
{
LPM_SetStopMode(LPM_RTC_Id, LPM_Enable);
}
else
{
LPM_SetStopMode(LPM_RTC_Id, LPM_Disable);
}
/*In case stop mode is required */
if (LPM_GetMode() == LPM_StopMode)
{
timeout = timeout - McuWakeUpTimeCal;
}
HW_RTC_StartWakeUpAlarm(timeout);
}
/*!
* @brief Get the RTC timer elapsed time since the last Alarm was set
* @param none
* @retval RTC Elapsed time in ticks
*/
uint32_t HW_RTC_GetTimerElapsedTime(void)
{
RTC_TimeTypeDef RTC_TimeStruct;
RTC_DateTypeDef RTC_DateStruct;
uint32_t CalendarValue = (uint32_t) HW_RTC_GetCalendarValue(&RTC_DateStruct, &RTC_TimeStruct);
return ((uint32_t)(CalendarValue - RtcTimerContext.Rtc_Time));
}
/*!
* @brief Get the RTC timer value
* @param none
* @retval RTC Timer value in ticks
*/
uint32_t HW_RTC_GetTimerValue(void)
{
RTC_TimeTypeDef RTC_TimeStruct;
RTC_DateTypeDef RTC_DateStruct;
uint32_t CalendarValue = (uint32_t) HW_RTC_GetCalendarValue(&RTC_DateStruct, &RTC_TimeStruct);
return (CalendarValue);
}
/*!
* @brief Stop the Alarm
* @param none
* @retval none
*/
void HW_RTC_StopAlarm(void)
{
/* Disable the Alarm A interrupt */
HAL_RTC_DeactivateAlarm(&RtcHandle, RTC_ALARM_A);
/* Clear RTC Alarm Flag */
__HAL_RTC_ALARM_CLEAR_FLAG(&RtcHandle, RTC_FLAG_ALRAF);
/* Clear the EXTI's line Flag for RTC Alarm */
__HAL_RTC_ALARM_EXTI_CLEAR_FLAG();
}
/*!
* @brief RTC IRQ Handler on the RTC Alarm
* @param none
* @retval none
*/
void HW_RTC_IrqHandler(void)
{
RTC_HandleTypeDef *hrtc = &RtcHandle;
/* enable low power at irq*/
LPM_SetStopMode(LPM_RTC_Id, LPM_Enable);
/* Clear the EXTI's line Flag for RTC Alarm */
__HAL_RTC_ALARM_EXTI_CLEAR_FLAG();
/* Get the AlarmA interrupt source enable status */
if (__HAL_RTC_ALARM_GET_IT_SOURCE(hrtc, RTC_IT_ALRA) != RESET)
{
/* Get the pending status of the AlarmA Interrupt */
if (__HAL_RTC_ALARM_GET_FLAG(hrtc, RTC_FLAG_ALRAF) != RESET)
{
/* Clear the AlarmA interrupt pending bit */
__HAL_RTC_ALARM_CLEAR_FLAG(hrtc, RTC_FLAG_ALRAF);
/* AlarmA callback */
HAL_RTC_AlarmAEventCallback(hrtc);
}
}
}
/*!
* @brief a delay of delay ms by polling RTC
* @param delay in ms
* @retval none
*/
void HW_RTC_DelayMs(uint32_t delay)
{
TimerTime_t delayValue = 0;
TimerTime_t timeout = 0;
delayValue = HW_RTC_ms2Tick(delay);
/* Wait delay ms */
timeout = HW_RTC_GetTimerValue();
while (((HW_RTC_GetTimerValue() - timeout)) < delayValue)
{
__NOP();
}
}
/*!
* @brief set Time Reference set also the RTC_DateStruct and RTC_TimeStruct
* @param none
* @retval Timer Value
*/
uint32_t HW_RTC_SetTimerContext(void)
{
RtcTimerContext.Rtc_Time = (uint32_t) HW_RTC_GetCalendarValue(&RtcTimerContext.RTC_Calndr_Date, &RtcTimerContext.RTC_Calndr_Time);
return (uint32_t) RtcTimerContext.Rtc_Time;
}
/*!
* @brief Get the RTC timer Reference
* @param none
* @retval Timer Value in Ticks
*/
uint32_t HW_RTC_GetTimerContext(void)
{
return RtcTimerContext.Rtc_Time;
}
/* Private functions ---------------------------------------------------------*/
/*!
* @brief configure alarm at init
* @param none
* @retval none
*/
static void HW_RTC_SetAlarmConfig(void)
{
HAL_RTC_DeactivateAlarm(&RtcHandle, RTC_ALARM_A);
}
/*!
* @brief start wake up alarm
* @note alarm in RtcTimerContext.Rtc_Time + timeoutValue
* @param timeoutValue in ticks
* @retval none
*/
static void HW_RTC_StartWakeUpAlarm(uint32_t timeoutValue)
{
uint16_t rtcAlarmSubSeconds = 0;
uint16_t rtcAlarmSeconds = 0;
uint16_t rtcAlarmMinutes = 0;
uint16_t rtcAlarmHours = 0;
uint16_t rtcAlarmDays = 0;
RTC_TimeTypeDef RTC_TimeStruct = RtcTimerContext.RTC_Calndr_Time;
RTC_DateTypeDef RTC_DateStruct = RtcTimerContext.RTC_Calndr_Date;
HW_RTC_StopAlarm();
/*reverse counter */
rtcAlarmSubSeconds = PREDIV_S - RTC_TimeStruct.SubSeconds;
rtcAlarmSubSeconds += (timeoutValue & PREDIV_S);
/* convert timeout to seconds */
timeoutValue >>= N_PREDIV_S; /* convert timeout in seconds */
/*convert microsecs to RTC format and add to 'Now' */
rtcAlarmDays = RTC_DateStruct.Date;
while (timeoutValue >= SECONDS_IN_1DAY)
{
timeoutValue -= SECONDS_IN_1DAY;
rtcAlarmDays++;
}
/* calc hours */
rtcAlarmHours = RTC_TimeStruct.Hours;
while (timeoutValue >= SECONDS_IN_1HOUR)
{
timeoutValue -= SECONDS_IN_1HOUR;
rtcAlarmHours++;
}
/* calc minutes */
rtcAlarmMinutes = RTC_TimeStruct.Minutes;
while (timeoutValue >= SECONDS_IN_1MINUTE)
{
timeoutValue -= SECONDS_IN_1MINUTE;
rtcAlarmMinutes++;
}
/* calc seconds */
rtcAlarmSeconds = RTC_TimeStruct.Seconds + timeoutValue;
/***** correct for modulo********/
while (rtcAlarmSubSeconds >= (PREDIV_S + 1))
{
rtcAlarmSubSeconds -= (PREDIV_S + 1);
rtcAlarmSeconds++;
}
while (rtcAlarmSeconds >= SECONDS_IN_1MINUTE)
{
rtcAlarmSeconds -= SECONDS_IN_1MINUTE;
rtcAlarmMinutes++;
}
while (rtcAlarmMinutes >= MINUTES_IN_1HOUR)
{
rtcAlarmMinutes -= MINUTES_IN_1HOUR;
rtcAlarmHours++;
}
while (rtcAlarmHours >= HOURS_IN_1DAY)
{
rtcAlarmHours -= HOURS_IN_1DAY;
rtcAlarmDays++;
}
if (RTC_DateStruct.Year % 4 == 0)
{
if (rtcAlarmDays > DaysInMonthLeapYear[ RTC_DateStruct.Month - 1 ])
{
rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[ RTC_DateStruct.Month - 1 ];
}
}
else
{
if (rtcAlarmDays > DaysInMonth[ RTC_DateStruct.Month - 1 ])
{
rtcAlarmDays = rtcAlarmDays % DaysInMonth[ RTC_DateStruct.Month - 1 ];
}
}
/* Set RTC_AlarmStructure with calculated values*/
RTC_AlarmStructure.AlarmTime.SubSeconds = PREDIV_S - rtcAlarmSubSeconds;
RTC_AlarmStructure.AlarmSubSecondMask = HW_RTC_ALARMSUBSECONDMASK;
RTC_AlarmStructure.AlarmTime.Seconds = rtcAlarmSeconds;
RTC_AlarmStructure.AlarmTime.Minutes = rtcAlarmMinutes;
RTC_AlarmStructure.AlarmTime.Hours = rtcAlarmHours;
RTC_AlarmStructure.AlarmDateWeekDay = (uint8_t)rtcAlarmDays;
RTC_AlarmStructure.AlarmTime.TimeFormat = RTC_TimeStruct.TimeFormat;
RTC_AlarmStructure.AlarmDateWeekDaySel = RTC_ALARMDATEWEEKDAYSEL_DATE;
RTC_AlarmStructure.AlarmMask = RTC_ALARMMASK_NONE;
RTC_AlarmStructure.Alarm = RTC_ALARM_A;
RTC_AlarmStructure.AlarmTime.DayLightSaving = RTC_DAYLIGHTSAVING_NONE;
RTC_AlarmStructure.AlarmTime.StoreOperation = RTC_STOREOPERATION_RESET;
/* Set RTC_Alarm */
HAL_RTC_SetAlarm_IT(&RtcHandle, &RTC_AlarmStructure, RTC_FORMAT_BIN);
}
/*!
* @brief get current time from calendar in ticks
* @param pointer to RTC_DateStruct
* @param pointer to RTC_TimeStruct
* @retval time in ticks
*/
static uint64_t HW_RTC_GetCalendarValue(RTC_DateTypeDef *RTC_DateStruct, RTC_TimeTypeDef *RTC_TimeStruct)
{
uint64_t calendarValue = 0;
uint32_t first_read;
uint32_t correction;
uint32_t seconds;
/* Get Time and Date*/
HAL_RTC_GetTime(&RtcHandle, RTC_TimeStruct, RTC_FORMAT_BIN);
/* make sure it is correct due to asynchronus nature of RTC*/
do
{
first_read = LL_RTC_TIME_GetSubSecond(RTC);
HAL_RTC_GetDate(&RtcHandle, RTC_DateStruct, RTC_FORMAT_BIN);
HAL_RTC_GetTime(&RtcHandle, RTC_TimeStruct, RTC_FORMAT_BIN);
}
while (first_read != LL_RTC_TIME_GetSubSecond(RTC));
/* calculte amount of elapsed days since 01/01/2000 */
seconds = DIVC((DAYS_IN_YEAR * 3 + DAYS_IN_LEAP_YEAR) * RTC_DateStruct->Year, 4);
correction = ((RTC_DateStruct->Year % 4) == 0) ? DAYS_IN_MONTH_CORRECTION_LEAP : DAYS_IN_MONTH_CORRECTION_NORM ;
seconds += (DIVC((RTC_DateStruct->Month - 1) * (30 + 31), 2) - (((correction >> ((RTC_DateStruct->Month - 1) * 2)) & 0x3)));
seconds += (RTC_DateStruct->Date - 1);
/* convert from days to seconds */
seconds *= SECONDS_IN_1DAY;
seconds += ((uint32_t)RTC_TimeStruct->Seconds +
((uint32_t)RTC_TimeStruct->Minutes * SECONDS_IN_1MINUTE) +
((uint32_t)RTC_TimeStruct->Hours * SECONDS_IN_1HOUR)) ;
calendarValue = (((uint64_t) seconds) << N_PREDIV_S) + (PREDIV_S - RTC_TimeStruct->SubSeconds);
return (calendarValue);
}
/*!
* \brief Get system time
* \param [IN] pointer to ms
*
* \return uint32_t seconds
*/
uint32_t HW_RTC_GetCalendarTime(uint16_t *mSeconds)
{
RTC_TimeTypeDef RTC_TimeStruct ;
RTC_DateTypeDef RTC_DateStruct;
uint32_t ticks;
uint64_t calendarValue = HW_RTC_GetCalendarValue(&RTC_DateStruct, &RTC_TimeStruct);
uint32_t seconds = (uint32_t)(calendarValue >> N_PREDIV_S);
ticks = (uint32_t) calendarValue & PREDIV_S;
*mSeconds = HW_RTC_Tick2ms(ticks);
return seconds;
}
void HW_RTC_BKUPWrite(uint32_t Data0, uint32_t Data1)
{
HAL_RTCEx_BKUPWrite(&RtcHandle, RTC_BKP_DR0, Data0);
HAL_RTCEx_BKUPWrite(&RtcHandle, RTC_BKP_DR1, Data1);
}
void HW_RTC_BKUPRead(uint32_t *Data0, uint32_t *Data1)
{
*Data0 = HAL_RTCEx_BKUPRead(&RtcHandle, RTC_BKP_DR0);
*Data1 = HAL_RTCEx_BKUPRead(&RtcHandle, RTC_BKP_DR1);
}
TimerTime_t RtcTempCompensation(TimerTime_t period, float temperature)
{
float k = RTC_TEMP_COEFFICIENT;
float kDev = RTC_TEMP_DEV_COEFFICIENT;
float t = RTC_TEMP_TURNOVER;
float tDev = RTC_TEMP_DEV_TURNOVER;
float interim = 0.0;
float ppm = 0.0;
if (k < 0.0f)
{
ppm = (k - kDev);
}
else
{
ppm = (k + kDev);
}
interim = (temperature - (t - tDev));
ppm *= interim * interim;
// Calculate the drift in time
interim = ((float) period * ppm) / 1000000;
// Calculate the resulting time period
interim += period;
interim = floor(interim);
if (interim < 0.0f)
{
interim = (float)period;
}
// Calculate the resulting period
return (TimerTime_t) interim;
}
#endif
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
the_stack_data/242331061.c | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
void __VERIFIER_assert(int expression) { if (!expression) { ERROR: /* assert not proved */
__VERIFIER_error(); }; return; }
int __global_lock;
void __VERIFIER_atomic_begin() { /* reachable */
/* reachable */
/* reachable */
/* reachable */
/* reachable */
/* reachable */
/* reachable */
/* reachable */
__VERIFIER_assume(__global_lock==0); __global_lock=1; return; }
void __VERIFIER_atomic_end() { __VERIFIER_assume(__global_lock==1); __global_lock=0; return; }
#include "assert.h"
#include "pthread.h"
#ifndef TRUE
#define TRUE (_Bool)1
#endif
#ifndef FALSE
#define FALSE (_Bool)0
#endif
#ifndef NULL
#define NULL ((void*)0)
#endif
#ifndef FENCE
#define FENCE(x) ((void)0)
#endif
#ifndef IEEE_FLOAT_EQUAL
#define IEEE_FLOAT_EQUAL(x,y) (x==y)
#endif
#ifndef IEEE_FLOAT_NOTEQUAL
#define IEEE_FLOAT_NOTEQUAL(x,y) (x!=y)
#endif
void * P0(void *arg);
void * P1(void *arg);
void * P2(void *arg);
void * P3(void *arg);
void fence();
void isync();
void lwfence();
int __unbuffered_cnt;
int __unbuffered_cnt = 0;
int __unbuffered_p0_EAX;
int __unbuffered_p0_EAX = 0;
_Bool __unbuffered_p0_EAX$flush_delayed;
int __unbuffered_p0_EAX$mem_tmp;
_Bool __unbuffered_p0_EAX$r_buff0_thd0;
_Bool __unbuffered_p0_EAX$r_buff0_thd1;
_Bool __unbuffered_p0_EAX$r_buff0_thd2;
_Bool __unbuffered_p0_EAX$r_buff0_thd3;
_Bool __unbuffered_p0_EAX$r_buff0_thd4;
_Bool __unbuffered_p0_EAX$r_buff1_thd0;
_Bool __unbuffered_p0_EAX$r_buff1_thd1;
_Bool __unbuffered_p0_EAX$r_buff1_thd2;
_Bool __unbuffered_p0_EAX$r_buff1_thd3;
_Bool __unbuffered_p0_EAX$r_buff1_thd4;
_Bool __unbuffered_p0_EAX$read_delayed;
int *__unbuffered_p0_EAX$read_delayed_var;
int __unbuffered_p0_EAX$w_buff0;
_Bool __unbuffered_p0_EAX$w_buff0_used;
int __unbuffered_p0_EAX$w_buff1;
_Bool __unbuffered_p0_EAX$w_buff1_used;
int __unbuffered_p0_EBX;
int __unbuffered_p0_EBX = 0;
int __unbuffered_p2_EAX;
int __unbuffered_p2_EAX = 0;
int __unbuffered_p2_EBX;
int __unbuffered_p2_EBX = 0;
_Bool main$tmp_guard0;
_Bool main$tmp_guard1;
int x;
int x = 0;
int y;
int y = 0;
_Bool y$flush_delayed;
int y$mem_tmp;
_Bool y$r_buff0_thd0;
_Bool y$r_buff0_thd1;
_Bool y$r_buff0_thd2;
_Bool y$r_buff0_thd3;
_Bool y$r_buff0_thd4;
_Bool y$r_buff1_thd0;
_Bool y$r_buff1_thd1;
_Bool y$r_buff1_thd2;
_Bool y$r_buff1_thd3;
_Bool y$r_buff1_thd4;
_Bool y$read_delayed;
int *y$read_delayed_var;
int y$w_buff0;
_Bool y$w_buff0_used;
int y$w_buff1;
_Bool y$w_buff1_used;
_Bool weak$$choice0;
_Bool weak$$choice1;
_Bool weak$$choice2;
void * P0(void *arg)
{
__VERIFIER_atomic_begin();
weak$$choice0 = nondet_0();
weak$$choice2 = nondet_0();
y$flush_delayed = weak$$choice2;
y$mem_tmp = y;
weak$$choice1 = nondet_0();
y = !y$w_buff0_used ? y : (y$w_buff0_used && y$r_buff0_thd1 ? y$w_buff0 : (y$w_buff0_used && !y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? (weak$$choice0 ? y : (weak$$choice1 ? y$w_buff0 : y$w_buff1)) : (y$w_buff0_used && y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? (weak$$choice0 ? y$w_buff1 : y$w_buff0) : (weak$$choice0 ? y$w_buff0 : y))));
y$w_buff0 = weak$$choice2 ? y$w_buff0 : (!y$w_buff0_used ? y$w_buff0 : (y$w_buff0_used && y$r_buff0_thd1 ? y$w_buff0 : (y$w_buff0_used && !y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? y$w_buff0 : (y$w_buff0_used && y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? y$w_buff0 : y$w_buff0))));
y$w_buff1 = weak$$choice2 ? y$w_buff1 : (!y$w_buff0_used ? y$w_buff1 : (y$w_buff0_used && y$r_buff0_thd1 ? y$w_buff1 : (y$w_buff0_used && !y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? y$w_buff1 : (y$w_buff0_used && y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? y$w_buff1 : y$w_buff1))));
y$w_buff0_used = weak$$choice2 ? y$w_buff0_used : (!y$w_buff0_used ? y$w_buff0_used : (y$w_buff0_used && y$r_buff0_thd1 ? FALSE : (y$w_buff0_used && !y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? weak$$choice0 || !weak$$choice1 : (y$w_buff0_used && y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? weak$$choice0 : weak$$choice0))));
y$w_buff1_used = weak$$choice2 ? y$w_buff1_used : (!y$w_buff0_used ? y$w_buff1_used : (y$w_buff0_used && y$r_buff0_thd1 ? FALSE : (y$w_buff0_used && !y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? weak$$choice0 : (y$w_buff0_used && y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? FALSE : FALSE))));
y$r_buff0_thd1 = weak$$choice2 ? y$r_buff0_thd1 : (!y$w_buff0_used ? y$r_buff0_thd1 : (y$w_buff0_used && y$r_buff0_thd1 ? FALSE : (y$w_buff0_used && !y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? y$r_buff0_thd1 : (y$w_buff0_used && y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? FALSE : FALSE))));
y$r_buff1_thd1 = weak$$choice2 ? y$r_buff1_thd1 : (!y$w_buff0_used ? y$r_buff1_thd1 : (y$w_buff0_used && y$r_buff0_thd1 ? FALSE : (y$w_buff0_used && !y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? (weak$$choice0 ? y$r_buff1_thd1 : FALSE) : (y$w_buff0_used && y$r_buff1_thd1 && y$w_buff1_used && !y$r_buff0_thd1 ? FALSE : FALSE))));
__unbuffered_p0_EAX$read_delayed = TRUE;
__unbuffered_p0_EAX$read_delayed_var = &y;
__unbuffered_p0_EAX = y;
y = y$flush_delayed ? y$mem_tmp : y;
y$flush_delayed = FALSE;
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
__unbuffered_p0_EBX = x;
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
__unbuffered_cnt = __unbuffered_cnt + 1;
__VERIFIER_atomic_end();
return nondet_1();
}
void * P1(void *arg)
{
__VERIFIER_atomic_begin();
x = 1;
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
__unbuffered_cnt = __unbuffered_cnt + 1;
__VERIFIER_atomic_end();
return nondet_1();
}
void * P2(void *arg)
{
__VERIFIER_atomic_begin();
__unbuffered_p2_EAX = x;
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
weak$$choice0 = nondet_0();
weak$$choice2 = nondet_0();
y$flush_delayed = weak$$choice2;
y$mem_tmp = y;
y = !y$w_buff0_used || !y$r_buff0_thd3 && !y$w_buff1_used || !y$r_buff0_thd3 && !y$r_buff1_thd3 ? y : (y$w_buff0_used && y$r_buff0_thd3 ? y$w_buff0 : y$w_buff1);
y$w_buff0 = weak$$choice2 ? y$w_buff0 : (!y$w_buff0_used || !y$r_buff0_thd3 && !y$w_buff1_used || !y$r_buff0_thd3 && !y$r_buff1_thd3 ? y$w_buff0 : (y$w_buff0_used && y$r_buff0_thd3 ? y$w_buff0 : y$w_buff0));
y$w_buff1 = weak$$choice2 ? y$w_buff1 : (!y$w_buff0_used || !y$r_buff0_thd3 && !y$w_buff1_used || !y$r_buff0_thd3 && !y$r_buff1_thd3 ? y$w_buff1 : (y$w_buff0_used && y$r_buff0_thd3 ? y$w_buff1 : y$w_buff1));
y$w_buff0_used = weak$$choice2 ? y$w_buff0_used : (!y$w_buff0_used || !y$r_buff0_thd3 && !y$w_buff1_used || !y$r_buff0_thd3 && !y$r_buff1_thd3 ? y$w_buff0_used : (y$w_buff0_used && y$r_buff0_thd3 ? FALSE : y$w_buff0_used));
y$w_buff1_used = weak$$choice2 ? y$w_buff1_used : (!y$w_buff0_used || !y$r_buff0_thd3 && !y$w_buff1_used || !y$r_buff0_thd3 && !y$r_buff1_thd3 ? y$w_buff1_used : (y$w_buff0_used && y$r_buff0_thd3 ? FALSE : FALSE));
y$r_buff0_thd3 = weak$$choice2 ? y$r_buff0_thd3 : (!y$w_buff0_used || !y$r_buff0_thd3 && !y$w_buff1_used || !y$r_buff0_thd3 && !y$r_buff1_thd3 ? y$r_buff0_thd3 : (y$w_buff0_used && y$r_buff0_thd3 ? FALSE : y$r_buff0_thd3));
y$r_buff1_thd3 = weak$$choice2 ? y$r_buff1_thd3 : (!y$w_buff0_used || !y$r_buff0_thd3 && !y$w_buff1_used || !y$r_buff0_thd3 && !y$r_buff1_thd3 ? y$r_buff1_thd3 : (y$w_buff0_used && y$r_buff0_thd3 ? FALSE : FALSE));
__unbuffered_p2_EBX = y;
y = y$flush_delayed ? y$mem_tmp : y;
y$flush_delayed = FALSE;
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
__unbuffered_cnt = __unbuffered_cnt + 1;
__VERIFIER_atomic_end();
return nondet_1();
}
void * P3(void *arg)
{
__VERIFIER_atomic_begin();
y = 1;
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
y = y$w_buff0_used && y$r_buff0_thd4 ? y$w_buff0 : (y$w_buff1_used && y$r_buff1_thd4 ? y$w_buff1 : y);
y$w_buff0_used = y$w_buff0_used && y$r_buff0_thd4 ? FALSE : y$w_buff0_used;
y$w_buff1_used = y$w_buff0_used && y$r_buff0_thd4 || y$w_buff1_used && y$r_buff1_thd4 ? FALSE : y$w_buff1_used;
y$r_buff0_thd4 = y$w_buff0_used && y$r_buff0_thd4 ? FALSE : y$r_buff0_thd4;
y$r_buff1_thd4 = y$w_buff0_used && y$r_buff0_thd4 || y$w_buff1_used && y$r_buff1_thd4 ? FALSE : y$r_buff1_thd4;
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
__unbuffered_cnt = __unbuffered_cnt + 1;
__VERIFIER_atomic_end();
return nondet_1();
}
void fence()
{
}
void isync()
{
}
void lwfence()
{
}
int main()
{
pthread_create(NULL, NULL, P0, NULL);
pthread_create(NULL, NULL, P1, NULL);
pthread_create(NULL, NULL, P2, NULL);
pthread_create(NULL, NULL, P3, NULL);
__VERIFIER_atomic_begin();
main$tmp_guard0 = __unbuffered_cnt == 4;
__VERIFIER_atomic_end();
__VERIFIER_assume(main$tmp_guard0);
__VERIFIER_atomic_begin();
y = y$w_buff0_used && y$r_buff0_thd0 ? y$w_buff0 : (y$w_buff1_used && y$r_buff1_thd0 ? y$w_buff1 : y);
y$w_buff0_used = y$w_buff0_used && y$r_buff0_thd0 ? FALSE : y$w_buff0_used;
y$w_buff1_used = y$w_buff0_used && y$r_buff0_thd0 || y$w_buff1_used && y$r_buff1_thd0 ? FALSE : y$w_buff1_used;
y$r_buff0_thd0 = y$w_buff0_used && y$r_buff0_thd0 ? FALSE : y$r_buff0_thd0;
y$r_buff1_thd0 = y$w_buff0_used && y$r_buff0_thd0 || y$w_buff1_used && y$r_buff1_thd0 ? FALSE : y$r_buff1_thd0;
__VERIFIER_atomic_end();
__VERIFIER_atomic_begin();
/* Program was expected to be safe for X86, model checker should have said NO.
This likely is a bug in the tool chain. */
weak$$choice1 = nondet_0();
/* Program was expected to be safe for X86, model checker should have said NO.
This likely is a bug in the tool chain. */
__unbuffered_p0_EAX = __unbuffered_p0_EAX$read_delayed ? (weak$$choice1 ? *__unbuffered_p0_EAX$read_delayed_var : __unbuffered_p0_EAX) : __unbuffered_p0_EAX;
/* Program was expected to be safe for X86, model checker should have said NO.
This likely is a bug in the tool chain. */
main$tmp_guard1 = !(__unbuffered_p0_EAX == 1 && __unbuffered_p0_EBX == 0 && __unbuffered_p2_EAX == 1 && __unbuffered_p2_EBX == 0);
__VERIFIER_atomic_end();
/* Program was expected to be safe for X86, model checker should have said NO.
This likely is a bug in the tool chain. */
__VERIFIER_assert(main$tmp_guard1);
/* reachable */
return 0;
}
|
the_stack_data/11306.c | // @2
// @3
// @0
|
the_stack_data/36440.c | #include <stdio.h>
int main()
{
int binary[8];
int d = 10;
for (int i = 0; i < 8; i++) { // loop over each number in the array of bits
int shift = (d >> i) ;
binary[i] = (char)(d >> i) & 1; //
printf("%d %d\n", shift, binary[i]);
}
// for (int i = 0; i < 8; i++){
// printf("%d", binary[i]);
// }
printf("\n");
printf("%d", 250 & 1);
return 0;
} |
the_stack_data/140765642.c | #include <sys/socket.h>
#include <netinet/in.h>
#define SERV_PORT 22222
#define MAXLINE 80
void process(int sockfd, struct sockaddr *pcliaddr, socklen_t clilen);
int
main(int argc, char **argv)
{
int sockfd;
struct sockaddr_in servaddr, cliaddr;
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
bzero(&servaddr, sizeof(servaddr));
servaddr.sin_family = AF_INET;
servaddr.sin_addr.s_addr = htonl(INADDR_ANY);
servaddr.sin_port = htons(SERV_PORT);
bind(sockfd, (struct sockaddr *) &servaddr, sizeof(servaddr));
process(sockfd, (struct sockaddr *) &cliaddr, sizeof(cliaddr));
}
void
process(int sockfd, struct sockaddr *pcliaddr, socklen_t clilen)
{
socklen_t len;
char mesg[MAXLINE];
for ( ; ; ) {
len = clilen;
recvfrom(sockfd, mesg, MAXLINE, 0, pcliaddr, &len);
printf ("Client says: %s", mesg) ;
}
}
|
the_stack_data/154828990.c | /*
* stdinredir2.c: use open-close-dup-close to redirect stdin to a file
*/
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
int main() {
int fd = open("/etc/passwd", O_RDONLY);
assert(fd != -1);
assert(close(0) == 0);
assert(dup(fd) == 0); // we need the new file descriptor to be 0
assert(close(fd) == 0);
char buf[101] = {'\0'};
fgets(buf, 100, stdin);
printf("%s\n", buf);
return 0;
}
|
the_stack_data/599213.c | #include<stdio.h>
#include<pthread.h>
#include<semaphore.h>
int buf[5],f,r;
sem_t mutex,full,empty;
void *produce(void *arg)
{
int i;
for(i=0;i<10;i++)
{int temp;
sem_wait(&empty);
sem_wait(&mutex);
printf("produced item is %d\n",i);
buf[(++r)%5]=i;
sleep(1);
sem_post(&mutex);
sem_post(&full);
sem_getvalue(&full,&temp);
printf("producer : full %u\n",temp);
}
}
void *consume(void *arg)
{
int item,i;
for(i=0;i<10;i++)
{int temp;
sem_wait(&full);
sem_getvalue(&full,&temp);
printf("consumer : full %u\n",temp);
sem_wait(&mutex);
item=buf[(++f)%5];
printf("consumed item is %d\n",item);
sleep(1);
sem_post(&mutex);
sem_post(&empty);
}
}
void main()
{
pthread_t tid1,tid2;
sem_init(&mutex,0,1);
sem_init(&full,0,1);
sem_init(&empty,0,5);
pthread_create(&tid1,NULL,produce,NULL);
pthread_create(&tid2,NULL,consume,NULL);
pthread_join(tid1,NULL);
pthread_join(tid2,NULL);
}
|
the_stack_data/140766899.c | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
int main(void) {
const long n = 2000000;
const float pi = 3.14159265358979323846264338327950288419716939937510;
float* rand_number = malloc(n * sizeof(float));
clock_t t1, t2, t2a, t2b, t3, t4;
srand(time(0)); // 0 -> NULL
t1 = clock();
long i = 0;
while (i < n) {
float r1 = rand() / (float) RAND_MAX;
float r2 = rand() / (float) RAND_MAX;
if (r2 < asin(sqrt(r1)) / (pi / 2)) {
rand_number[i] = r1;
i += 1;
}
}
t2 = clock();
// generation with use of ternary operator, this method generates
// approximately n random number and uses them 'in place'
float tsum = 0;
const long m = n * 2; // int_0^1 asin(sqrt(x)) dx = 1 / 2
i = 0;
for (i = 0; i < m; i += 1) {
float r1 = rand() / (float) RAND_MAX;
float r2 = rand() / (float) RAND_MAX;
tsum += r2 < asin(sqrt(r1)) / (pi / 2) ? r1 : 0;
}
//
t2a = clock();
FILE * f = fopen("generated_rand_numbers", "w+");
for (i = 0; i < n; i += 1)
fprintf(f, "%f\n", rand_number[i]);
fclose(f);
t3 = clock();
f = fopen("generated_rand_numbers", "r");
float sum = 0;
for (i = 0; i < n; i += 1) {
float a;
fscanf(f, "%f", &a);
sum += a;
}
fclose(f);
t4 = clock();
free(rand_number);
puts("io.c");
printf("result = %f\n", sum / n);
printf("generation took = %f s\n", (t2 - t1) / (float) CLOCKS_PER_SEC);
printf("\"ternary\" result = %f\n", tsum / n);
printf("\"ternary\" generation took = %f s\n", (t2a - t2) / (float)
CLOCKS_PER_SEC);
printf("o time = %f s\n", (t3 - t2b) / (float) CLOCKS_PER_SEC);
printf("i time = %f s\n", (t4 - t3) / (float) CLOCKS_PER_SEC);
return EXIT_SUCCESS;
}
|
the_stack_data/4256.c | // RUN: %clang_cc1 -triple x86_64-darwin-apple -emit-llvm %s -o - | FileCheck %s
// PR6695
// CHECK: define{{.*}} void @test0(i32* %{{.*}}, i32 %{{.*}})
void test0(int *x, int y) {
}
// CHECK: define{{.*}} void @test1(i32* noalias %{{.*}}, i32 %{{.*}})
void test1(int * restrict x, int y) {
}
// CHECK: define{{.*}} void @test2(i32* %{{.*}}, i32* noalias %{{.*}})
void test2(int *x, int * restrict y) {
}
typedef int * restrict rp;
// CHECK: define{{.*}} void @test3(i32* noalias %{{.*}}, i32 %{{.*}})
void test3(rp x, int y) {
}
// CHECK: define{{.*}} void @test4(i32* %{{.*}}, i32* noalias %{{.*}})
void test4(int *x, rp y) {
}
|
the_stack_data/774550.c | int main()
{
printf("%s\n",mx_nbr_to_hex(1000));
return 0;
}
|
the_stack_data/68886455.c | #include <sys/types.h>
#include <pwd.h>
#include <unistd.h>
#include <grp.h>
#include <stdio.h>
#include <stdlib.h>
static int prot_gid(gid_t gid)
{
if (setgroups(1,&gid) == -1) return -1;
return setgid(gid); /* _should_ be redundant, but on some systems it isn't */
}
const char *account;
struct passwd *pw;
int main(int argc, char **argv, char **envp)
{
account = *++argv;
if (!account || !*++argv) {
fprintf(stderr, "setuidgids: usage: setuidgids account child");
exit(EXIT_FAILURE);
}
pw = getpwnam(account);
if (!pw) {
fprintf(stderr, "setuidgids: FATAL: unknown account %s", account);
return EXIT_FAILURE;
}
if (prot_gid(pw->pw_gid) == -1) {
fprintf(stderr, "setuidgids: FATAL: unable to setgid\n");
return EXIT_FAILURE;
}
if (initgroups(pw->pw_name, pw->pw_gid) == -1) {
fprintf(stderr, "setuidgids: FATAL: unable to initgroups\n");
return EXIT_FAILURE;
}
if (setuid(pw->pw_uid) == -1) {
fprintf(stderr, "setuidgids: FATAL: unable to setuid\n");
return EXIT_FAILURE;
}
execvpe(*argv,argv,envp);
fprintf(stderr, "setuidgids: FATAL: unable to run %s\n", *argv);
return EXIT_FAILURE;
}
|
the_stack_data/34913.c |
/*
* -----------------------------------
* | Pedro Daniel Jardim |
* | UFV |
* | 01/03/2020 |
* ----------------------------------
*
*/
#include <stdio.h>
int main(int argc, char **argv)
{
int n, h, d, g;
scanf("%d", &n);
for (int i = 0 ; i < n; ++i)
{
scanf("%d %d %d", &h, &d, &g);
if (h >= 200 && h <= 300)
if (d >= 50)
if (g >= 150)
{
puts("Sim");
continue;
}
puts("Nao");
}
return 0;
}
|
the_stack_data/155568.c | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2014 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer. Redistributions
in binary form must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution. Neither the name of
the Intel Corporation nor the names of its contributors may be used to
endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE INTEL OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
END_LEGAL */
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <pthread.h>
int main()
{
pid_t child_id = fork();
if (child_id == 0)
{
printf("APPLICATION: After fork in child\n");
}
else
{
printf("APPLICATION: After fork in parent\n");
}
wait(0);
return 0;
}
|
the_stack_data/72013302.c | /*-
* Copyright (c) 1991 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)frexp.c 5.1 (Berkeley) 3/7/91";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <math.h>
double
frexp(value, eptr)
double value;
int *eptr;
{
union {
double v;
struct {
u_int u_mant2 : 32;
u_int u_mant1 : 20;
u_int u_exp : 11;
u_int u_sign : 1;
} s;
} u;
if (value) {
u.v = value;
*eptr = u.s.u_exp - 1022;
u.s.u_exp = 1022;
return(u.v);
} else {
*eptr = 0;
return((double)0);
}
}
|
the_stack_data/165766476.c | // Test needle overflow in strcasestr function
// RUN: %clang_asan %s -o %t && %env_asan_opts=strict_string_checks=true not %run %t 2>&1 | FileCheck %s
// Test intercept_strstr asan option
// Disable other interceptors because strlen may be called inside strcasestr
// RUN: %env_asan_opts=intercept_strstr=false:replace_str=false %run %t 2>&1
// There's no interceptor for strcasestr on Windows
// XFAIL: win32
#define _GNU_SOURCE
#include <assert.h>
#include <string.h>
#include <sanitizer/asan_interface.h>
int main(int argc, char **argv) {
char *r = 0;
char s1[] = "ab";
char s2[4] = "cba";
__asan_poison_memory_region ((char *)&s2[2], 2);
r = strcasestr(s1, s2);
assert(r == 0);
// CHECK:'s2' <== Memory access at offset {{[0-9]+}} partially overflows this variable
return 0;
}
|
the_stack_data/57949235.c | /* { dg-additional-options "-w" } */
#include <assert.h>
/* Test of reduction on parallel directive. */
#define ACTUAL_GANGS 256
int
main (int argc, char *argv[])
{
int res, res1 = 0, res2 = 0;
#if defined(ACC_DEVICE_TYPE_host)
# define GANGS 1
#else
# define GANGS 256
#endif
#pragma acc parallel num_gangs(GANGS) num_workers(32) vector_length(32) \
reduction(+:res1) copy(res2, res1)
{
res1 += 5;
#pragma acc atomic
res2 += 5;
}
res = GANGS * 5;
assert (res == res1);
assert (res == res2);
#undef GANGS
res = res1 = res2 = 1;
#if defined(ACC_DEVICE_TYPE_host)
# define GANGS 1
#else
# define GANGS 8
#endif
#pragma acc parallel num_gangs(GANGS) num_workers(32) vector_length(32) \
reduction(*:res1) copy(res1, res2)
{
res1 *= 5;
#pragma acc atomic
res2 *= 5;
}
for (int i = 0; i < GANGS; ++i)
res *= 5;
assert (res == res1);
assert (res == res2);
#undef GANGS
return 0;
}
|
the_stack_data/70449732.c | // KMSAN: uninit-value in ip_tunnel_xmit
// https://syzkaller.appspot.com/bug?id=f62d236e2fceaeb104f4e8f77d2324ef9da4b41b
// status:fixed
// autogenerated by syzkaller (http://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <endian.h>
#include <errno.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/if.h>
#include <linux/if_ether.h>
#include <linux/if_tun.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <net/if_arp.h>
#include <sched.h>
#include <signal.h>
#include <stdarg.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/prctl.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/wait.h>
#include <unistd.h>
__attribute__((noreturn)) static void doexit(int status)
{
volatile unsigned i;
syscall(__NR_exit_group, status);
for (i = 0;; i++) {
}
}
#include <errno.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
const int kFailStatus = 67;
const int kRetryStatus = 69;
static void fail(const char* msg, ...)
{
int e = errno;
va_list args;
va_start(args, msg);
vfprintf(stderr, msg, args);
va_end(args);
fprintf(stderr, " (errno %d)\n", e);
doexit((e == ENOMEM || e == EAGAIN) ? kRetryStatus : kFailStatus);
}
static void vsnprintf_check(char* str, size_t size, const char* format,
va_list args)
{
int rv;
rv = vsnprintf(str, size, format, args);
if (rv < 0)
fail("tun: snprintf failed");
if ((size_t)rv >= size)
fail("tun: string '%s...' doesn't fit into buffer", str);
}
static void snprintf_check(char* str, size_t size, const char* format, ...)
{
va_list args;
va_start(args, format);
vsnprintf_check(str, size, format, args);
va_end(args);
}
#define COMMAND_MAX_LEN 128
#define PATH_PREFIX \
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin "
#define PATH_PREFIX_LEN (sizeof(PATH_PREFIX) - 1)
static void execute_command(bool panic, const char* format, ...)
{
va_list args;
char command[PATH_PREFIX_LEN + COMMAND_MAX_LEN];
int rv;
va_start(args, format);
memcpy(command, PATH_PREFIX, PATH_PREFIX_LEN);
vsnprintf_check(command + PATH_PREFIX_LEN, COMMAND_MAX_LEN, format, args);
va_end(args);
rv = system(command);
if (rv) {
if (panic)
fail("command '%s' failed: %d", &command[0], rv);
}
}
static int tunfd = -1;
static int tun_frags_enabled;
#define SYZ_TUN_MAX_PACKET_SIZE 1000
#define TUN_IFACE "syz_tun"
#define LOCAL_MAC "aa:aa:aa:aa:aa:aa"
#define REMOTE_MAC "aa:aa:aa:aa:aa:bb"
#define LOCAL_IPV4 "172.20.20.170"
#define REMOTE_IPV4 "172.20.20.187"
#define LOCAL_IPV6 "fe80::aa"
#define REMOTE_IPV6 "fe80::bb"
#define IFF_NAPI 0x0010
#define IFF_NAPI_FRAGS 0x0020
static void initialize_tun(void)
{
tunfd = open("/dev/net/tun", O_RDWR | O_NONBLOCK);
if (tunfd == -1) {
printf("tun: can't open /dev/net/tun: please enable CONFIG_TUN=y\n");
printf("otherwise fuzzing or reproducing might not work as intended\n");
return;
}
const int kTunFd = 252;
if (dup2(tunfd, kTunFd) < 0)
fail("dup2(tunfd, kTunFd) failed");
close(tunfd);
tunfd = kTunFd;
struct ifreq ifr;
memset(&ifr, 0, sizeof(ifr));
strncpy(ifr.ifr_name, TUN_IFACE, IFNAMSIZ);
ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_NAPI | IFF_NAPI_FRAGS;
if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0) {
ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
if (ioctl(tunfd, TUNSETIFF, (void*)&ifr) < 0)
fail("tun: ioctl(TUNSETIFF) failed");
}
if (ioctl(tunfd, TUNGETIFF, (void*)&ifr) < 0)
fail("tun: ioctl(TUNGETIFF) failed");
tun_frags_enabled = (ifr.ifr_flags & IFF_NAPI_FRAGS) != 0;
execute_command(1, "sysctl -w net.ipv6.conf.%s.accept_dad=0", TUN_IFACE);
execute_command(1, "sysctl -w net.ipv6.conf.%s.router_solicitations=0",
TUN_IFACE);
execute_command(1, "ip link set dev %s address %s", TUN_IFACE, LOCAL_MAC);
execute_command(1, "ip addr add %s/24 dev %s", LOCAL_IPV4, TUN_IFACE);
execute_command(1, "ip -6 addr add %s/120 dev %s", LOCAL_IPV6, TUN_IFACE);
execute_command(1, "ip neigh add %s lladdr %s dev %s nud permanent",
REMOTE_IPV4, REMOTE_MAC, TUN_IFACE);
execute_command(1, "ip -6 neigh add %s lladdr %s dev %s nud permanent",
REMOTE_IPV6, REMOTE_MAC, TUN_IFACE);
execute_command(1, "ip link set dev %s up", TUN_IFACE);
}
#define DEV_IPV4 "172.20.20.%d"
#define DEV_IPV6 "fe80::%02hx"
#define DEV_MAC "aa:aa:aa:aa:aa:%02hx"
static void initialize_netdevices(void)
{
unsigned i;
const char* devtypes[] = {"ip6gretap", "bridge", "vcan", "bond", "team"};
const char* devnames[] = {"lo",
"sit0",
"bridge0",
"vcan0",
"tunl0",
"gre0",
"gretap0",
"ip_vti0",
"ip6_vti0",
"ip6tnl0",
"ip6gre0",
"ip6gretap0",
"erspan0",
"bond0",
"veth0",
"veth1",
"team0",
"veth0_to_bridge",
"veth1_to_bridge",
"veth0_to_bond",
"veth1_to_bond",
"veth0_to_team",
"veth1_to_team"};
const char* devmasters[] = {"bridge", "bond", "team"};
for (i = 0; i < sizeof(devtypes) / (sizeof(devtypes[0])); i++)
execute_command(0, "ip link add dev %s0 type %s", devtypes[i], devtypes[i]);
execute_command(0, "ip link add type veth");
for (i = 0; i < sizeof(devmasters) / (sizeof(devmasters[0])); i++) {
execute_command(
0, "ip link add name %s_slave_0 type veth peer name veth0_to_%s",
devmasters[i], devmasters[i]);
execute_command(
0, "ip link add name %s_slave_1 type veth peer name veth1_to_%s",
devmasters[i], devmasters[i]);
execute_command(0, "ip link set %s_slave_0 master %s0", devmasters[i],
devmasters[i]);
execute_command(0, "ip link set %s_slave_1 master %s0", devmasters[i],
devmasters[i]);
execute_command(0, "ip link set veth0_to_%s up", devmasters[i]);
execute_command(0, "ip link set veth1_to_%s up", devmasters[i]);
}
execute_command(0, "ip link set bridge_slave_0 up");
execute_command(0, "ip link set bridge_slave_1 up");
for (i = 0; i < sizeof(devnames) / (sizeof(devnames[0])); i++) {
char addr[32];
snprintf_check(addr, sizeof(addr), DEV_IPV4, i + 10);
execute_command(0, "ip -4 addr add %s/24 dev %s", addr, devnames[i]);
snprintf_check(addr, sizeof(addr), DEV_IPV6, i + 10);
execute_command(0, "ip -6 addr add %s/120 dev %s", addr, devnames[i]);
snprintf_check(addr, sizeof(addr), DEV_MAC, i + 10);
execute_command(0, "ip link set dev %s address %s", devnames[i], addr);
execute_command(0, "ip link set dev %s up", devnames[i]);
}
}
static void loop();
static void sandbox_common()
{
prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0);
setpgrp();
setsid();
struct rlimit rlim;
rlim.rlim_cur = rlim.rlim_max = 160 << 20;
setrlimit(RLIMIT_AS, &rlim);
rlim.rlim_cur = rlim.rlim_max = 8 << 20;
setrlimit(RLIMIT_MEMLOCK, &rlim);
rlim.rlim_cur = rlim.rlim_max = 136 << 20;
setrlimit(RLIMIT_FSIZE, &rlim);
rlim.rlim_cur = rlim.rlim_max = 1 << 20;
setrlimit(RLIMIT_STACK, &rlim);
rlim.rlim_cur = rlim.rlim_max = 0;
setrlimit(RLIMIT_CORE, &rlim);
if (unshare(CLONE_NEWNS)) {
}
if (unshare(CLONE_NEWIPC)) {
}
if (unshare(0x02000000)) {
}
if (unshare(CLONE_NEWUTS)) {
}
if (unshare(CLONE_SYSVSEM)) {
}
}
static int do_sandbox_none(void)
{
if (unshare(CLONE_NEWPID)) {
}
int pid = fork();
if (pid < 0)
fail("sandbox fork failed");
if (pid)
return pid;
sandbox_common();
if (unshare(CLONE_NEWNET)) {
}
initialize_tun();
initialize_netdevices();
loop();
doexit(1);
}
uint64_t r[1] = {0xffffffffffffffff};
void loop()
{
long res = 0;
res = syscall(__NR_socket, 0x11, 3, 0x300);
if (res != -1)
r[0] = res;
*(uint64_t*)0x20003a80 = 0x20000140;
*(uint16_t*)0x20000140 = 0xa;
*(uint16_t*)0x20000142 = htobe16(0);
*(uint32_t*)0x20000144 = 3;
*(uint8_t*)0x20000148 = 0xfe;
*(uint8_t*)0x20000149 = 0x80;
*(uint8_t*)0x2000014a = 0;
*(uint8_t*)0x2000014b = 0;
*(uint8_t*)0x2000014c = 0;
*(uint8_t*)0x2000014d = 0;
*(uint8_t*)0x2000014e = 0;
*(uint8_t*)0x2000014f = 0;
*(uint8_t*)0x20000150 = 0;
*(uint8_t*)0x20000151 = 0;
*(uint8_t*)0x20000152 = 0;
*(uint8_t*)0x20000153 = 0;
*(uint8_t*)0x20000154 = 0;
*(uint8_t*)0x20000155 = 0;
*(uint8_t*)0x20000156 = 0;
*(uint8_t*)0x20000157 = 0;
*(uint32_t*)0x20000158 = 0;
*(uint32_t*)0x20003a88 = 0x80;
*(uint64_t*)0x20003a90 = 0x200000c0;
*(uint64_t*)0x200000c0 = 0x200001c0;
*(uint64_t*)0x200000c8 = 0;
*(uint64_t*)0x20003a98 = 1;
*(uint64_t*)0x20003aa0 = 0;
*(uint64_t*)0x20003aa8 = 0;
*(uint32_t*)0x20003ab0 = 0;
*(uint32_t*)0x20003ab8 = 0;
syscall(__NR_sendmmsg, r[0], 0x20003a80, 1, 0);
}
int main()
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
int pid = do_sandbox_none();
int status = 0;
while (waitpid(pid, &status, __WALL) != pid) {
}
return 0;
}
|
the_stack_data/85395.c | #include <assert.h>
typedef struct Boo {
float value;
} Boo;
typedef struct Foo {
Boo boos[4];
} Foo;
typedef struct {
Boo v[4];
} Boo_arr4;
int main () {
Foo foo;
(*(Boo_arr4*) foo.boos) = (Boo_arr4){{(Boo){.value = 1.0f}}};
assert (foo.boos[0].value == 1.0f);
assert (foo.boos[1].value == 0.0f);
return 0;
}
|
the_stack_data/105920.c | /* A simple man program. Author: Warren Toomey */
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef TEST
#define MANPATH "/home/wkt/xv6-freebsd/fs/usr/share/man/man"
#define CATPATH "/home/wkt/xv6-freebsd/fs/usr/share/man/man"
#define NROFF "/usr/bin/nroff"
#define PAGER "/usr/bin/less"
//#define PAGER "/usr/bin/wc"
#else
#define MANPATH "/usr/share/man/man"
#define CATPATH "/usr/share/man/cat"
#define NROFF "/bin/nroff"
#define PAGER "/bin/less"
#endif
void tryman ( int section, char *title )
{
char path [ 200 ];
int cpid,
pipefd [ 2 ];
snprintf( path, 200, "%s%d/%s.%d", MANPATH, section, title, section );
// printf( "About to access %s\n", path );
// fflush( stdout );
if ( access( path, O_RDONLY ) < 0 )
{
return;
}
// printf( "About to do %s -man %s | %s\n", NROFF, path, PAGER );
// fflush( stdout );
if ( pipe( pipefd ) == - 1 )
{
perror( "pipe" );
exit( 1 );
}
cpid = fork();
if ( cpid == - 1 )
{
perror( "fork" );
exit( 1 );
}
if ( cpid == 0 ) // Child reads
{
close( pipefd[ 1 ] );
close( 0 );
dup2( pipefd[ 0 ], 0 );
close( pipefd[ 0 ] );
execl( PAGER, PAGER, NULL );
}
else // Parent writes
{
close( pipefd[ 0 ] );
close( 1 );
dup2( pipefd[ 1 ], 1 );
close( pipefd[ 1 ] );
execl( NROFF, NROFF, "-man", path, NULL );
}
exit( - 1 ); // execl failed
}
int main ( int argc, char *argv[] )
{
int i;
int section;
char *title;
section = 0;
if ( ( argc < 2 ) || ( argc > 3 ) )
{
fprintf( stderr, "Usage: man [section] title\n" ); exit( 1 );
}
title = argv[ 1 ];
if ( argc == 3 )
{
section = atoi( argv[ 1 ] );
title = argv[ 2 ];
}
// We got a specific section, try it
if ( section )
{
tryman( section, title );
}
// No luck, try each man section
for ( i = 1; i <= 8; i += 1 )
{
tryman( i, title );
}
fprintf( stderr, "No man page for %s\n", title );
exit( 1 );
}
|
the_stack_data/899570.c | #include <stdio.h>
#include <stdlib.h>
int search(const int a[], int n, int key, int idx[]) {
int count = 0;
// Line 0 ~ 1
printf(" |");
for (int line = 0; line <= 1; line++) {
for (int i = 0; i < n; i++) {
if (line == 0) {
printf("%3d ", i);
if (i == n - 1)
printf("\n");
}
else {
if (i == 0) {
printf("---+");
}
else {
printf("-----");
}
}
}
}
printf("\n");
// Line 2 ~
int pl = 0;
int pr = n;
do {
int pc = (pl + pr) / 2;
printf(" |");
for (int i = 0; i < n; i++) {
if (i == pc) {
printf("%3c ", '+');
}
if (i == pl) {
printf(" <- ");
}
else if (i == pr - 1) {
printf(" ->");
}
else if (i < n - 2) {
printf(" ");
}
}
printf("\n");
for (int j = 0; j < n; j++) {
if (j == 0)
printf("%3d|", pc);
printf("%3d ", a[j]);
}
printf("\n");
if (a[pc] == key) {
printf("\n");
return pc;
}
else if (a[pc] < key) {
pl = pc + 1;
printf(" |\n");
}
else {
pr = pc - 1;
printf(" |\n");
}
} while (pl <= pr);
return -1;
}
int main(void) {
int* x;
int* ix;
int number, key;
do {
printf("Number? ");
scanf_s("%d", &number);
} while (number <= 0);
x = calloc(number, sizeof(int));
ix = calloc(number, sizeof(int));
for (int i = 0; i < number; i++) {
printf("x[%d] = ", i);
scanf_s("%d", &x[i]);
}
printf("Key? ");
scanf_s("%d", &key);
int pc = search(x, number, key, ix);
printf("%d is in x[%d]\n", key, pc); // Result Line
free(x);
free(ix);
return 0;
} |
the_stack_data/9511721.c | /* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=cell" } } */
/* { dg-options "-O2 -mcpu=cell" } */
/* { dg-require-effective-target lp64 } */
/* { dg-require-effective-target powerpc_ppu_ok } */
/* { dg-final { scan-assembler "ldbrx" } } */
/* { dg-final { scan-assembler "stdbrx" } } */
unsigned long ul;
unsigned long load_bswap64 (unsigned long *p) { return __builtin_bswap64 (*p); }
void store_bswap64 (unsigned long a) { ul = __builtin_bswap64 (a); }
|
the_stack_data/42195.c | /* strtol.c - string to long conversions ncc standard library
Copyright (c) 1977-1995 by Robert Swartz. All rights reserved.
Copyright (c) 2021 Charles E. Youse ([email protected]).
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of the contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>
#include <errno.h>
static unsigned long __strtoul(const char *nptr, char **endptr,
int base, int uflag)
{
const char *cp;
unsigned long val;
int c, sign, overflow, pflag, dlimit, ulimit, llimit;
unsigned long quot, rem;
cp = nptr;
val = pflag = overflow = sign = 0;
/* leading white space */
while (isspace(c = *cp++))
;
/* optional sign */
switch(c) {
case '-':
sign = 1;
/* fall through... */
case '+':
c = *cp++;
}
/* determine implicit base */
if (base == 0) {
if (c == '0')
base = (*cp == 'x' || *cp == 'X') ? 16 : 8;
else if (isdigit(c))
base = 10;
else { /* expected form not found */
cp = nptr;
goto done;
}
}
/* skip optional hex base "0x" or "0X" */
if (base == 16 && c == '0' && (*cp == 'x' || *cp == 'X')) {
++pflag;
++cp;
c = *cp++;
}
/* initialize legal character limits */
dlimit = '0' + base;
ulimit = 'A' + base - 10;
llimit = 'a' + base - 10;
/* the next character must be a legitimate digit; e.g. " +@" fails. */
/* watch out for e.g. "0xy", which is "0" followed by "xy". */
if (!((isdigit(c) && c < dlimit)
|| (isupper(c) && c < ulimit)
|| (islower(c) && c < llimit))) {
cp = (pflag) ? cp - 2 : nptr;
goto done;
}
/* determine limits for overflow computation. */
/* this would use ldiv() if it worked for unsigned long */
if (uflag) {
quot = ULONG_MAX / base;
rem = ULONG_MAX % base;
} else {
quot = LONG_MAX / base;
rem = LONG_MAX % base;
}
/* process digit string */
for (;; c = *cp++) {
if (isdigit(c) && c < dlimit)
c -= '0';
else if (isupper(c) && c < ulimit)
c -= 'A'-10;
else if (islower(c) && c < llimit)
c -= 'a'-10;
else {
--cp;
break;
}
if (val < quot || (val == quot && c <= rem))
val = val * base + c;
else
++overflow;
}
done:
/* store end pointer and return appropriate result */
if (endptr != (char **) 0)
*endptr = (char *) cp;
if (overflow) {
errno = ERANGE;
if (uflag)
return ULONG_MAX;
return sign ? LONG_MIN : LONG_MAX;
}
return sign ? -val : val;
}
long strtol(const char *nptr, char **endptr, int base)
{
return __strtoul(nptr, endptr, base, 0);
}
unsigned long strtoul(const char *nptr, char **endptr, int base)
{
return __strtoul(nptr, endptr, base, 1);
}
/* vi: set ts=4 expandtab: */
|
the_stack_data/591837.c | #include <stdio.h>
#include <time.h>
#include <string.h>
// ön tanımlayıcı yerine tür olarak tanımladık
typedef struct ogrenci
{
char num[8];
char ad[30];
char soyad[30];
int sira;
char tur[3];
struct ogrenci* next;
} STU;
int satir_say (FILE* dosya) {
int satir=1;
char c;
while (!feof(dosya)) {
c = getc(dosya);
if (c == '\n')
satir++;
}
return satir;
}
// cursoru alt satırın başlandıcına indirir
void passline (FILE* file) {
while (fgetc (file) != '\n');
}
// bir satırın eleman satısını döner
// cursoru alt satıra geçirmek için kullandık
int chrinline (FILE* file) {
int chr_count = 0;
while (fgetc (file) != '\n')
chr_count++;
return chr_count;
}
// copy result into original
void stu_copy (STU* ori, STU* res) {
strcpy (ori->num, res->num);
strcpy (ori->ad, res->ad);
strcpy (ori->soyad, res->soyad);
strcpy (ori->tur, res->tur);
ori->next = res->next;
ori->sira = res->sira;
}
// change s1 content with s2
void stu_swap (STU* s1, STU* s2) {
STU swap;
stu_copy (&swap, s1);
stu_copy (s1, s2);
stu_copy (s2, &swap);
}
int main (int argc, char* argv[]) {
FILE *dosya, *file;
dosya = fopen ("ogrenci.txt","r");
file = fopen ("re-writen.txt","w");// read and write result test
// swap example
STU furkan = {"123456", "furkan", "yazbahar", 123, "I"};
STU yasir = {"123457", "yasir", "kiroglu", 10, "II", &furkan};
stu_swap (&furkan, &yasir);
printf ("Furkan nesnesi:\n %s\t%s\t", furkan.num, furkan.ad);
printf ("%s\t%d\t", furkan.soyad, furkan.sira);
printf ("%s\t\n", furkan.tur);
printf ("Yasir nesnesi:\n %s\t%s\t", yasir.num, yasir.ad);
printf ("%s\t%d\t", yasir.soyad, yasir.sira);
printf ("%s\n", yasir.tur);
printf ("sonuc:%s", (yasir.next)->num);
printf ("%s\n%s\n", furkan.num, yasir.num );
// end of swap example
STU ogr;
int satir = satir_say(dosya);
rewind (dosya);
printf ("eleman sayısı%d\nsatiir sayisi: %d\n", chrinline(dosya), satir);
while (!feof(dosya)) {
fscanf (dosya, "%s\t%s\t%s\t%d\t%s\n" ,ogr.num, ogr.ad, ogr.soyad,
&ogr.sira, ogr.tur);
fprintf (file, "%s\t%s\t%s\t%d\t%s\n" ,ogr.num, ogr.ad, ogr.soyad,
ogr.sira, ogr.tur);
}
fclose(dosya);
fclose(file);
return 0;
}
|
the_stack_data/206393460.c | /**
* \file
* Binary protocol of internal activity, to aid debugging.
*
* Copyright 2001-2003 Ximian, Inc
* Copyright 2003-2010 Novell, Inc.
* Copyright (C) 2012 Xamarin Inc
*
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#ifdef HAVE_SGEN_GC
#include "config.h"
#include "sgen-conf.h"
#include "sgen-gc.h"
#include "sgen-protocol.h"
#include "sgen-memory-governor.h"
#include "sgen-workers.h"
#include "sgen-client.h"
#include "mono/utils/mono-membar.h"
#include "mono/utils/mono-proclib.h"
#include <errno.h>
#include <string.h>
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#include <fcntl.h>
#elif defined(HOST_WIN32)
#include <windows.h>
#endif
#if defined(HOST_WIN32)
static const HANDLE invalid_file_value = INVALID_HANDLE_VALUE;
/* If valid, dump binary protocol to this file */
static HANDLE binary_protocol_file = INVALID_HANDLE_VALUE;
#else
static const int invalid_file_value = -1;
static int binary_protocol_file = -1;
#endif
/* We set this to -1 to indicate an exclusive lock */
static volatile int binary_protocol_use_count = 0;
#define BINARY_PROTOCOL_BUFFER_SIZE (65536 - 2 * 8)
typedef struct _BinaryProtocolBuffer BinaryProtocolBuffer;
struct _BinaryProtocolBuffer {
BinaryProtocolBuffer * volatile next;
volatile int index;
unsigned char buffer [BINARY_PROTOCOL_BUFFER_SIZE];
};
static BinaryProtocolBuffer * volatile binary_protocol_buffers = NULL;
static char* filename_or_prefix = NULL;
static int current_file_index = 0;
static long long current_file_size = 0;
static long long file_size_limit;
static char*
filename_for_index (int index)
{
char *filename;
SGEN_ASSERT (0, file_size_limit > 0, "Indexed binary protocol filename must only be used with file size limit");
filename = (char *)sgen_alloc_internal_dynamic (strlen (filename_or_prefix) + 32, INTERNAL_MEM_BINARY_PROTOCOL, TRUE);
sprintf (filename, "%s.%d", filename_or_prefix, index);
return filename;
}
static void
free_filename (char *filename)
{
SGEN_ASSERT (0, file_size_limit > 0, "Indexed binary protocol filename must only be used with file size limit");
sgen_free_internal_dynamic (filename, strlen (filename_or_prefix) + 32, INTERNAL_MEM_BINARY_PROTOCOL);
}
static void
binary_protocol_open_file (gboolean assert_on_failure)
{
char *filename;
#ifdef F_SETLK
struct flock lock;
lock.l_type = F_WRLCK;
lock.l_whence = SEEK_SET;
lock.l_start = 0;
lock.l_len = 0;
#endif
if (file_size_limit > 0)
filename = filename_for_index (current_file_index);
else
filename = filename_or_prefix;
#if defined(HAVE_UNISTD_H)
do {
binary_protocol_file = open (filename, O_CREAT | O_WRONLY, 0644);
if (binary_protocol_file == -1) {
if (errno != EINTR)
break; /* Failed */
#ifdef F_SETLK
} else if (fcntl (binary_protocol_file, F_SETLK, &lock) == -1) {
/* The lock for the file is already taken. Fail */
close (binary_protocol_file);
binary_protocol_file = -1;
break;
#endif
} else {
/* We have acquired the lock. Truncate the file */
ftruncate (binary_protocol_file, 0);
}
} while (binary_protocol_file == -1);
#elif defined(HOST_WIN32)
binary_protocol_file = CreateFileA (filename, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
#else
g_error ("sgen binary protocol: not supported");
#endif
if (binary_protocol_file == invalid_file_value && assert_on_failure)
g_error ("sgen binary protocol: failed to open file");
if (file_size_limit > 0)
free_filename (filename);
}
void
binary_protocol_init (const char *filename, long long limit)
{
file_size_limit = limit;
/* Original name length + . + pid length in hex + null terminator */
filename_or_prefix = g_strdup_printf ("%s", filename);
binary_protocol_open_file (FALSE);
if (binary_protocol_file == invalid_file_value) {
/* Another process owns the file, try adding the pid suffix to the filename */
gint32 pid = mono_process_current_pid ();
g_free (filename_or_prefix);
filename_or_prefix = g_strdup_printf ("%s.%x", filename, pid);
binary_protocol_open_file (TRUE);
}
/* If we have a file size limit, we might need to open additional files */
if (file_size_limit == 0)
g_free (filename_or_prefix);
binary_protocol_header (PROTOCOL_HEADER_CHECK, PROTOCOL_HEADER_VERSION, SIZEOF_VOID_P, G_BYTE_ORDER == G_LITTLE_ENDIAN);
}
gboolean
binary_protocol_is_enabled (void)
{
return binary_protocol_file != invalid_file_value;
}
static void
close_binary_protocol_file (void)
{
#if defined(HAVE_UNISTD_H)
while (close (binary_protocol_file) == -1 && errno == EINTR)
;
#elif defined(HOST_WIN32)
CloseHandle (binary_protocol_file);
#endif
binary_protocol_file = invalid_file_value;
}
static gboolean
try_lock_exclusive (void)
{
do {
if (binary_protocol_use_count)
return FALSE;
} while (mono_atomic_cas_i32 (&binary_protocol_use_count, -1, 0) != 0);
mono_memory_barrier ();
return TRUE;
}
static void
unlock_exclusive (void)
{
mono_memory_barrier ();
SGEN_ASSERT (0, binary_protocol_use_count == -1, "Exclusively locked count must be -1");
if (mono_atomic_cas_i32 (&binary_protocol_use_count, 0, -1) != -1)
SGEN_ASSERT (0, FALSE, "Somebody messed with the exclusive lock");
}
static void
lock_recursive (void)
{
int old_count;
do {
retry:
old_count = binary_protocol_use_count;
if (old_count < 0) {
/* Exclusively locked - retry */
/* FIXME: short back-off */
goto retry;
}
} while (mono_atomic_cas_i32 (&binary_protocol_use_count, old_count + 1, old_count) != old_count);
mono_memory_barrier ();
}
static void
unlock_recursive (void)
{
int old_count;
mono_memory_barrier ();
do {
old_count = binary_protocol_use_count;
SGEN_ASSERT (0, old_count > 0, "Locked use count must be at least 1");
} while (mono_atomic_cas_i32 (&binary_protocol_use_count, old_count - 1, old_count) != old_count);
}
static void
binary_protocol_flush_buffer (BinaryProtocolBuffer *buffer)
{
ssize_t ret;
size_t to_write = buffer->index;
size_t written = 0;
g_assert (buffer->index > 0);
while (written < to_write) {
#if defined(HAVE_UNISTD_H)
ret = write (binary_protocol_file, buffer->buffer + written, to_write - written);
if (ret >= 0)
written += ret;
else if (errno == EINTR)
continue;
else
close_binary_protocol_file ();
#elif defined(HOST_WIN32)
int tmp_written;
if (WriteFile (binary_protocol_file, buffer->buffer + written, to_write - written, &tmp_written, NULL))
written += tmp_written;
else
close_binary_protocol_file ();
#endif
}
current_file_size += buffer->index;
sgen_free_os_memory (buffer, sizeof (BinaryProtocolBuffer), SGEN_ALLOC_INTERNAL, MONO_MEM_ACCOUNT_SGEN_BINARY_PROTOCOL);
}
static void
binary_protocol_check_file_overflow (void)
{
if (file_size_limit <= 0 || current_file_size < file_size_limit)
return;
close_binary_protocol_file ();
if (current_file_index > 0) {
char *filename = filename_for_index (current_file_index - 1);
unlink (filename);
free_filename (filename);
}
++current_file_index;
current_file_size = 0;
binary_protocol_open_file (TRUE);
}
/*
* Flushing buffers takes an exclusive lock, so it must only be done when the world is
* stopped, otherwise we might end up with a deadlock because a stopped thread owns the
* lock.
*
* The protocol entries that do flush have `FLUSH()` in their definition.
*/
gboolean
binary_protocol_flush_buffers (gboolean force)
{
int num_buffers = 0, i;
BinaryProtocolBuffer *header;
BinaryProtocolBuffer *buf;
BinaryProtocolBuffer **bufs;
if (binary_protocol_file == invalid_file_value)
return FALSE;
if (!force && !try_lock_exclusive ())
return FALSE;
header = binary_protocol_buffers;
for (buf = header; buf != NULL; buf = buf->next)
++num_buffers;
bufs = (BinaryProtocolBuffer **)sgen_alloc_internal_dynamic (num_buffers * sizeof (BinaryProtocolBuffer*), INTERNAL_MEM_BINARY_PROTOCOL, TRUE);
for (buf = header, i = 0; buf != NULL; buf = buf->next, i++)
bufs [i] = buf;
SGEN_ASSERT (0, i == num_buffers, "Binary protocol buffer count error");
/*
* This might be incorrect when forcing, but all bets are off in that case, anyway,
* because we're trying to figure out a bug in the debugger.
*/
binary_protocol_buffers = NULL;
for (i = num_buffers - 1; i >= 0; --i) {
binary_protocol_flush_buffer (bufs [i]);
binary_protocol_check_file_overflow ();
}
sgen_free_internal_dynamic (buf, num_buffers * sizeof (BinaryProtocolBuffer*), INTERNAL_MEM_BINARY_PROTOCOL);
if (!force)
unlock_exclusive ();
return TRUE;
}
static BinaryProtocolBuffer*
binary_protocol_get_buffer (int length)
{
BinaryProtocolBuffer *buffer, *new_buffer;
retry:
buffer = binary_protocol_buffers;
if (buffer && buffer->index + length <= BINARY_PROTOCOL_BUFFER_SIZE)
return buffer;
new_buffer = (BinaryProtocolBuffer *)sgen_alloc_os_memory (sizeof (BinaryProtocolBuffer), (SgenAllocFlags)(SGEN_ALLOC_INTERNAL | SGEN_ALLOC_ACTIVATE), "debugging memory", MONO_MEM_ACCOUNT_SGEN_BINARY_PROTOCOL);
new_buffer->next = buffer;
new_buffer->index = 0;
if (mono_atomic_cas_ptr ((void**)&binary_protocol_buffers, new_buffer, buffer) != buffer) {
sgen_free_os_memory (new_buffer, sizeof (BinaryProtocolBuffer), SGEN_ALLOC_INTERNAL, MONO_MEM_ACCOUNT_SGEN_BINARY_PROTOCOL);
goto retry;
}
return new_buffer;
}
static void
protocol_entry (unsigned char type, gpointer data, int size)
{
int index;
gboolean include_worker_index = type != PROTOCOL_ID (binary_protocol_header);
int entry_size = size + 1 + (include_worker_index ? 1 : 0); // type + worker_index + size
BinaryProtocolBuffer *buffer;
if (binary_protocol_file == invalid_file_value)
return;
lock_recursive ();
retry:
buffer = binary_protocol_get_buffer (size + 1);
retry_same_buffer:
index = buffer->index;
if (index + entry_size > BINARY_PROTOCOL_BUFFER_SIZE)
goto retry;
if (mono_atomic_cas_i32 (&buffer->index, index + entry_size, index) != index)
goto retry_same_buffer;
/* FIXME: if we're interrupted at this point, we have a buffer
entry that contains random data. */
buffer->buffer [index++] = type;
/* We should never change the header format */
if (include_worker_index) {
int worker_index;
MonoNativeThreadId tid = mono_native_thread_id_get ();
/*
* If the thread is not a worker thread we insert 0, which is interpreted
* as gc thread. Worker indexes are 1 based.
*/
worker_index = sgen_thread_pool_is_thread_pool_thread (tid);
/* FIXME Consider using different index bases for different thread pools */
buffer->buffer [index++] = (unsigned char) worker_index;
}
memcpy (buffer->buffer + index, data, size);
index += size;
g_assert (index <= BINARY_PROTOCOL_BUFFER_SIZE);
unlock_recursive ();
}
#define TYPE_INT int
#define TYPE_LONGLONG long long
#define TYPE_SIZE size_t
#define TYPE_POINTER gpointer
#define TYPE_BOOL gboolean
#define BEGIN_PROTOCOL_ENTRY0(method) \
void method (void) { \
int __type = PROTOCOL_ID(method); \
gpointer __data = NULL; \
int __size = 0; \
CLIENT_PROTOCOL_NAME (method) ();
#define BEGIN_PROTOCOL_ENTRY1(method,t1,f1) \
void method (t1 f1) { \
PROTOCOL_STRUCT(method) __entry = { f1 }; \
int __type = PROTOCOL_ID(method); \
gpointer __data = &__entry; \
int __size = sizeof (PROTOCOL_STRUCT(method)); \
CLIENT_PROTOCOL_NAME (method) (f1);
#define BEGIN_PROTOCOL_ENTRY2(method,t1,f1,t2,f2) \
void method (t1 f1, t2 f2) { \
PROTOCOL_STRUCT(method) __entry = { f1, f2 }; \
int __type = PROTOCOL_ID(method); \
gpointer __data = &__entry; \
int __size = sizeof (PROTOCOL_STRUCT(method)); \
CLIENT_PROTOCOL_NAME (method) (f1, f2);
#define BEGIN_PROTOCOL_ENTRY3(method,t1,f1,t2,f2,t3,f3) \
void method (t1 f1, t2 f2, t3 f3) { \
PROTOCOL_STRUCT(method) __entry = { f1, f2, f3 }; \
int __type = PROTOCOL_ID(method); \
gpointer __data = &__entry; \
int __size = sizeof (PROTOCOL_STRUCT(method)); \
CLIENT_PROTOCOL_NAME (method) (f1, f2, f3);
#define BEGIN_PROTOCOL_ENTRY4(method,t1,f1,t2,f2,t3,f3,t4,f4) \
void method (t1 f1, t2 f2, t3 f3, t4 f4) { \
PROTOCOL_STRUCT(method) __entry = { f1, f2, f3, f4 }; \
int __type = PROTOCOL_ID(method); \
gpointer __data = &__entry; \
int __size = sizeof (PROTOCOL_STRUCT(method)); \
CLIENT_PROTOCOL_NAME (method) (f1, f2, f3, f4);
#define BEGIN_PROTOCOL_ENTRY5(method,t1,f1,t2,f2,t3,f3,t4,f4,t5,f5) \
void method (t1 f1, t2 f2, t3 f3, t4 f4, t5 f5) { \
PROTOCOL_STRUCT(method) __entry = { f1, f2, f3, f4, f5 }; \
int __type = PROTOCOL_ID(method); \
gpointer __data = &__entry; \
int __size = sizeof (PROTOCOL_STRUCT(method)); \
CLIENT_PROTOCOL_NAME (method) (f1, f2, f3, f4, f5);
#define BEGIN_PROTOCOL_ENTRY6(method,t1,f1,t2,f2,t3,f3,t4,f4,t5,f5,t6,f6) \
void method (t1 f1, t2 f2, t3 f3, t4 f4, t5 f5, t6 f6) { \
PROTOCOL_STRUCT(method) __entry = { f1, f2, f3, f4, f5, f6 }; \
int __type = PROTOCOL_ID(method); \
gpointer __data = &__entry; \
int __size = sizeof (PROTOCOL_STRUCT(method)); \
CLIENT_PROTOCOL_NAME (method) (f1, f2, f3, f4, f5, f6);
#define DEFAULT_PRINT()
#define CUSTOM_PRINT(_)
#define IS_ALWAYS_MATCH(_)
#define MATCH_INDEX(_)
#define IS_VTABLE_MATCH(_)
#define END_PROTOCOL_ENTRY \
protocol_entry (__type, __data, __size); \
}
#define END_PROTOCOL_ENTRY_FLUSH \
protocol_entry (__type, __data, __size); \
binary_protocol_flush_buffers (FALSE); \
}
#ifdef SGEN_HEAVY_BINARY_PROTOCOL
#define BEGIN_PROTOCOL_ENTRY_HEAVY0(method) \
BEGIN_PROTOCOL_ENTRY0 (method)
#define BEGIN_PROTOCOL_ENTRY_HEAVY1(method,t1,f1) \
BEGIN_PROTOCOL_ENTRY1 (method,t1,f1)
#define BEGIN_PROTOCOL_ENTRY_HEAVY2(method,t1,f1,t2,f2) \
BEGIN_PROTOCOL_ENTRY2 (method,t1,f1,t2,f2)
#define BEGIN_PROTOCOL_ENTRY_HEAVY3(method,t1,f1,t2,f2,t3,f3) \
BEGIN_PROTOCOL_ENTRY3 (method,t1,f1,t2,f2,t3,f3)
#define BEGIN_PROTOCOL_ENTRY_HEAVY4(method,t1,f1,t2,f2,t3,f3,t4,f4) \
BEGIN_PROTOCOL_ENTRY4 (method,t1,f1,t2,f2,t3,f3,t4,f4)
#define BEGIN_PROTOCOL_ENTRY_HEAVY5(method,t1,f1,t2,f2,t3,f3,t4,f4,t5,f5) \
BEGIN_PROTOCOL_ENTRY5 (method,t1,f1,t2,f2,t3,f3,t4,f4,t5,f5)
#define BEGIN_PROTOCOL_ENTRY_HEAVY6(method,t1,f1,t2,f2,t3,f3,t4,f4,t5,f5,t6,f6) \
BEGIN_PROTOCOL_ENTRY6 (method,t1,f1,t2,f2,t3,f3,t4,f4,t5,f5,t6,f6)
#define END_PROTOCOL_ENTRY_HEAVY \
END_PROTOCOL_ENTRY
#else
#define BEGIN_PROTOCOL_ENTRY_HEAVY0(method)
#define BEGIN_PROTOCOL_ENTRY_HEAVY1(method,t1,f1)
#define BEGIN_PROTOCOL_ENTRY_HEAVY2(method,t1,f1,t2,f2)
#define BEGIN_PROTOCOL_ENTRY_HEAVY3(method,t1,f1,t2,f2,t3,f3)
#define BEGIN_PROTOCOL_ENTRY_HEAVY4(method,t1,f1,t2,f2,t3,f3,t4,f4)
#define BEGIN_PROTOCOL_ENTRY_HEAVY5(method,t1,f1,t2,f2,t3,f3,t4,f4,t5,f5)
#define BEGIN_PROTOCOL_ENTRY_HEAVY6(method,t1,f1,t2,f2,t3,f3,t4,f4,t5,f5,t6,f6)
#define END_PROTOCOL_ENTRY_HEAVY
#endif
#include "sgen-protocol-def.h"
#undef TYPE_INT
#undef TYPE_LONGLONG
#undef TYPE_SIZE
#undef TYPE_POINTER
#undef TYPE_BOOL
#endif /* HAVE_SGEN_GC */
|
the_stack_data/650514.c | #include <stdio.h>
int
main(void)
{
printf("Hello world!\n");
}
|
the_stack_data/19922.c | /*
* Argon2 source code package
*
* Written by Daniel Dinu and Dmitry Khovratovich, 2015
*
* This work is licensed under a Creative Commons CC0 1.0 License/Waiver.
*
* You should have received a copy of the CC0 Public Domain Dedication along
* with
* this software. If not, see
* <http://creativecommons.org/publicdomain/zero/1.0/>.
*
*/
#ifndef __SSE2__
#include "stdint.h"
#include <string.h>
#include <stdlib.h>
#include "argon2.h"
#include "argon2_core.h"
#include "argon2_ref.h"
#include "blamka-round-ref.h"
#include "blake2-impl.h"
#include "blake2.h"
#include "memdbg.h"
/* LEGACY CODE: version 1.2.1 and earlier
* Function fills a new memory block by overwriting @next_block.
* @param prev_block Pointer to the previous block
* @param ref_block Pointer to the reference block
* @param next_block Pointer to the block to be constructed
* @pre all block pointers must be valid
*/
static void fill_block(const block *prev_block, const block *ref_block,
block *next_block) {
block blockR, block_tmp;
unsigned i;
argon2_copy_block(&blockR, ref_block);
argon2_xor_block(&blockR, prev_block);
argon2_copy_block(&block_tmp, &blockR);
/*Now blockR = ref_block + prev_block and bloc_tmp = ref_block + prev_block */
/* Apply Blake2 on columns of 64-bit words: (0,1,...,15) , then
(16,17,..31)... finally (112,113,...127) */
for (i = 0; i < 8; ++i) {
BLAKE2_ROUND_NOMSG(
blockR.v[16 * i], blockR.v[16 * i + 1], blockR.v[16 * i + 2],
blockR.v[16 * i + 3], blockR.v[16 * i + 4], blockR.v[16 * i + 5],
blockR.v[16 * i + 6], blockR.v[16 * i + 7], blockR.v[16 * i + 8],
blockR.v[16 * i + 9], blockR.v[16 * i + 10], blockR.v[16 * i + 11],
blockR.v[16 * i + 12], blockR.v[16 * i + 13], blockR.v[16 * i + 14],
blockR.v[16 * i + 15]);
}
/* Apply Blake2 on rows of 64-bit words: (0,1,16,17,...112,113), then
(2,3,18,19,...,114,115).. finally (14,15,30,31,...,126,127) */
for (i = 0; i < 8; i++) {
BLAKE2_ROUND_NOMSG(
blockR.v[2 * i], blockR.v[2 * i + 1], blockR.v[2 * i + 16],
blockR.v[2 * i + 17], blockR.v[2 * i + 32], blockR.v[2 * i + 33],
blockR.v[2 * i + 48], blockR.v[2 * i + 49], blockR.v[2 * i + 64],
blockR.v[2 * i + 65], blockR.v[2 * i + 80], blockR.v[2 * i + 81],
blockR.v[2 * i + 96], blockR.v[2 * i + 97], blockR.v[2 * i + 112],
blockR.v[2 * i + 113]);
}
argon2_copy_block(next_block, &block_tmp);
argon2_xor_block(next_block, &blockR);
}
/*
* Function fills a new memory block by XORing over @next_block. @next_block must be initialized
* @param prev_block Pointer to the previous block
* @param ref_block Pointer to the reference block
* @param next_block Pointer to the block to be constructed
* @pre all block pointers must be valid
*/
static void fill_block_with_xor(const block *prev_block, const block *ref_block,
block *next_block) {
block blockR, block_tmp;
unsigned i;
argon2_copy_block(&blockR, ref_block);
argon2_xor_block(&blockR, prev_block);
argon2_copy_block(&block_tmp, &blockR);
argon2_xor_block(&block_tmp, next_block); /*Saving the next block contents for XOR over*/
/*Now blockR = ref_block + prev_block and bloc_tmp = ref_block + prev_block + next_block*/
/* Apply Blake2 on columns of 64-bit words: (0,1,...,15) , then
(16,17,..31)... finally (112,113,...127) */
for (i = 0; i < 8; ++i) {
BLAKE2_ROUND_NOMSG(
blockR.v[16 * i], blockR.v[16 * i + 1], blockR.v[16 * i + 2],
blockR.v[16 * i + 3], blockR.v[16 * i + 4], blockR.v[16 * i + 5],
blockR.v[16 * i + 6], blockR.v[16 * i + 7], blockR.v[16 * i + 8],
blockR.v[16 * i + 9], blockR.v[16 * i + 10], blockR.v[16 * i + 11],
blockR.v[16 * i + 12], blockR.v[16 * i + 13], blockR.v[16 * i + 14],
blockR.v[16 * i + 15]);
}
/* Apply Blake2 on rows of 64-bit words: (0,1,16,17,...112,113), then
(2,3,18,19,...,114,115).. finally (14,15,30,31,...,126,127) */
for (i = 0; i < 8; i++) {
BLAKE2_ROUND_NOMSG(
blockR.v[2 * i], blockR.v[2 * i + 1], blockR.v[2 * i + 16],
blockR.v[2 * i + 17], blockR.v[2 * i + 32], blockR.v[2 * i + 33],
blockR.v[2 * i + 48], blockR.v[2 * i + 49], blockR.v[2 * i + 64],
blockR.v[2 * i + 65], blockR.v[2 * i + 80], blockR.v[2 * i + 81],
blockR.v[2 * i + 96], blockR.v[2 * i + 97], blockR.v[2 * i + 112],
blockR.v[2 * i + 113]);
}
argon2_copy_block(next_block, &block_tmp);
argon2_xor_block(next_block, &blockR);
}
/*
* Generate pseudo-random values to reference blocks in the segment and puts
* them into the array
* @param instance Pointer to the current instance
* @param position Pointer to the current position
* @param pseudo_rands Pointer to the array of 64-bit values
* @pre pseudo_rands must point to @a instance->segment_length allocated values
*/
static void generate_addresses(const argon2_instance_t *instance,
const argon2_position_t *position,
uint64_t *pseudo_rands) {
block zero_block, input_block, address_block,tmp_block;
uint32_t i;
argon2_init_block_value(&zero_block, 0);
argon2_init_block_value(&input_block, 0);
if (instance != NULL && position != NULL) {
input_block.v[0] = position->pass;
input_block.v[1] = position->lane;
input_block.v[2] = position->slice;
input_block.v[3] = instance->memory_blocks;
input_block.v[4] = instance->passes;
input_block.v[5] = instance->type;
for (i = 0; i < instance->segment_length; ++i) {
if (i % ARGON2_ADDRESSES_IN_BLOCK == 0) {
input_block.v[6]++;
argon2_init_block_value(&tmp_block, 0);
argon2_init_block_value(&address_block, 0);
fill_block_with_xor(&zero_block, &input_block, &tmp_block);
fill_block_with_xor(&zero_block, &tmp_block, &address_block);
}
pseudo_rands[i] = address_block.v[i % ARGON2_ADDRESSES_IN_BLOCK];
}
}
}
void argon2_fill_segment(const argon2_instance_t *instance,
argon2_position_t position) {
block *ref_block = NULL, *curr_block = NULL;
uint64_t pseudo_rand, ref_index, ref_lane;
uint32_t prev_offset, curr_offset;
uint32_t starting_index;
uint32_t i;
int data_independent_addressing;
/* Pseudo-random values that determine the reference block position */
uint64_t *pseudo_rands;
if (instance == NULL) {
return;
}
data_independent_addressing = (instance->type == Argon2_i);
pseudo_rands = instance->pseudo_rands;
if (data_independent_addressing) {
generate_addresses(instance, &position, pseudo_rands);
}
starting_index = 0;
if ((0 == position.pass) && (0 == position.slice)) {
starting_index = 2; /* we have already generated the first two blocks */
}
/* Offset of the current block */
curr_offset = position.lane * instance->lane_length +
position.slice * instance->segment_length + starting_index;
if (0 == curr_offset % instance->lane_length) {
/* Last block in this lane */
prev_offset = curr_offset + instance->lane_length - 1;
} else {
/* Previous block */
prev_offset = curr_offset - 1;
}
for (i = starting_index; i < instance->segment_length;
++i, ++curr_offset, ++prev_offset) {
/*1.1 Rotating prev_offset if needed */
if (curr_offset % instance->lane_length == 1) {
prev_offset = curr_offset - 1;
}
/* 1.2 Computing the index of the reference block */
/* 1.2.1 Taking pseudo-random value from the previous block */
if (data_independent_addressing) {
pseudo_rand = pseudo_rands[i];
} else {
pseudo_rand = instance->memory[prev_offset].v[0];
}
/* 1.2.2 Computing the lane of the reference block */
ref_lane = ((pseudo_rand >> 32)) % instance->lanes;
if ((position.pass == 0) && (position.slice == 0)) {
/* Can not reference other lanes yet */
ref_lane = position.lane;
}
/* 1.2.3 Computing the number of possible reference block within the
* lane.
*/
position.index = i;
ref_index = argon2_index_alpha(instance, &position, pseudo_rand & 0xFFFFFFFF,
ref_lane == position.lane);
/* 2 Creating a new block */
ref_block =
instance->memory + instance->lane_length * ref_lane + ref_index;
curr_block = instance->memory + curr_offset;
if (ARGON2_VERSION_10 == instance->version) {
/* version 1.2.1 and earlier: overwrite, not XOR */
fill_block(instance->memory + prev_offset, ref_block, curr_block);
} else {
if(0 == position.pass) {
fill_block(instance->memory + prev_offset, ref_block,
curr_block);
} else {
fill_block_with_xor(instance->memory + prev_offset, ref_block,
curr_block);
}
}
}
}
#endif /* #ifndef __SSE2__ */
|
the_stack_data/437000.c | /*
* Author: NagaChaitanya Vellanki
*
*
* Generic swap function
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void swap(void *a, void *b, size_t element_size) {
char *buffer = (char *) malloc(element_size);
memcpy(buffer, a, element_size);
memcpy(a, b, element_size);
memcpy(b, buffer, element_size);
}
int main(int argc, char *argv[]) {
int a = 10;
int b = 20;
double c = 10.1;
double d = 12.1;
printf("Before swap %d %d\n", a, b);
swap(&a, &b, sizeof(a));
printf("After swap %d %d\n", a, b);
printf("Before swap %f %f\n", c, d);
swap(&c, &d, sizeof(c));
printf("After swap %f %f", c, d);
exit(EXIT_SUCCESS);
}
|
the_stack_data/91626.c | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#include <time.h>
#include <windows.h>
#else
#include <pthread.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MAX_STRING 100
#define EXP_TABLE_SIZE 1000
#define MAX_EXP 6
#define MAX_SENTENCE_LENGTH 1000
#define MAX_CODE_LENGTH 40
const int vocab_hash_size = 30000000; // Maximum 30 * 0.7 = 21M words in the vocabulary
typedef float real; // Precision of float numbers
struct vocab_word {
long long cn;
int *point;
char *word, *code, codelen;
};
char train_file[MAX_STRING], output_file[MAX_STRING];
char save_vocab_file[MAX_STRING], read_vocab_file[MAX_STRING];
struct vocab_word *vocab;
int binary = 0, cbow = 1, debug_mode = 2, window = 5, min_count = 5, num_threads = 12, min_reduce = 1;
int *vocab_hash;
long long vocab_max_size = 1000, vocab_size = 0, layer1_size = 100;
long long train_words = 0, word_count_actual = 0, iter = 5, file_size = 0, classes = 0;
real alpha = 0.025, starting_alpha, sample = 1e-3;
real *syn0, *syn1, *syn1neg, *expTable;
clock_t start;
int hs = 0, negative = 5;
const int table_size = 1e8;
int *table;
void InitUnigramTable() {
int a, i;
double train_words_pow = 0;
double d1, power = 0.75;
table = (int *)malloc(table_size * sizeof(int));
for (a = 0; a < vocab_size; a++) train_words_pow += pow(vocab[a].cn, power);
i = 0;
d1 = pow(vocab[i].cn, power) / train_words_pow;
for (a = 0; a < table_size; a++) {
table[a] = i;
if (a / (double)table_size > d1) {
i++;
d1 += pow(vocab[i].cn, power) / train_words_pow;
}
if (i >= vocab_size) i = vocab_size - 1;
}
}
// Reads a single word from a file, assuming space + tab + EOL to be word boundaries
void ReadWord(char *word, FILE *fin) {
int a = 0, ch;
while (!feof(fin)) {
ch = fgetc(fin);
if (ch == 13) continue;
if ((ch == ' ') || (ch == '\t') || (ch == '\n')) {
if (a > 0) {
if (ch == '\n') ungetc(ch, fin);
break;
}
if (ch == '\n') {
strcpy(word, (char *)"</s>");
return;
} else continue;
}
word[a] = ch;
a++;
if (a >= MAX_STRING - 1) a--; // Truncate too long words
}
word[a] = 0;
}
// You must free the result if result is non-NULL.
char *str_replace(char *orig, char *rep, char *with) {
char *result; // the return string
char *ins; // the next insert point
char *tmp; // varies
int len_rep; // length of rep (the string to remove)
int len_with; // length of with (the string to replace rep with)
int len_front; // distance between rep and end of last rep
int count; // number of replacements
// sanity checks and initialization
if (!orig || !rep)
return NULL;
len_rep = strlen(rep);
if (len_rep == 0)
return NULL; // empty rep causes infinite loop during count
if (!with)
with = "";
len_with = strlen(with);
// count the number of replacements needed
ins = orig;
for (count = 0; tmp = strstr(ins, rep); ++count) {
ins = tmp + len_rep;
}
tmp = result = malloc(strlen(orig) + (len_with - len_rep) * count + 1);
if (!result)
return NULL;
// first time through the loop, all the variable are set correctly
// from here on,
// tmp points to the end of the result string
// ins points to the next occurrence of rep in orig
// orig points to the remainder of orig after "end of rep"
while (count--) {
ins = strstr(orig, rep);
len_front = ins - orig;
tmp = strncpy(tmp, orig, len_front) + len_front;
tmp = strcpy(tmp, with) + len_with;
orig += len_front + len_rep; // move to next "end of rep"
}
strcpy(tmp, orig);
return result;
}
// Returns hash value of a word
int GetWordHash(char *word) {
unsigned long long a, hash = 0;
for (a = 0; a < strlen(word); a++) hash = hash * 257 + word[a];
hash = hash % vocab_hash_size;
return hash;
}
// Returns position of a word in the vocabulary; if the word is not found, returns -1
int SearchVocab(char *word) {
unsigned int hash = GetWordHash(word);
while (1) {
if (vocab_hash[hash] == -1) return -1;
if (!strcmp(word, vocab[vocab_hash[hash]].word)) return vocab_hash[hash];
hash = (hash + 1) % vocab_hash_size;
}
return -1;
}
// Reads a word and returns its index in the vocabulary
int ReadWordIndex(FILE *fin) {
char word[MAX_STRING];
ReadWord(word, fin);
if (feof(fin)) return -1;
return SearchVocab(word);
}
// Adds a word to the vocabulary
int AddWordToVocab(char *word) {
unsigned int hash, length = strlen(word) + 1;
if (length > MAX_STRING) length = MAX_STRING;
vocab[vocab_size].word = (char *)calloc(length, sizeof(char));
strcpy(vocab[vocab_size].word, word);
vocab[vocab_size].cn = 0;
vocab_size++;
// Reallocate memory if needed
if (vocab_size + 2 >= vocab_max_size) {
vocab_max_size += 1000;
vocab = (struct vocab_word *)realloc(vocab, vocab_max_size * sizeof(struct vocab_word));
}
hash = GetWordHash(word);
while (vocab_hash[hash] != -1) hash = (hash + 1) % vocab_hash_size;
vocab_hash[hash] = vocab_size - 1;
return vocab_size - 1;
}
// Used later for sorting by word counts
int VocabCompare(const void *a, const void *b) {
return ((struct vocab_word *)b)->cn - ((struct vocab_word *)a)->cn;
}
// Sorts the vocabulary by frequency using word counts
void SortVocab() {
int a, size;
unsigned int hash;
// Sort the vocabulary and keep </s> at the first position
qsort(&vocab[1], vocab_size - 1, sizeof(struct vocab_word), VocabCompare);
for (a = 0; a < vocab_hash_size; a++) vocab_hash[a] = -1;
size = vocab_size;
train_words = 0;
for (a = 0; a < size; a++) {
// Words occuring less than min_count times will be discarded from the vocab
if ((vocab[a].cn < min_count) && (a != 0)) {
vocab_size--;
free(vocab[a].word);
} else {
// Hash will be re-computed, as after the sorting it is not actual
hash=GetWordHash(vocab[a].word);
while (vocab_hash[hash] != -1) hash = (hash + 1) % vocab_hash_size;
vocab_hash[hash] = a;
train_words += vocab[a].cn;
}
}
vocab = (struct vocab_word *)realloc(vocab, (vocab_size + 1) * sizeof(struct vocab_word));
// Allocate memory for the binary tree construction
for (a = 0; a < vocab_size; a++) {
vocab[a].code = (char *)calloc(MAX_CODE_LENGTH, sizeof(char));
vocab[a].point = (int *)calloc(MAX_CODE_LENGTH, sizeof(int));
}
}
// Reduces the vocabulary by removing infrequent tokens
void ReduceVocab() {
int a, b = 0;
unsigned int hash;
for (a = 0; a < vocab_size; a++) if (vocab[a].cn > min_reduce) {
vocab[b].cn = vocab[a].cn;
vocab[b].word = vocab[a].word;
b++;
} else free(vocab[a].word);
vocab_size = b;
for (a = 0; a < vocab_hash_size; a++) vocab_hash[a] = -1;
for (a = 0; a < vocab_size; a++) {
// Hash will be re-computed, as it is not actual
hash = GetWordHash(vocab[a].word);
while (vocab_hash[hash] != -1) hash = (hash + 1) % vocab_hash_size;
vocab_hash[hash] = a;
}
fflush(stdout);
min_reduce++;
}
// Create binary Huffman tree using the word counts
// Frequent words will have short uniqe binary codes
void CreateBinaryTree() {
long long a, b, i, min1i, min2i, pos1, pos2, point[MAX_CODE_LENGTH];
char code[MAX_CODE_LENGTH];
long long *count = (long long *)calloc(vocab_size * 2 + 1, sizeof(long long));
long long *binary = (long long *)calloc(vocab_size * 2 + 1, sizeof(long long));
long long *parent_node = (long long *)calloc(vocab_size * 2 + 1, sizeof(long long));
for (a = 0; a < vocab_size; a++) count[a] = vocab[a].cn;
for (a = vocab_size; a < vocab_size * 2; a++) count[a] = 1e15;
pos1 = vocab_size - 1;
pos2 = vocab_size;
// Following algorithm constructs the Huffman tree by adding one node at a time
for (a = 0; a < vocab_size - 1; a++) {
// First, find two smallest nodes 'min1, min2'
if (pos1 >= 0) {
if (count[pos1] < count[pos2]) {
min1i = pos1;
pos1--;
} else {
min1i = pos2;
pos2++;
}
} else {
min1i = pos2;
pos2++;
}
if (pos1 >= 0) {
if (count[pos1] < count[pos2]) {
min2i = pos1;
pos1--;
} else {
min2i = pos2;
pos2++;
}
} else {
min2i = pos2;
pos2++;
}
count[vocab_size + a] = count[min1i] + count[min2i];
parent_node[min1i] = vocab_size + a;
parent_node[min2i] = vocab_size + a;
binary[min2i] = 1;
}
// Now assign binary code to each vocabulary word
for (a = 0; a < vocab_size; a++) {
b = a;
i = 0;
while (1) {
code[i] = binary[b];
point[i] = b;
i++;
b = parent_node[b];
if (b == vocab_size * 2 - 2) break;
}
vocab[a].codelen = i;
vocab[a].point[0] = vocab_size - 2;
for (b = 0; b < i; b++) {
vocab[a].code[i - b - 1] = code[b];
vocab[a].point[i - b] = point[b] - vocab_size;
}
}
free(count);
free(binary);
free(parent_node);
}
void LearnVocabFromTrainFile() {
char word[MAX_STRING];
FILE *fin;
long long a, i;
for (a = 0; a < vocab_hash_size; a++) vocab_hash[a] = -1;
fin = fopen(train_file, "rb");
if (fin == NULL) {
printf("ERROR: training data file not found!\n");
exit(1);
}
vocab_size = 0;
AddWordToVocab((char *)"</s>");
while (1) {
ReadWord(word, fin);
if (feof(fin)) break;
train_words++;
if ((debug_mode > 1) && (train_words % 100000 == 0)) {
printf("%lldK%c", train_words / 1000, 13);
fflush(stdout);
}
i = SearchVocab(word);
if (i == -1) {
a = AddWordToVocab(word);
vocab[a].cn = 1;
} else vocab[i].cn++;
if (vocab_size > vocab_hash_size * 0.7) ReduceVocab();
}
SortVocab();
if (debug_mode > 0) {
printf("Vocab size: %lld\n", vocab_size);
printf("Words in train file: %lld\n", train_words);
}
file_size = ftell(fin);
fclose(fin);
}
void SaveVocab() {
long long i;
FILE *fo = fopen(save_vocab_file, "wb");
for (i = 0; i < vocab_size; i++) fprintf(fo, "%s %lld\n", vocab[i].word, vocab[i].cn);
fclose(fo);
}
void ReadVocab() {
long long a, i = 0;
char c;
char word[MAX_STRING];
FILE *fin = fopen(read_vocab_file, "rb");
if (fin == NULL) {
printf("Vocabulary file not found\n");
exit(1);
}
for (a = 0; a < vocab_hash_size; a++) vocab_hash[a] = -1;
vocab_size = 0;
while (1) {
ReadWord(word, fin);
if (feof(fin)) break;
a = AddWordToVocab(word);
fscanf(fin, "%lld%c", &vocab[a].cn, &c);
i++;
}
SortVocab();
if (debug_mode > 0) {
printf("Vocab size: %lld\n", vocab_size);
printf("Words in train file: %lld\n", train_words);
}
fin = fopen(train_file, "rb");
if (fin == NULL) {
printf("ERROR: training data file not found!\n");
exit(1);
}
fseek(fin, 0, SEEK_END);
file_size = ftell(fin);
fclose(fin);
}
void InitNet() {
long long a, b;
unsigned long long next_random = 1;
#ifdef _MSC_VER
syn0 = _aligned_malloc((long long)vocab_size * layer1_size * sizeof(real), 128);
#elif defined linux
a = posix_memalign((void **)&syn0, 128, (long long)vocab_size * layer1_size * sizeof(real));
#endif
if (syn0 == NULL) {printf("Memory allocation failed\n"); exit(1);}
if (hs) {
#ifdef _MSC_VER
syn1 = _aligned_malloc((long long)vocab_size * layer1_size * sizeof(real), 128);
#elif defined linux
a = posix_memalign((void **)&syn1, 128, (long long)vocab_size * layer1_size * sizeof(real));
#endif
if (syn1 == NULL) {printf("Memory allocation failed\n"); exit(1);}
for (a = 0; a < vocab_size; a++) for (b = 0; b < layer1_size; b++)
syn1[a * layer1_size + b] = 0;
}
if (negative>0) {
#ifdef _MSC_VER
syn1neg = _aligned_malloc((long long)vocab_size * layer1_size * sizeof(real), 128);
#elif defined linux
a = posix_memalign((void **)&syn1neg, 128, (long long)vocab_size * layer1_size * sizeof(real));
#endif
if (syn1neg == NULL) {printf("Memory allocation failed\n"); exit(1);}
for (a = 0; a < vocab_size; a++) for (b = 0; b < layer1_size; b++)
syn1neg[a * layer1_size + b] = 0;
}
for (a = 0; a < vocab_size; a++) for (b = 0; b < layer1_size; b++) {
next_random = next_random * (unsigned long long)25214903917 + 11;
syn0[a * layer1_size + b] = (((next_random & 0xFFFF) / (real)65536) - 0.5) / layer1_size;
}
CreateBinaryTree();
}
void *TrainModelThread(void *id) {
long long a, b, d, cw, word, last_word, sentence_length = 0, sentence_position = 0;
long long word_count = 0, last_word_count = 0, sen[MAX_SENTENCE_LENGTH + 1];
long long l1, l2, c, target, label, local_iter = iter;
unsigned long long next_random = (long long)id;
real f, g;
clock_t now;
real *neu1 = (real *)calloc(layer1_size, sizeof(real));
real *neu1e = (real *)calloc(layer1_size, sizeof(real));
FILE *fi = fopen(train_file, "rb");
fseek(fi, file_size / (long long)num_threads * (long long)id, SEEK_SET);
while (1) {
if (word_count - last_word_count > 10000) {
word_count_actual += word_count - last_word_count;
last_word_count = word_count;
if ((debug_mode > 1)) {
now=clock();
printf("%cAlpha: %f Progress: %.2f%% Words/thread/sec: %.2fk ", 13, alpha,
word_count_actual / (real)(iter * train_words + 1) * 100,
word_count_actual / ((real)(now - start + 1) / (real)CLOCKS_PER_SEC * 1000));
fflush(stdout);
}
alpha = starting_alpha * (1 - word_count_actual / (real)(iter * train_words + 1));
if (alpha < starting_alpha * 0.0001) alpha = starting_alpha * 0.0001;
}
if (sentence_length == 0) {
while (1) {
word = ReadWordIndex(fi);
if (feof(fi)) break;
if (word == -1) continue;
word_count++;
if (word == 0) break;
// The subsampling randomly discards frequent words while keeping the ranking same
if (sample > 0) {
real ran = (sqrt(vocab[word].cn / (sample * train_words)) + 1) * (sample * train_words) / vocab[word].cn;
next_random = next_random * (unsigned long long)25214903917 + 11;
if (ran < (next_random & 0xFFFF) / (real)65536) continue;
}
sen[sentence_length] = word;
sentence_length++;
if (sentence_length >= MAX_SENTENCE_LENGTH) break;
}
sentence_position = 0;
}
if (feof(fi) || (word_count > train_words / num_threads)) {
word_count_actual += word_count - last_word_count;
local_iter--;
if (local_iter == 0) break;
word_count = 0;
last_word_count = 0;
sentence_length = 0;
fseek(fi, file_size / (long long)num_threads * (long long)id, SEEK_SET);
continue;
}
word = sen[sentence_position];
if (word == -1) continue;
for (c = 0; c < layer1_size; c++) neu1[c] = 0;
for (c = 0; c < layer1_size; c++) neu1e[c] = 0;
next_random = next_random * (unsigned long long)25214903917 + 11;
b = next_random % window;
if (cbow) { //train the cbow architecture
// in -> hidden
cw = 0;
for (a = b; a < window * 2 + 1 - b; a++) if (a != window) {
c = sentence_position - window + a;
if (c < 0) continue;
if (c >= sentence_length) continue;
last_word = sen[c];
if (last_word == -1) continue;
for (c = 0; c < layer1_size; c++) neu1[c] += syn0[c + last_word * layer1_size];
cw++;
}
if (cw) {
for (c = 0; c < layer1_size; c++) neu1[c] /= cw;
if (hs) for (d = 0; d < vocab[word].codelen; d++) {
f = 0;
l2 = vocab[word].point[d] * layer1_size;
// Propagate hidden -> output
for (c = 0; c < layer1_size; c++) f += neu1[c] * syn1[c + l2];
if (f <= -MAX_EXP) continue;
else if (f >= MAX_EXP) continue;
else f = expTable[(int)((f + MAX_EXP) * (EXP_TABLE_SIZE / MAX_EXP / 2))];
// 'g' is the gradient multiplied by the learning rate
g = (1 - vocab[word].code[d] - f) * alpha;
// Propagate errors output -> hidden
for (c = 0; c < layer1_size; c++) neu1e[c] += g * syn1[c + l2];
// Learn weights hidden -> output
for (c = 0; c < layer1_size; c++) syn1[c + l2] += g * neu1[c];
}
// NEGATIVE SAMPLING
if (negative > 0) for (d = 0; d < negative + 1; d++) {
if (d == 0) {
target = word;
label = 1;
} else {
next_random = next_random * (unsigned long long)25214903917 + 11;
target = table[(next_random >> 16) % table_size];
if (target == 0) target = next_random % (vocab_size - 1) + 1;
if (target == word) continue;
label = 0;
}
l2 = target * layer1_size;
f = 0;
for (c = 0; c < layer1_size; c++) f += neu1[c] * syn1neg[c + l2];
if (f > MAX_EXP) g = (label - 1) * alpha;
else if (f < -MAX_EXP) g = (label - 0) * alpha;
else g = (label - expTable[(int)((f + MAX_EXP) * (EXP_TABLE_SIZE / MAX_EXP / 2))]) * alpha;
for (c = 0; c < layer1_size; c++) neu1e[c] += g * syn1neg[c + l2];
for (c = 0; c < layer1_size; c++) syn1neg[c + l2] += g * neu1[c];
}
// hidden -> in
for (a = b; a < window * 2 + 1 - b; a++) if (a != window) {
c = sentence_position - window + a;
if (c < 0) continue;
if (c >= sentence_length) continue;
last_word = sen[c];
if (last_word == -1) continue;
for (c = 0; c < layer1_size; c++) syn0[c + last_word * layer1_size] += neu1e[c];
}
}
} else { //train skip-gram
for (a = b; a < window * 2 + 1 - b; a++) if (a != window) {
c = sentence_position - window + a;
if (c < 0) continue;
if (c >= sentence_length) continue;
last_word = sen[c];
if (last_word == -1) continue;
l1 = last_word * layer1_size;
for (c = 0; c < layer1_size; c++) neu1e[c] = 0;
// HIERARCHICAL SOFTMAX
if (hs) for (d = 0; d < vocab[word].codelen; d++) {
f = 0;
l2 = vocab[word].point[d] * layer1_size;
// Propagate hidden -> output
for (c = 0; c < layer1_size; c++) f += syn0[c + l1] * syn1[c + l2];
if (f <= -MAX_EXP) continue;
else if (f >= MAX_EXP) continue;
else f = expTable[(int)((f + MAX_EXP) * (EXP_TABLE_SIZE / MAX_EXP / 2))];
// 'g' is the gradient multiplied by the learning rate
g = (1 - vocab[word].code[d] - f) * alpha;
// Propagate errors output -> hidden
for (c = 0; c < layer1_size; c++) neu1e[c] += g * syn1[c + l2];
// Learn weights hidden -> output
for (c = 0; c < layer1_size; c++) syn1[c + l2] += g * syn0[c + l1];
}
// NEGATIVE SAMPLING
if (negative > 0) for (d = 0; d < negative + 1; d++) {
if (d == 0) {
target = word;
label = 1;
} else {
next_random = next_random * (unsigned long long)25214903917 + 11;
target = table[(next_random >> 16) % table_size];
if (target == 0) target = next_random % (vocab_size - 1) + 1;
if (target == word) continue;
label = 0;
}
l2 = target * layer1_size;
f = 0;
for (c = 0; c < layer1_size; c++) f += syn0[c + l1] * syn1neg[c + l2];
if (f > MAX_EXP) g = (label - 1) * alpha;
else if (f < -MAX_EXP) g = (label - 0) * alpha;
else g = (label - expTable[(int)((f + MAX_EXP) * (EXP_TABLE_SIZE / MAX_EXP / 2))]) * alpha;
for (c = 0; c < layer1_size; c++) neu1e[c] += g * syn1neg[c + l2];
for (c = 0; c < layer1_size; c++) syn1neg[c + l2] += g * syn0[c + l1];
}
// Learn weights input -> hidden
for (c = 0; c < layer1_size; c++) syn0[c + l1] += neu1e[c];
}
}
sentence_position++;
if (sentence_position >= sentence_length) {
sentence_length = 0;
continue;
}
}
fclose(fi);
free(neu1);
free(neu1e);
#ifdef _MSC_VER
_endthreadex(0);
#elif defined linux
pthread_exit(NULL);
#endif
}
#ifdef _MSC_VER
DWORD WINAPI TrainModelThread_win(LPVOID tid){
TrainModelThread(tid);
return 0;
}
#endif
void TrainModel() {
long a, b, c, d;
FILE *fo;
printf("Starting training using file %s\n", train_file);
starting_alpha = alpha;
if (read_vocab_file[0] != 0) ReadVocab(); else LearnVocabFromTrainFile();
if (save_vocab_file[0] != 0) SaveVocab();
if (output_file[0] == 0) return;
InitNet();
if (negative > 0) InitUnigramTable();
start = clock();
#ifdef _MSC_VER
HANDLE *pt = (HANDLE *)malloc(num_threads * sizeof(HANDLE));
for (int i = 0; i < num_threads; i++){
pt[i] = (HANDLE)_beginthreadex(NULL, 0, TrainModelThread_win, (void *)i, 0, NULL);
}
WaitForMultipleObjects(num_threads, pt, TRUE, INFINITE);
for (int i = 0; i < num_threads; i++){
CloseHandle(pt[i]);
}
free(pt);
#elif defined linux
pthread_t *pt = (pthread_t *)malloc(num_threads * sizeof(pthread_t));
for (a = 0; a < num_threads; a++) pthread_create(&pt[a], NULL, TrainModelThread, (void *)a);
for (a = 0; a < num_threads; a++) pthread_join(pt[a], NULL);
#endif
fo = fopen(output_file, "wb");
FILE * fo_second;
if (binary==2) {
char * output_file_ = str_replace(output_file, ".txt", ".bin");
fo_second = fopen(output_file_, "wb");
}
if (classes == 0) {
if (binary==2) { /* save both binary and text formats */
/* text format */
fprintf(fo, "%lld %lld\n", vocab_size, layer1_size);
for (a = 0; a < vocab_size; a++) {
fprintf(fo, "%s ", vocab[a].word);
for (b = 0; b < layer1_size; b++)
fprintf(fo, "%lf ", syn0[a * layer1_size + b]);
fprintf(fo, "\n");
}
/* binary format */
fprintf(fo_second, "%lld %lld\n", vocab_size, layer1_size);
for (a = 0; a < vocab_size; a++) {
fprintf(fo_second, "%s ", vocab[a].word);
for (b = 0; b < layer1_size; b++)
fwrite(&syn0[a * layer1_size + b], sizeof(real), 1, fo_second);
fprintf(fo_second, "\n");
}
fclose(fo_second);
} else {
// Save the word vectors in either binary or text format
fprintf(fo, "%lld %lld\n", vocab_size, layer1_size);
for (a = 0; a < vocab_size; a++) {
fprintf(fo, "%s ", vocab[a].word);
if (binary==1) {
for (b = 0; b < layer1_size; b++)
fwrite(&syn0[a * layer1_size + b], sizeof(real), 1, fo);
}
else if (binary==0) {
for (b = 0; b < layer1_size; b++)
fprintf(fo, "%lf ", syn0[a * layer1_size + b]);
}
fprintf(fo, "\n");
}
}
} else {
// Run K-means on the word vectors
int clcn = classes, iter = 10, closeid;
int *centcn = (int *)malloc(classes * sizeof(int));
int *cl = (int *)calloc(vocab_size, sizeof(int));
real closev, x;
real *cent = (real *)calloc(classes * layer1_size, sizeof(real));
for (a = 0; a < vocab_size; a++) cl[a] = a % clcn;
for (a = 0; a < iter; a++) {
for (b = 0; b < clcn * layer1_size; b++) cent[b] = 0;
for (b = 0; b < clcn; b++) centcn[b] = 1;
for (c = 0; c < vocab_size; c++) {
for (d = 0; d < layer1_size; d++) cent[layer1_size * cl[c] + d] += syn0[c * layer1_size + d];
centcn[cl[c]]++;
}
for (b = 0; b < clcn; b++) {
closev = 0;
for (c = 0; c < layer1_size; c++) {
cent[layer1_size * b + c] /= centcn[b];
closev += cent[layer1_size * b + c] * cent[layer1_size * b + c];
}
closev = sqrt(closev);
for (c = 0; c < layer1_size; c++) cent[layer1_size * b + c] /= closev;
}
for (c = 0; c < vocab_size; c++) {
closev = -10;
closeid = 0;
for (d = 0; d < clcn; d++) {
x = 0;
for (b = 0; b < layer1_size; b++) x += cent[layer1_size * d + b] * syn0[c * layer1_size + b];
if (x > closev) {
closev = x;
closeid = d;
}
}
cl[c] = closeid;
}
}
// Save the K-means classes
for (a = 0; a < vocab_size; a++) fprintf(fo, "%s %d\n", vocab[a].word, cl[a]);
free(centcn);
free(cent);
free(cl);
}
fclose(fo);
}
int ArgPos(char *str, int argc, char **argv) {
int a;
for (a = 1; a < argc; a++) if (!strcmp(str, argv[a])) {
if (a == argc - 1) {
printf("Argument missing for %s\n", str);
exit(1);
}
return a;
}
return -1;
}
int main(int argc, char **argv) {
int i;
if (argc == 1) {
printf("WORD VECTOR estimation toolkit v 0.1c\n\n");
printf("Options:\n");
printf("Parameters for training:\n");
printf("\t-train <file>\n");
printf("\t\tUse text data from <file> to train the model\n");
printf("\t-output <file>\n");
printf("\t\tUse <file> to save the resulting word vectors / word clusters\n");
printf("\t-size <int>\n");
printf("\t\tSet size of word vectors; default is 100\n");
printf("\t-window <int>\n");
printf("\t\tSet max skip length between words; default is 5\n");
printf("\t-sample <float>\n");
printf("\t\tSet threshold for occurrence of words. Those that appear with higher frequency in the training data\n");
printf("\t\twill be randomly down-sampled; default is 1e-3, useful range is (0, 1e-5)\n");
printf("\t-hs <int>\n");
printf("\t\tUse Hierarchical Softmax; default is 0 (not used)\n");
printf("\t-negative <int>\n");
printf("\t\tNumber of negative examples; default is 5, common values are 3 - 10 (0 = not used)\n");
printf("\t-threads <int>\n");
printf("\t\tUse <int> threads (default 12)\n");
printf("\t-iter <int>\n");
printf("\t\tRun more training iterations (default 5)\n");
printf("\t-min-count <int>\n");
printf("\t\tThis will discard words that appear less than <int> times; default is 5\n");
printf("\t-alpha <float>\n");
printf("\t\tSet the starting learning rate; default is 0.025 for skip-gram and 0.05 for CBOW\n");
printf("\t-classes <int>\n");
printf("\t\tOutput word classes rather than word vectors; default number of classes is 0 (vectors are written)\n");
printf("\t-debug <int>\n");
printf("\t\tSet the debug mode (default = 2 = more info during training)\n");
printf("\t-binary <int>\n");
printf("\t\tSave the resulting vectors in binary moded; default is 0 (off)\n");
printf("\t-save-vocab <file>\n");
printf("\t\tThe vocabulary will be saved to <file>\n");
printf("\t-read-vocab <file>\n");
printf("\t\tThe vocabulary will be read from <file>, not constructed from the training data\n");
printf("\t-cbow <int>\n");
printf("\t\tUse the continuous bag of words model; default is 1 (use 0 for skip-gram model)\n");
printf("\nExamples:\n");
printf("./word2vec -train data.txt -output vec.txt -size 200 -window 5 -sample 1e-4 -negative 5 -hs 0 -binary 0 -cbow 1 -iter 3\n\n");
return 0;
}
output_file[0] = 0;
save_vocab_file[0] = 0;
read_vocab_file[0] = 0;
if ((i = ArgPos((char *)"-size", argc, argv)) > 0) layer1_size = atoi(argv[i + 1]);
if ((i = ArgPos((char *)"-train", argc, argv)) > 0) strcpy(train_file, argv[i + 1]);
if ((i = ArgPos((char *)"-save-vocab", argc, argv)) > 0) strcpy(save_vocab_file, argv[i + 1]);
if ((i = ArgPos((char *)"-read-vocab", argc, argv)) > 0) strcpy(read_vocab_file, argv[i + 1]);
if ((i = ArgPos((char *)"-debug", argc, argv)) > 0) debug_mode = atoi(argv[i + 1]);
if ((i = ArgPos((char *)"-binary", argc, argv)) > 0) binary = atoi(argv[i + 1]);
if ((i = ArgPos((char *)"-cbow", argc, argv)) > 0) cbow = atoi(argv[i + 1]);
if (cbow) alpha = 0.05;
if ((i = ArgPos((char *)"-alpha", argc, argv)) > 0) alpha = atof(argv[i + 1]);
if ((i = ArgPos((char *)"-output", argc, argv)) > 0) strcpy(output_file, argv[i + 1]);
if ((i = ArgPos((char *)"-window", argc, argv)) > 0) window = atoi(argv[i + 1]);
if ((i = ArgPos((char *)"-sample", argc, argv)) > 0) sample = atof(argv[i + 1]);
if ((i = ArgPos((char *)"-hs", argc, argv)) > 0) hs = atoi(argv[i + 1]);
if ((i = ArgPos((char *)"-negative", argc, argv)) > 0) negative = atoi(argv[i + 1]);
if ((i = ArgPos((char *)"-threads", argc, argv)) > 0) num_threads = atoi(argv[i + 1]);
if ((i = ArgPos((char *)"-iter", argc, argv)) > 0) iter = atoi(argv[i + 1]);
if ((i = ArgPos((char *)"-min-count", argc, argv)) > 0) min_count = atoi(argv[i + 1]);
if ((i = ArgPos((char *)"-classes", argc, argv)) > 0) classes = atoi(argv[i + 1]);
vocab = (struct vocab_word *)calloc(vocab_max_size, sizeof(struct vocab_word));
vocab_hash = (int *)calloc(vocab_hash_size, sizeof(int));
expTable = (real *)malloc((EXP_TABLE_SIZE + 1) * sizeof(real));
for (i = 0; i < EXP_TABLE_SIZE; i++) {
expTable[i] = exp((i / (real)EXP_TABLE_SIZE * 2 - 1) * MAX_EXP); // Precompute the exp() table
expTable[i] = expTable[i] / (expTable[i] + 1); // Precompute f(x) = x / (x + 1)
}
TrainModel();
return 0;
}
|
the_stack_data/36074850.c | /* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* ====================================================================
* Copyright (c) 2007 Carnegie Mellon University. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* This work was supported in part by funding from the Defense Advanced
* Research Projects Agency and the National Science Foundation of the
* United States of America, and the CMU Sphinx Speech Consortium.
*
* THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
* NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* ====================================================================
/*********************************************************************
*
* File: string_wce.c
*
* Description: string functions missing from Windows CE standard library
*
* Author: Silvio Moioli <[email protected]>
*
*********************************************************************/
#include <string.h>
#include <stdlib.h>
#if defined(_WIN32_WCE)
char *strdup(const char * str)
{
char *p;
p = malloc( strlen(str)+1 );
strcpy( p, str );
return p;
}
#endif
|
the_stack_data/20449192.c | // this test case is the same as linked_regions01, but the
// variables used in the main loop are declared at the
// beginning of the function
// the regions of the main loop nest are erroneously empty
// despite recent changes in normalization strategy (r20629)
// However if I revert r20629, test case linked_regions01
// yields false results.
#include <stdio.h>
int main()
{
int ii, jj, x0;
double x1;
int N = 100;
double A[100][100];
for(ii = 1; ii <= N; ii += 1)
for(jj = 1; jj <= N; jj += 1) {
x0 = ii*jj;
x1 = (double) N/2;
if (x0<x1) {
A[N-ii-1][ii+jj-1] = 1.0;
A[ii-1][N-ii-jj-1] = 1.0;
}
if (ii==jj)
A[ii-1][jj-1] = 1.0;
}
for (int i=0; i<N; i++)
for (int j=0; j<N; j++)
printf("%f\n", A[i][j]);
return 0;
}
|
the_stack_data/176706058.c | /****************************************************************************
*
* Copyright 2020 Samsung Electronics All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
****************************************************************************/
#if DEVICE_USTICKER
#include <stddef.h>
#include "cmsis.h"
#include "us_ticker_api.h"
#include "us_ticker.h"
#include "PeripheralNames.h"
#define TIMER_TARGET_COUNT_DEFAULT 0xFFFFFFFF
uint32_t us_ticker_initialized = 0;
uint32_t g_us_last_return = 0;
void us_ticker_enable_interrupt(void);
void us_ticker_disable_interrupt(void);
const ticker_info_t *us_ticker_get_info()
{
static const ticker_info_t info = {
26000000, //26Mhz
32 //32bit counter
};
return &info;
}
static void enable_timer0(void)
{
putreg32(0, S5JS100_TIMER0_BASE + S5JS100_TIMER_UP_DOWN_SEL); // Set Up count
putreg32(TIMER_TARGET_COUNT_DEFAULT, S5JS100_TIMER0_BASE + S5JS100_TIMER_LOAD_VALUE);
putreg32(0x1, S5JS100_TIMER0_BASE + S5JS100_TIMER_CDC_ENABLE);
putreg32(TIMER_TARGET_COUNT_DEFAULT, S5JS100_TIMER0_BASE + S5JS100_TIMER_CDC_COUNT_VALUE);
putreg32(0, S5JS100_TIMER0_BASE + S5JS100_TIMER_INT_SEL);
putreg32(0, S5JS100_TIMER0_BASE + S5JS100_TIMER_INT_ENABLE);
putreg32(3, S5JS100_TIMER0_BASE + S5JS100_TIMER_CONTROL);
}
static void disable_timer0(void)
{
putreg32(0, S5JS100_TIMER0_BASE + S5JS100_TIMER_CONTROL);
putreg32(0, S5JS100_TIMER0_BASE + S5JS100_TIMER_UP_DOWN_SEL);
putreg32(TIMER_TARGET_COUNT_DEFAULT, S5JS100_TIMER0_BASE + S5JS100_TIMER_LOAD_VALUE);
putreg32(TIMER_TARGET_COUNT_DEFAULT, S5JS100_TIMER0_BASE + S5JS100_TIMER_INT_SEL);
putreg32(0, S5JS100_TIMER0_BASE + S5JS100_TIMER_INT_ENABLE);
putreg32(0x0, S5JS100_TIMER0_BASE + S5JS100_TIMER_CDC_ENABLE);
putreg32(TIMER_TARGET_COUNT_DEFAULT, S5JS100_TIMER0_BASE + S5JS100_TIMER_CDC_COUNT_VALUE);
}
static void enable_timer1(void)
{
putreg32(0, S5JS100_TIMER1_BASE + S5JS100_TIMER_UP_DOWN_SEL); // Set Up count
putreg32(TIMER_TARGET_COUNT_DEFAULT, S5JS100_TIMER1_BASE + S5JS100_TIMER_LOAD_VALUE);
putreg32(0, S5JS100_TIMER1_BASE + S5JS100_TIMER_INT_SEL);
putreg32(0, S5JS100_TIMER1_BASE + S5JS100_TIMER_INT_ENABLE);
putreg32(3, S5JS100_TIMER1_BASE + S5JS100_TIMER_CONTROL);
}
static void disable_timer1(void)
{
putreg32(0, S5JS100_TIMER1_BASE + S5JS100_TIMER_UP_DOWN_SEL);
putreg32(TIMER_TARGET_COUNT_DEFAULT, S5JS100_TIMER1_BASE + S5JS100_TIMER_LOAD_VALUE);
putreg32(0, S5JS100_TIMER1_BASE + S5JS100_TIMER_INT_SEL);
putreg32(0, S5JS100_TIMER1_BASE + S5JS100_TIMER_CONTROL);
putreg32(0, S5JS100_TIMER1_BASE + S5JS100_TIMER_INT_ENABLE);
}
void __us_ticker_irq_handler(void)
{
us_ticker_disable_interrupt();
us_ticker_clear_interrupt();
us_ticker_irq_handler();
}
void us_ticker_init(void)
{
/**
** We use two timer, timer0 channel to be used timer and timer1 to be used compare timer
**/
if (!us_ticker_initialized) {
us_ticker_initialized = 1;
/* Enable timer0 to timer */
enable_timer0();
/* Enable timer1 to compare and Disable timer1 interrupt */
enable_timer1();
/* Install the interrupt handler(timer0) */
NVIC_SetVector((IRQn_Type)S5JS100_IRQ_TINT1, (uint32_t)__us_ticker_irq_handler);
NVIC_EnableIRQ((IRQn_Type)S5JS100_IRQ_TINT1);
return;
}
/* Re_init should Disable timer1(compare) interrupt */
us_ticker_disable_interrupt();
us_ticker_clear_interrupt();
}
uint32_t us_ticker_read()
{
/* from timer0 read count value */
if (!us_ticker_initialized) {
us_ticker_init();
}
uint32_t current_count = TIMER_TARGET_COUNT_DEFAULT - getreg32(S5JS100_TIMER0_BASE + S5JS100_TIMER_CDC_COUNT_VALUE);
g_us_last_return = current_count;
return current_count;
}
void us_ticker_set_interrupt(timestamp_t timestamp)
{
uint32_t past_tick = TIMER_TARGET_COUNT_DEFAULT - getreg32(S5JS100_TIMER0_BASE + S5JS100_TIMER_CDC_COUNT_VALUE) - g_us_last_return;
putreg32(timestamp - g_us_last_return - past_tick, S5JS100_TIMER1_BASE + S5JS100_TIMER_LOAD_CON_VALUE);
us_ticker_enable_interrupt();
}
void us_ticker_fire_interrupt(void)
{
NVIC_SetPendingIRQ((IRQn_Type)S5JS100_IRQ_TINT1);
}
void us_ticker_disable_interrupt(void)
{
putreg32(0, S5JS100_TIMER1_BASE + S5JS100_TIMER_INT_ENABLE);
}
void us_ticker_enable_interrupt(void)
{
putreg32(1, S5JS100_TIMER1_BASE + S5JS100_TIMER_INT_ENABLE);
}
void us_ticker_clear_interrupt(void)
{
putreg32(1, S5JS100_TIMER1_BASE + S5JS100_TIMER_INT_CLEAR);
NVIC_ClearPendingIRQ((IRQn_Type)S5JS100_IRQ_TINT1);
}
void us_ticker_free(void)
{
us_ticker_initialized = 0;
disable_timer1();
NVIC_DisableIRQ((IRQn_Type)S5JS100_IRQ_TINT1);
disable_timer0();
}
#endif // DEVICE_USTICKER
|
the_stack_data/215767159.c | #include <stdio.h>
/*First comm*/
char *a="#include <stdio.h>%c%c*First comm*%c%cchar *a=%c%s%c;%cint main(){%c*Second comm*%cprintf(a, 10, '/', '/', 10, 34, a, 34, 10, '/', '/', 10, 10); return 0;}%cvoid secondfunction(){}%c";
int main(){/*Second comm*/printf(a, 10, '/', '/', 10, 34, a, 34, 10, '/', '/', 10, 10); return 0;}
void secondfunction(){}
|
the_stack_data/56426.c | /* Generated by CIL v. 1.7.0 */
/* print_CIL_Input is false */
struct _IO_FILE;
struct timeval;
extern float strtof(char const *str , char const *endptr ) ;
extern void signal(int sig , void *func ) ;
typedef struct _IO_FILE FILE;
extern int atoi(char const *s ) ;
extern double strtod(char const *str , char const *endptr ) ;
extern int fclose(void *stream ) ;
extern void *fopen(char const *filename , char const *mode ) ;
extern void abort() ;
extern void exit(int status ) ;
extern int raise(int sig ) ;
extern int fprintf(struct _IO_FILE *stream , char const *format , ...) ;
extern int strcmp(char const *a , char const *b ) ;
extern int rand() ;
extern unsigned long strtoul(char const *str , char const *endptr , int base ) ;
void RandomFunc(unsigned int input[1] , unsigned int output[1] ) ;
extern int strncmp(char const *s1 , char const *s2 , unsigned long maxlen ) ;
extern int gettimeofday(struct timeval *tv , void *tz , ...) ;
extern int printf(char const *format , ...) ;
int main(int argc , char *argv[] ) ;
void megaInit(void) ;
extern unsigned long strlen(char const *s ) ;
extern long strtol(char const *str , char const *endptr , int base ) ;
extern unsigned long strnlen(char const *s , unsigned long maxlen ) ;
extern void *memcpy(void *s1 , void const *s2 , unsigned long size ) ;
struct timeval {
long tv_sec ;
long tv_usec ;
};
extern void *malloc(unsigned long size ) ;
extern int scanf(char const *format , ...) ;
void megaInit(void)
{
{
}
}
void RandomFunc(unsigned int input[1] , unsigned int output[1] )
{
unsigned int state[1] ;
char copy12 ;
unsigned short copy13 ;
unsigned short copy14 ;
{
state[0UL] = (input[0UL] & 914778474UL) << 7U;
if ((state[0UL] >> 1U) & 1U) {
if ((state[0UL] >> 1U) & 1U) {
if (! ((state[0UL] >> 4U) & 1U)) {
copy12 = *((char *)(& state[0UL]) + 3);
*((char *)(& state[0UL]) + 3) = *((char *)(& state[0UL]) + 0);
*((char *)(& state[0UL]) + 0) = copy12;
}
} else
if ((state[0UL] >> 3U) & 1U) {
copy13 = *((unsigned short *)(& state[0UL]) + 1);
*((unsigned short *)(& state[0UL]) + 1) = *((unsigned short *)(& state[0UL]) + 0);
*((unsigned short *)(& state[0UL]) + 0) = copy13;
copy13 = *((unsigned short *)(& state[0UL]) + 0);
*((unsigned short *)(& state[0UL]) + 0) = *((unsigned short *)(& state[0UL]) + 1);
*((unsigned short *)(& state[0UL]) + 1) = copy13;
} else {
state[0UL] >>= ((state[0UL] >> 3U) & 7U) | 1UL;
}
} else
if ((state[0UL] >> 2U) & 1U) {
copy14 = *((unsigned short *)(& state[0UL]) + 0);
*((unsigned short *)(& state[0UL]) + 0) = *((unsigned short *)(& state[0UL]) + 1);
*((unsigned short *)(& state[0UL]) + 1) = copy14;
} else {
state[0UL] >>= (state[0UL] & 7U) | 1UL;
}
output[0UL] = state[0UL] >> 1U;
}
}
int main(int argc , char *argv[] )
{
unsigned int input[1] ;
unsigned int output[1] ;
int randomFuns_i5 ;
unsigned int randomFuns_value6 ;
int randomFuns_main_i7 ;
{
megaInit();
if (argc != 2) {
printf("Call this program with %i arguments\n", 1);
exit(-1);
} else {
}
randomFuns_i5 = 0;
while (randomFuns_i5 < 1) {
randomFuns_value6 = (unsigned int )strtoul(argv[randomFuns_i5 + 1], 0, 10);
input[randomFuns_i5] = randomFuns_value6;
randomFuns_i5 ++;
}
RandomFunc(input, output);
if (output[0] == 263424U) {
printf("You win!\n");
} else {
}
randomFuns_main_i7 = 0;
while (randomFuns_main_i7 < 1) {
printf("%u\n", output[randomFuns_main_i7]);
randomFuns_main_i7 ++;
}
}
}
|
the_stack_data/71360.c | #include <stdio.h>
#include <string.h>
int main()
{
int k;
char a[23], b[23];
scanf("%d", &k);
while(k--){
scanf("%s%s", a, b);
for(int i = 0; i < strlen(a) + strlen(b); i++){
if(i & 1)
putchar(b[strlen(b) - 1 - (i >> 1)]);
else
putchar(a[i >> 1]);
}
putchar('\n');
}
return 0;
} |
the_stack_data/175144429.c | /**ARGS: -DFOO1=1 -UFOO2 -DBAR1=1 -UBAR2 */
/**SYSCODE: = 1 | 16 */
#if 1 == BAR1
KEEP ME
#endif
|
the_stack_data/140353.c | /*
* Copyright © 1987 Bart Massey
* [This program is licensed under the "MIT License"]
* Please see the file COPYING in the source
* distribution of this software for license terms.
*/
/* machine generated -- be careful! */
#include <X11/Intrinsic.h>
String fallback[] = {
"TTT.layout.orientation: vertical",
"TTT.layout.board.orientation: horizontal",
"TTT.layout.board.packing: pack_column",
"TTT.layout.board.numColumns: 3",
"TTT.layout.board.adjustLast: false",
"TTT.layout.board.isaligned: true",
"TTT.layout.board.PushButton.labelType: pixmap",
"TTT.layout.buttonBox.quit.bottomAttachment: attach_form",
"TTT.layout.buttonBox.quit.bottomOffset: 15",
"TTT.layout.buttonBox.quit.labelString: Quit",
"TTT.layout.buttonBox.new.leftAttachment: attach_widget",
"TTT.layout.buttonBox.new.leftOffset: 10",
"TTT.layout.buttonBox.new.bottomAttachment: attach_form",
"TTT.layout.buttonBox.new.bottomOffset: 15",
"TTT.layout.buttonBox.new.labelString: New",
"TTT.layout.buttonBox.level.leftAttachment: attach_widget",
"TTT.layout.buttonBox.level.leftOffset: 10",
"TTT.layout.buttonBox.level.rightAttachment: attach_form",
"TTT.layout.buttonBox.level.titleString: Level",
"TTT.layout.buttonBox.level.maximum: 9",
"TTT.layout.buttonBox.level.minimum: 0",
"TTT.layout.buttonBox.level.orientation: horizontal",
"TTT.layout.buttonBox.level.showValue: true",
"TTT.layout.status.alignment: alignment_center",
"TTT.layout.status.recomputeSize: false",
"TTT.layout.status.borderWidth: 1",
NULL
};
|
the_stack_data/182951914.c | /* PR middle-end/70025 */
/* { dg-do run } */
/* { dg-additional-options "-mtune=z10" { target s390*-*-* } } */
/* { dg-require-effective-target int32plus } */
typedef char (*F) (unsigned long, void *);
typedef union { struct A { char a1, a2, a3, a4; unsigned long a5; F a6; void *a7; } b; char c[1]; } B;
struct C { const char *c1; unsigned long c2; };
typedef struct D { unsigned long d1; int d2; const char *d3; unsigned long d4, d5; struct C d6[49]; char d7[8]; } E[1];
__attribute__ ((noinline, noclone))
void foo (register E p)
{
asm volatile ("" : : "r" (p) : "memory");
}
__attribute__ ((noinline, noclone))
void bar (register E p)
{
register unsigned long k = p[0].d1 + 1;
register struct C *l = &p[0].d6[p[0].d2];
register const char *m = l->c1;
p[0].d1 = k;
if (*m == '\0')
{
register struct A *f = &((B *) m)->b;
register unsigned long n = l->c2;
register unsigned long o = n + f->a5;
if (k < o)
{
register unsigned long i;
register unsigned long q = k + 8;
register F a6 = f->a6;
register void *a7 = f->a7;
if (q > o)
q = o;
for (i = k; i < q; i++)
p[0].d7[i - k] = (*a6) (i - n, a7);
p[0].d4 = k;
p[0].d3 = p[0].d7;
p[0].d5 = q;
return;
}
}
while (p[0].d2 > 0 && l[0].c2 != l[-1].c2)
{
p[0].d2--;
l--;
}
if (p[0].d2 == 0)
{
p[0].d2 = 0x55555555;
return;
}
p[0].d2--;
foo (p);
}
char
baz (unsigned long i, void *j)
{
if (j != 0)
__builtin_abort ();
return (char) i;
}
int
main ()
{
struct D p;
struct A f;
__builtin_memset (&f, 0, sizeof (f));
f.a2 = 4;
f.a5 = 13;
f.a6 = baz;
__builtin_memset (&p, 0, sizeof (p));
p.d6[0].c1 = (const char *) &f;
bar (&p);
if (p.d4 != 1 || p.d5 != 9 || p.d3 != p.d7)
__builtin_abort ();
return 0;
}
|
the_stack_data/128911.c | #include <stdio.h>
#include <string.h>
int main(int argc, char** argv) {
char str[80];
strcpy(str, "Hello world program");
strcat(str, " written by: ");
strcat(str, argv[1]);
puts(str);
return 0;
} |
the_stack_data/1157948.c | void dec2bin(int decimal, char *binary)
{
int k = 0, n = 0;
int neg_flag = 0;
int remain;
int old_decimal;
char temp[80];
if (decimal < 0)
{
decimal = -decimal;
neg_flag = 1;
}
do
{
old_decimal = decimal;
remain = decimal % 2;
decimal = decimal / 2;
/*printf("%d/2 = %d remainder = %d\n", old_decimal, decimal, remain);*/
temp[k++] = remain + '0';
} while (decimal > 0);
if (neg_flag)
temp[k++] = '-';
else
temp[k++] = ' ';
while (k >= 0)
binary[n++] = temp[--k];
binary[n-1] = 0;
}
|
the_stack_data/92328420.c | #include <stdio.h>
#include <stdlib.h>
int main(){
int mat[3][3];
int i, j, soma;
soma = 0;
for(i=0;i<6;i++){
for(j=0;j<6;j++){
printf("\n %d", soma);
soma = soma + mat[i][j];
}
}
printf("\n %d", soma);
}
|
the_stack_data/181392577.c | #include <stdio.h>
main()
{
int i = 100;
int j = 200;
printf("%d", i);
printf("%d", j);
} |
the_stack_data/225143936.c | /* Generated by CIL v. 1.7.0 */
/* print_CIL_Input is false */
struct _IO_FILE;
struct timeval;
extern void signal(int sig , void *func ) ;
extern float strtof(char const *str , char const *endptr ) ;
typedef struct _IO_FILE FILE;
extern int atoi(char const *s ) ;
extern double strtod(char const *str , char const *endptr ) ;
extern int fclose(void *stream ) ;
extern void *fopen(char const *filename , char const *mode ) ;
extern void abort() ;
extern void exit(int status ) ;
extern int raise(int sig ) ;
extern int fprintf(struct _IO_FILE *stream , char const *format , ...) ;
extern int strcmp(char const *a , char const *b ) ;
extern int rand() ;
extern unsigned long strtoul(char const *str , char const *endptr , int base ) ;
void RandomFunc(unsigned int input[1] , unsigned int output[1] ) ;
extern int strncmp(char const *s1 , char const *s2 , unsigned long maxlen ) ;
extern int gettimeofday(struct timeval *tv , void *tz , ...) ;
extern int printf(char const *format , ...) ;
int main(int argc , char *argv[] ) ;
void megaInit(void) ;
extern unsigned long strlen(char const *s ) ;
extern long strtol(char const *str , char const *endptr , int base ) ;
extern unsigned long strnlen(char const *s , unsigned long maxlen ) ;
extern void *memcpy(void *s1 , void const *s2 , unsigned long size ) ;
struct timeval {
long tv_sec ;
long tv_usec ;
};
extern void *malloc(unsigned long size ) ;
extern int scanf(char const *format , ...) ;
void RandomFunc(unsigned int input[1] , unsigned int output[1] )
{
unsigned int state[1] ;
unsigned int local1 ;
unsigned short copy11 ;
{
state[0UL] = (input[0UL] + 914778474UL) - 981234615U;
local1 = 0UL;
while (local1 < 1UL) {
if (state[0UL] < local1) {
if (state[0UL] != local1) {
copy11 = *((unsigned short *)(& state[local1]) + 0);
*((unsigned short *)(& state[local1]) + 0) = *((unsigned short *)(& state[local1]) + 1);
*((unsigned short *)(& state[local1]) + 1) = copy11;
} else {
state[0UL] = state[local1] + state[local1];
state[0UL] += state[0UL];
}
} else {
state[0UL] = state[local1] + state[local1];
}
local1 ++;
}
output[0UL] = (state[0UL] + 469123144UL) + 888641092U;
}
}
void megaInit(void)
{
{
}
}
int main(int argc , char *argv[] )
{
unsigned int input[1] ;
unsigned int output[1] ;
int randomFuns_i5 ;
unsigned int randomFuns_value6 ;
int randomFuns_main_i7 ;
{
megaInit();
if (argc != 2) {
printf("Call this program with %i arguments\n", 1);
exit(-1);
} else {
}
randomFuns_i5 = 0;
while (randomFuns_i5 < 1) {
randomFuns_value6 = (unsigned int )strtoul(argv[randomFuns_i5 + 1], 0, 10);
input[randomFuns_i5] = randomFuns_value6;
randomFuns_i5 ++;
}
RandomFunc(input, output);
if (output[0] == 4242424242U) {
printf("You win!\n");
} else {
}
randomFuns_main_i7 = 0;
while (randomFuns_main_i7 < 1) {
printf("%u\n", output[randomFuns_main_i7]);
randomFuns_main_i7 ++;
}
}
}
|
the_stack_data/37637122.c | #include<stdint.h>
/* MARCO: peripherals */
/* PA5 connects LED1 */
/* directly copy from blinking led1 */
#define PERIPH_BASE (0x40000000)
#define APB1_BASE (PERIPH_BASE + 0x0)
#define APB2_BASE (PERIPH_BASE + 0x10000)
#define AHB1_BASE (PERIPH_BASE + 0x20000)
#define AHB2_BASE (PERIPH_BASE + 0x8000000)
/* RCC */
/* RCC_BASE: 0x40021000 => 0x40000000 + 0x20000 + 0x1000 */
#define RCC_BASE (AHB1_BASE + 0x1000)
#define RCC_AHB1ENR (*((unsigned int *)(RCC_BASE + 0x48)))
#define RCC_AHB2ENR (*((unsigned int *)(RCC_BASE + 0x4C)))
#define RCC_APB1ENR1 (*((unsigned int *)(RCC_BASE + 0c58)))
#define RCC_APB1ENR2 (*((unsigned int *)(RCC_BASE + 0x5C)))
#define RCC_APB2ENR (*((unsigned int *)(RCC_BASE + 0X60)))
#define RCC_AHB2_GPIOA (1 << 0)
#define RCC_AHB2_GPIOB (1 << 1)
/* GPIOx */
#define GPIOA_BASE (AHB2_BASE + 0x0)
#define GPIOB_BASE (AHB2_BASE + 0x400)
#define GPIOx_MODER (0x0)
#define GPIOx_ODR (0x14)
#define GPIOA_MODER (*((unsigned int *)(GPIOA_BASE + GPIOx_MODER)))
#define GPIOB_MODER (*((unsigned int *)(GPIOB_BASE + GPIOx_MODER)))
#define GPIOA_ORD (*((unsigned int *)(GPIOA_BASE + GPIOx_ODR)))
#define GPIOB_ORD (*((unsigned int *)(GPIOB_BASE + GPIOx_ODR)))
#define MODE_00 (0x0)
#define MODE_01 (0x1)
#define MODE_10 (0x2)
#define MODE_11 (0x3)
#define PIN5 (5)
#define PIN14 (14)
#define MODER( mode , pin ) (mode << (pin << 1))
#define ORD( pin ) (1 << pin)
/* MACRO: morse table */
#define DUMMY_LETTER { 0 , 0x0 }
#define DASH_BIT (0x1)
#define DOT_BIT (0x0)
#define MORSE_BASE ((uint32_t)'0')
#define MORSE_TB_SIZE (sizeof(morse_table) / sizeof(morse_table[0]))
/* MACRO: LED1 INIT, ON, OFF */
#define LED1_INIT() \
do { \
RCC_AHB2ENR |= RCC_AHB2_GPIOA; \
GPIOA_MODER = GPIOA_MODER \
& ~MODER(MODE_11, PIN5) \
| MODER(MODE_01, PIN5); \
} while (0)
#define LED1_ON() \
do { \
GPIOA_ORD |= ORD( PIN5 ); \
} while (0)
#define LED1_OFF() \
do { \
GPIOA_ORD &= ~ORD( PIN5 ); \
} while (0)
/* MACRO: LED1 INIT, ON, OFF */
#define LED2_INIT() \
do { \
RCC_AHB2ENR |= RCC_AHB2_GPIOB; \
GPIOB_MODER = GPIOB_MODER \
& ~MODER(MODE_11, PIN14) \
| MODER(MODE_01, PIN14); \
} while (0)
#define LED2_ON() \
do { \
GPIOB_ORD |= ORD( PIN14 ); \
} while (0)
#define LED2_OFF() \
do { \
GPIOB_ORD &= ~ORD( PIN14 ); \
} while (0)
#define LED2
#ifdef LED1
#define LED_INIT LED1_INIT
#define LED_ON LED1_ON
#define LED_OFF LED1_OFF
#endif
#ifdef LED2
#define LED_INIT LED2_INIT
#define LED_ON LED2_ON
#define LED_OFF LED2_OFF
#endif
/* type declaration */
typedef struct morse_letter_type morse_letter_t;
struct morse_letter_type {
uint8_t len;
uint8_t code;
};
const morse_letter_t morse_table[] =
{
{ 5 , 0x1F }, /* 0 , 0x30 , ----- , 0b 1 1111 */
{ 5 , 0x1E }, /* 1 , 0x31 , .---- , 0b 1 1110 */
{ 5 , 0x1C }, /* 2 , 0x32 , ..--- , 0b 1 1100 */
{ 5 , 0x18 }, /* 3 , 0x33 , ...-- , 0b 1 1000 */
{ 5 , 0x10 }, /* 4 , 0x34 , ....- , 0b 1 0000 */
{ 5 , 0x0 }, /* 5 , 0x35 , ..... , 0b 0 0000 */
{ 5 , 0x01 }, /* 6 , 0x36 , -.... , 0b 0 0001 */
{ 5 , 0x03 }, /* 7 , 0x37 , --... , 0b 0 0011 */
{ 5 , 0x07 }, /* 8 , 0x38 , ---.. , 0b 0 0111 */
{ 5 , 0x0F }, /* 9 , 0x39 , ----. , 0b 0 1111 */
DUMMY_LETTER, /* : , 0x3A , */
DUMMY_LETTER, /* ; , 0x3B */
DUMMY_LETTER, /* < , 0x3C */
DUMMY_LETTER, /* = , 0x3D */
DUMMY_LETTER, /* > , 0x3E */
DUMMY_LETTER, /* ? , 0x3F */
DUMMY_LETTER, /* @ , 0x40 */
{ 2 , 0x2 }, /* A , 0x41 , .- , 0b 10 */
{ 4 , 0x1 }, /* B , 0x42 , -.... , 0b 01 */
{ 4 , 0x5 }, /* C , 0x43 , -.-. , 0b 0101 */
{ 3 , 0x1 }, /* D , 0x44 , -.. , 0b 001 */
{ 1 , 0x0 }, /* E , 0x45 , . , 0b 0 */
{ 4 , 0x4 }, /* F , 0x46 , ..-. , 0b 0100 */
{ 3 , 0x3 }, /* G , 0x47 , --. , 0b 011 */
{ 4 , 0x0 }, /* H , 0x48 , .... , 0b 0000 */
{ 2 , 0x0 }, /* I , 0x49 , .. , 0b 00 */
{ 4 , 0xE }, /* J , 0x4A , .--- , 0b 1110 */
{ 3 , 0x5 }, /* K , 0x4B , -.- , 0b 101 */
{ 4 , 0x2 }, /* L , 0x4C , .-.. , 0b 0010 */
{ 2 , 0x3 }, /* M , 0x4D , -- , 0b 11 */
{ 2 , 0x1 }, /* N , 0x4E , -. , 0b 01 */
{ 3 , 0x7 }, /* O , 0x4F , --- , 0b 111 */
{ 4 , 0x6 }, /* P , 0x50 , .--. , 0b 0110 */
{ 4 , 0xB }, /* Q , 0x51 , --.- , 0b 1011 */
{ 3 , 0x2 }, /* R , 0x52 , .-. , 0b 010 */
{ 3 , 0x0 }, /* S , 0x53 , ... , 0b 000 */
{ 1 , 0x1 }, /* T , 0x54 , - , 0b 1 */
{ 3 , 0x4 }, /* U , 0x55 , ..- , 0b 100 */
{ 4 , 0x8 }, /* V , 0x56 , ...- , 0b 1000 */
{ 3 , 0x6 }, /* W , 0x57 , .-- , 0b 110 */
{ 4 , 0x9 }, /* X , 0x58 , -..- , 0b 1001 */
{ 4 , 0xD }, /* Y , 0x59 , -.-- , 0b 1101 */
{ 4 , 0x3 }, /* Z , 0x60 , --.. , 0b 0011 */
};
static inline void assert(uint32_t in)
{
if (!in) {
while (1) ;
}
}
void delay(const uint32_t unit)
{
int i, j;
for (i = 0;i < unit;++i) {
for (j = 0;j < 300000;++j) ;
}
}
void transmit_ch(uint8_t ch)
{
uint32_t index, len, code;
const uint32_t code_mask = 0x1UL;
assert(!('0' > ch || 'Z' < ch));
assert(!('9' < ch && ch < 'A'));
index = ch - MORSE_BASE;
assert(index < MORSE_TB_SIZE);
len = morse_table[index].len;
code = morse_table[index].code;
if (code & code_mask) {
// light dash
LED_ON();
delay(3);
LED_OFF();
} else {
// light dot
LED_ON();
delay(1);
LED_OFF();
}
len -= 1;
code >>= 1;
while (len > 0) {
// pause one unit space
LED_OFF();
delay(1);
if (code & code_mask) {
// light dash
LED_ON();
delay(3);
LED_OFF();
} else {
// light dash
LED_ON();
delay(1);
LED_OFF();
}
len -= 1;
code >>= 1;
}
}
void transmit_text(const char *s, uint32_t len)
{
if (*s == '\0' || len == 0) {
return;
}
transmit_ch((uint8_t)(*s));
s += 1;
len -= 1;
while (*s != '\0' && len > 0) {
if (*s == ' ') {
// pause seven unit space
LED_OFF();
delay(7);
} else {
// pause three unit space
LED_OFF();
delay(3);
transmit_ch((uint8_t)*s);
}
s += 1;
len -= 1;
}
}
int main()
{
const char name[] = "CHIEN HUNG";
LED_INIT();
// Minus one to exclude NULL charachter
transmit_text(name, sizeof(name)/sizeof(name[0]) - 1);
while (1) ;
return 0;
}
|
the_stack_data/182953447.c | /** \file blender/editors/datafiles/inflate.png.c
* \ingroup eddatafiles
*/
/* DataToC output of file <inflate_png> */
int datatoc_inflate_png_size= 8840;
char datatoc_inflate_png[]= {
137, 80, 78, 71, 13, 10, 26, 10,
0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 96, 0, 0, 0, 96, 8, 2, 0, 0, 1, 26,253,208,249, 0, 0, 0, 4,103, 65, 77,
65, 0, 0,177,143, 11,252, 97, 5, 0, 0, 0, 6, 98, 75, 71, 68, 0, 0, 0, 0, 0, 0,249, 67,187,127, 0, 0, 0, 9,112,
72, 89,115, 0, 0, 13,215, 0, 0, 13,215, 1, 66, 40,155,120, 0, 0, 0, 7,116, 73, 77, 69, 7,218, 7, 19, 0, 34, 12, 33,
249,187,131, 0, 0, 32, 0, 73, 68, 65, 84,120,218,237,125,105,180,101, 87,113, 94,213,222,231,220,233, 13,253,222,107,117, 75,
173,110,181,100, 13, 72, 50, 72, 13,200,203, 96, 57,180,137, 72, 20, 47, 7,219, 66, 3,131, 77,134, 31,128, 18,201, 32, 44, 44,
203,204, 34,194, 16, 20, 67, 48,150, 77,178, 48,136,197,138, 77,176, 96,101,145,193, 33,113, 86,236, 8, 7,107, 0,164,196, 78,
188,146, 56, 72,104, 86,143,111,184,247, 76,123,239,170,252,168, 61,157,251,154,150,132, 21, 71, 56, 92,129,250,246,123,247,158,
83,167,118, 85,237,170,175,190,218,194,131, 7, 15,194,211,190,158,201,135,138,185,191, 47, 45, 45,253,219,175,252,222,116,186,
249,232,195, 15,189,233,205,111, 73, 31,250,218,221,119, 59, 71,206,210,112, 84, 22,197,176,105, 59, 6, 53, 89, 92,254,149,219,
62,242, 11,191,120, 51, 0, 20, 68,132,186, 80, 64,101,169,141,233,172,107,219,182,109,219,166,109, 91, 99,157, 92, 73, 1, 0,
0, 50,128, 46,138,141,141,141,173,173,205,173,205,141,173,205,205,173,205,205,205,205,205, 79,254,198,237,254,118, 76, 0, 4,
77,211,212,245,172,169,219,182,237,166,211,141,227, 71,143, 62,249,216,195,167,158,186,251, 31,125,228, 67, 10, 0,152,136,152,
140, 49,107, 59,119, 43,173, 14, 31,122,226,137,199, 30,125,248,161,111,117, 93, 61, 26, 47,168, 98, 80, 0, 0,177,115,206, 17,
145,181,118,101,199,218,232,130,241,116,186,117,222,249, 23,106,173,219,166,241,183,115,225, 69,206, 57,114,128, 56, 26,141,181,
210, 93,215, 18, 17, 17, 21, 0, 96,173,115,206, 89,107,156,115,206, 89,178,214, 57,249,159,127, 21, 0, 96,140,113,206, 58,235,
44, 57,178,198, 58,107,141,181,214, 89,107,173,181,206, 58,124, 70,107,247, 76, 94, 56,247,247,187,239,253,122, 93, 87, 27,199,
143, 93,113,197, 21,233, 67, 47,121,233, 75,127,237,246, 95, 23, 5, 44, 45,175, 88,231,170,217,108,115, 99,253,240,161, 39,223,
252,230, 55,203,135,244,151,255,213,191, 70, 86,128,170,174,166,170, 40,187,174,171,235,122, 86, 77,183, 54, 55, 95,120,193, 11,
190,246, 71,119, 3,128, 98, 70, 70, 0,196,166,174,101,213,166,211,205,173,205,205,233,214,214,230,198,241, 95,249,200,135,228,
67,192, 12, 68,110,215,105,123,143, 30, 57,114,236,232,225,163, 71,142, 28, 61,114,228,208, 83, 79, 60,250,208,255, 26,142, 23,
222,126,253, 91, 20, 51, 51, 59, 34,106,154,102,231,174,221, 27,235,235, 79, 61,241,248, 99,143,124,251,145, 7,255,199, 43,255,
198, 21,136,106,215,105,123,241, 15,255,232, 94,231,200, 89,235,156, 53,214, 88, 99,102,179, 89, 53,155, 34, 34, 17, 85,179,233,
116,107, 67,137, 90, 41, 45, 2, 21, 69, 57, 89, 88,208,186, 32, 34, 38, 98,226,194,175,171,115,198,134,207,145,113,214, 57,103,
157,181,206,145,115, 84, 24, 99, 28, 57,138,159,176,198, 47,152,117,214, 57,107,173,115, 14,158,171,181, 83,240, 28,189,122,254,
171,148,186,230,154,107,174,253,123,215,146, 35, 34, 90, 89,219,169, 84,225,136,172,181, 93,215,117,109,211,212,117, 85,205,182,
54,215,175,187,238,122,107,109,239, 66, 68,116,247, 61,247, 17, 51, 48, 48,147, 99, 6,230,114, 82, 0, 40, 6,101, 29, 57,103,
141, 49,214, 24, 99,140,232,134, 25, 62,252,161, 95, 62,252,212, 99,183,125,244, 19,189, 71, 67, 93,160,214,168, 20, 40,165,116,
49,158, 44, 28, 61,124,184,170,102,213,108, 54,155, 77,103, 51,121, 51,147, 55,149,127,213, 93,103, 62,254,209,219,122,143,198,
12,192,192, 98,237,204,206,185,225,120,114,236,232, 81,165, 53, 0, 16,145, 49,198,152,174,109,218,166,169,155,186,154,110,109,
109,172, 31, 59,252,228,227,103,159,123,254, 39, 62,254,177,106,186,249, 75,239,185, 69, 46,196,204,192,204, 68,196,204, 77,211,
12,134,227,213,157,250,201, 39, 30,171,166, 51, 49,175,174,107,229, 66,179,233,214,230,198,241,163,135, 30,155, 76, 22,180, 46,
152,169, 28, 77,110,189,229,189, 5, 0, 56, 34, 32,242, 23, 2, 38,231, 28, 91, 38,218,181,235, 84,179, 98,170,106,182,190,126,
188, 51,157, 49, 93,215,181,186, 40,246,238,255,129,139, 94,252, 67,147,201,132,153,186,174, 67, 84,186,148,184,228,156, 92, 7,
152,136,153,200,145, 99, 34,199, 68,192, 52, 26, 13,119,237,218,189,182,118, 10, 57, 43,198, 75,142,156,179,214, 90,103, 28, 19,
19, 51, 51, 72, 88, 50,162, 11, 38, 34,185, 20,177, 99,199,142,136,153,156, 35, 34, 38,231, 63,224,136, 40,248, 3,201, 85,179,
248, 6,204,196,142,136,137, 29, 16,136, 72,204, 44, 17,148,153,157,179,114, 27,231,172,115, 68,222, 87, 68,176, 16, 3,173,237,
136, 9, 8,136, 69, 40,241,118,175,123, 34, 71,142, 28, 59,114,196, 68, 78, 28,208, 58,107,140, 13, 33,246, 57,141,147,207,201,
107,255,254,253,207,153,211,254,223,241,254,237,175, 59,191,248,165,211,247,158,225,172, 13,190, 63,251,192, 45,239,255,147,255,
246,223,159,102, 43, 25, 14,135,159,254,244,167,247,236,217, 67, 68,142,220, 41,187,246, 48,176,115,212,117,157,233,218,166,174,
197, 69,214,143, 29,121,219,219,111,156,211, 17, 2,192,157, 95,250,226,105,167,157,142,128,204, 44, 22,224, 28, 45, 45,239, 64,
165,153,201, 90,107,140,233,218,182,105,154,166,158, 85,179,217,214,230,198,147,143, 63,242,193, 15,223,150, 95,168,184,231,190,
175, 19, 49, 3, 48, 49, 19, 33,128, 42,180,210, 68,204, 24,172, 88, 34,180, 55,104, 34, 98, 30, 12,199,243,202, 70, 85, 32, 42,
68, 4,133,136, 74,235, 98, 52, 26,145, 35, 31,201,140,233, 58, 99,173,181,198,154,174,147,208,230,172,117,228, 94,119,229, 79,
246,148,141,136,136,200,196, 0,136,200, 74,235,166,174,218,174,149, 31, 16,145, 13, 97, 36, 4,128,174,237,186,174,109, 23, 22,
38, 90,107,231,178, 36,136, 25, 88,212,206,204, 12, 74, 23, 77,211, 52, 77,221, 54, 77,219, 52,109,219, 54, 77, 35, 42,106,219,
86,126, 40, 1,238, 99, 31,189,109,117,101,135,191, 16, 51, 0, 2, 34, 16, 17, 1, 16,145, 46, 74,211,117,117, 85,213,213,172,
174,171,186,170,155,166,105,234,166,109,154,186,170,234,170,170,102,179,217,116,171,174, 42, 93,148,239,126,215, 59, 17, 81, 36,
146,240,232, 31, 85,194,196,242,202,106,211,212, 85, 53,171,170, 89, 85, 77,171, 89,140,223,211,217,108,107,107,107, 99,227,248,
225,189,103,158,163, 80,233,162,252,224, 7,222,199,204, 5, 51, 51, 19,203,245, 36, 66,119,102, 52, 26, 47, 46,237, 56,114,248,
169,174,235,172, 87,121,219,212,117, 85, 85,211,173,205,245, 99,135, 55,214,143, 29,248,161,151, 35, 42,165,148, 46,202,203, 94,
249,138,130,153, 1,152, 73,210,188, 16,185, 29, 47, 44, 46, 18,185,195,135, 14,205,166, 91,117, 93, 55, 77, 93,207,170,217,108,
58,221, 60, 94,207, 54, 47,122,233,203,119,172,172, 1, 0, 32, 42,165, 81, 21, 34, 17, 51,131, 15,153, 12,204, 62, 14,141, 70,
227, 93,167,158, 58,158,140,215,143, 31,223,220, 88,103, 98,165,213,202,218,218,234,202,234,142,149, 21,165,181,179, 86,182, 31,
68, 44,152,217, 57, 47,146, 68, 50, 17,138,136,136,169, 44,138,165,165,229,209,112,184,186,186,102, 76,231, 28, 33,130, 82,138,
153,173,181,254,206,113,167, 5,112,156, 94, 94, 28, 32, 6, 98,102, 70, 68,173,139,209, 72,149,101,233, 66,148,245, 87, 73,171,
132, 5, 17, 59, 71, 94,211,226,108,142,152,217,129, 11,145,151,200, 63, 55, 75, 82, 29, 5,143, 47, 0, 46, 56, 62, 78,120, 36,
9,216,217, 35, 58,246, 59,139,127,222,248,255,248, 37, 6, 40,124,184, 39, 34, 96,246,187, 90,184,166,139,235, 64,254, 86,254,
203,196,204, 46, 94,145,153,153, 11,114, 46,126,215, 63, 0,113,184, 6, 57,231,124,110,199, 68,228, 28,115, 18, 39, 60, 55, 17,
3,115,225,136,156, 35, 31,136,124, 56, 10,247,116,142,153,228,214,254,102,228,228, 73, 37,190,196,135,141, 18, 81, 16,135, 28,
17, 36,125, 16, 51, 57,158,191,127,220,252,194, 38, 76,204, 12,207,171,125,237,140, 51,206, 80,240,124,122, 33,226,243, 75,160,
167,223,102,159,225,235,188,243,206,123,231,187,222,117,214,153,103,185,224,207,214,116,191,243,133,223,249,237,207,127,254, 89,
43,233,224,193,131,119,221,117,215,119, 33,196,103,238,248,236,139, 46,186, 24, 0,197, 7, 37, 21,115,142,200, 23,168,146,223,
119,166,107,235,186,217, 88, 63,250,243, 55,222,244, 76, 82,163,121, 13, 93,114,201, 37,111,187,225,134,125,123,247,149,131, 1,
199,240,211, 11, 59,188,188,188,162,180, 70, 80,128, 64,196,200, 68,140,128, 8,128,232,191, 1,192,146,156, 40, 64, 85, 20,229,
226,210,202,237,183,127,162,154,110,221,252,206,247,112,220,173, 78,184,100, 68,116,207,189,247, 17,177, 92,196,223, 31, 64, 82,
9, 9,225, 41,235, 97, 55, 28, 77, 0, 21, 51, 50, 16,135,253, 38,166,203,206,231,188, 36, 81,201,145,163,144,130, 51,163,210,
229, 45,239,123,239,191,251,202,239,126,237,158,175,159, 44,231, 67,165,149,214,160, 52,162, 66, 84,168, 80,201, 54,133,136,168,
148,210,186, 40,134,195,145,237, 26, 68, 29,227,190, 11,214, 34, 85,168,228,200,178, 84,130, 45, 88, 43,197,172,252,202, 74, 78,
14, 0,127,229, 21,175, 24,141,134, 39, 21, 8, 21,160, 82,128,168, 20, 2, 32, 40, 41,240, 17, 20, 0,104,173, 7,131, 1, 16,
117, 93, 23,234,190,206,164, 87,215,117,157, 53,157,233,186,174,109,229,141, 79,167,252,159,242, 97,219, 25, 99,140,136,107,223,
248,186, 43, 79,234,101,136, 64, 4,136, 12, 36,102,128,160, 8, 8, 17, 16, 21, 42,133,168,228, 62, 12,168,180, 21,229, 69,227,
242, 91, 21,249,114,223, 69,141, 89, 95,179,118,157, 23,183,107,219,182,105,187,166,233,186,246,215,127,237, 19,166,107,110,185,
245,151,215,215, 55,182, 9,228,115, 59,246, 50,249,164, 13, 72,172,143,136,136,203,225, 72, 41,221,212, 53,106, 45, 2,121,155,
139, 62, 22,234, 36,231,215,206, 4,145,124, 46,212,181,109, 83,215,117, 61,173,102,211,217,230,113, 64,212,229,224,253,239,125,
143, 49,237,175,254,234,237,143, 61,241,100, 86, 17, 3,139, 48, 68,128,136,132, 12, 36, 78,130, 68, 68,136,206, 89,165,212,242,
202,218,250,177,163,117, 93,133, 85,150, 82, 90,242, 3,142,234,241, 66, 25, 99, 67,238,106,186, 78, 96,187,166,154, 86,179,233,
214,198,225, 83, 78,221,107,140, 41,203, 82, 23,192,204,111,123,219,245,117, 93,221,242, 15, 62,156, 74,116, 4, 34,242, 14,198,
196,200, 0, 8, 4,196,192, 64, 96,217, 34,162,214,122,101,109,173,216, 42,183, 54, 55,154,186,246,187,232,118, 13,249, 18,215,
26,107,252,106,181, 93,219,212, 77, 61,171,102, 91,179,173,227,109,231,206,223,117,154,242, 62,196, 74, 23,154,104, 56,156,188,
255,125,239,190,239,222,123,243, 82, 31, 0,125,254,200,200, 36,122, 99,144,178,148,195, 94, 51,158, 44, 20,229,160,154,205,166,
211,173,186,154,117, 93, 39,185,127, 64,135,228, 31,193, 61, 58, 73,233, 69,154,122,182,213,182,213,100,188,240,131, 7, 14,156,
122,218,233,101, 57, 0,100, 36, 84, 74,161,210, 74,185,178, 40,118,239, 62, 53, 8, 36,165,140, 88, 5,249, 36,155, 33,230,101,
30,118,145, 16,165, 16, 39, 11, 11,131,225,160, 91, 90,106,234,186,174,170,170,154, 53,174,178,214,118, 93, 43, 94,214,117,157,
237, 58, 99, 58,107, 12, 57, 59, 24,142, 87,215,118,175,172,173,173,172,172, 78, 22, 22,202,178,244,249,141, 55, 96, 31, 95, 80,
105, 47, 16,249,212, 47,132, 69, 73,115,189, 16, 64,204, 49, 90,250,156, 25, 8, 17,135,131, 65,161,245,120, 60, 94,222,177, 35,
68, 0, 47,132,181, 86,114, 29, 89,107, 93, 20,101, 81, 40,173, 37, 5, 6,102, 34, 7, 0, 24,242, 96, 14,101,167, 8, 36,249,
99,140,233,156, 12, 42,104,204, 11, 2,178,182, 33, 93,245,197,152, 42,203, 82,194,213, 56, 37,167, 33,113,100,138, 95,144, 43,
147,207,154,153,153, 9,226,175, 68, 30, 44,196,175, 33, 24,181,104, 1, 68, 76,175,150, 96,186, 0,209,178,124,150, 29,158, 67,
62, 43, 17, 13,148, 82,132,160, 64, 60,133, 72, 76, 83,240,168,144,244,230,137,121,168,198, 68, 42, 17,200, 63,134,188, 23,253,
17,203, 82, 81, 88,178,240,131,244,196,243,217, 62, 51, 49, 1, 67, 82, 78,239, 55,196,153, 48, 89,197, 68, 28, 51,117, 6, 14,
75,198,146,229,251,154,200,171,141, 67,229,199, 98, 73, 4,105,255, 79, 58, 10, 69, 34, 37, 11,147,236,220,215, 7, 20,227,185,
247, 31,142,133,134, 0, 71, 94, 86, 34, 6,129,193, 36,141,137, 38, 29,149, 24,108, 57, 74,227,101, 6,150,252, 93, 44,140, 73,
234,186, 32, 3,199,202, 35,160,125, 1, 59, 36,255, 25,169, 24,130,149,197, 42, 64,190,233,145, 66,111, 56,193,214,162,103, 5,
75,138, 5,105, 20,152,227, 87, 2, 56,152, 23, 77,178,114, 81,168,124,189,136,152, 64,204,222, 69,251, 79, 38, 32, 26, 34, 34,
7,208,187, 41,202,211,123,239,207,252,189,159,181,249,171, 65, 84, 13, 5,185, 92,192, 85, 93, 16,200,197, 34, 50,214, 66, 2,
27,114,172,139,128, 10, 68,252,234, 93,127,192, 30,222, 13,209, 49,127, 19,131, 1,243,220,191, 99, 50,151,201, 10, 73,209, 73,
254,104,118, 62,196,100, 43, 75,121,185,187,190,190,249, 60,195, 27,165, 54,123,254, 8,115,240,224, 65, 37,153,205,243,231,245,
188, 43, 20,191, 47,208,247,156, 64,207, 77,109,127,221,245,215, 93,125,245, 53,146,115, 89, 99,156,179, 15, 61,244,208,173,183,
222,122,232,208,225,191, 80,129,174,187,254,250, 55,190,241,111,163, 82, 1,131, 34, 68, 11,168,208,170, 51,207,252,129, 79,126,
242,159,152,174,253,147, 63,254,175, 31,252,208, 63,124,230,215,212, 59,118,236,216,216,216,120,182,162, 28, 56,112,224,223,252,
238, 87, 14,188,248,165,168,149, 47,154, 48,107,195,133, 36,129,152, 87, 87,215, 94,253, 55,127,226,161, 7, 31,124,234,208,161,
167,189,236,153,103,158,249, 29, 53,164,181, 62,247,220,115,175,188,234,202,203, 46,187, 76, 41, 21,179, 62, 38,158, 44, 44, 12,
199, 19, 70,229,171, 55, 65, 25, 72, 10, 39,145, 13, 89, 18,101, 68, 84, 10,149,190,246,218,107, 31,248,230, 55, 62,245,153,207,
62,235, 37,187,233,166,155, 46,189,244,210, 83,118,237, 98, 6, 71, 78, 58, 33,204, 12, 8, 64, 4,192,147,165,241,112, 48, 70,
165,194,134,135,178,119, 33, 34,132,234, 37,219, 3, 17, 1, 0, 81,235,226,194, 23,190,240, 13,175,187,250,243, 95,248,226,211,
8, 68, 68,101, 89,254,220, 91,127,238,154,107, 94,235,136,125, 73,202,140, 8, 26, 81,242, 16,191, 26,136, 10,177, 44,135,160,
84, 72,207, 41,150, 7, 60,143, 82, 75,214,196, 4, 40,165,176, 82,250,226,139, 15,252,251,255,240, 31,143, 30, 61,118, 50,183,
191,238,250,235,255,224, 63,125,245,181,175,125, 3,162,214,186, 80, 74,131, 96, 32,168,100, 9, 84,168, 81, 10,165,203,114, 0,
210, 61,162,136, 18,251,173,218, 69, 60,153, 67,182,229, 19,201,136,114, 3, 0,254,253,183,188,233,105,226, 16, 51, 40,173, 81,
33, 32, 34, 2, 3, 40, 20, 77,163, 82,136,128,128,168,148, 42,138,194, 57,227, 17, 41, 73, 94, 67, 74, 69,169,221,154,146, 29,
23,254, 22, 16,110, 15,207,163, 82, 23,188,224,188,147, 9,132,136, 10,149,152,160,148,236, 12, 10, 17, 1,129, 89, 73,107, 68,
107, 93,150, 37,135,206, 90, 68, 59,228,198, 46, 38,126,210, 89, 77,194,248, 15,177,243,169,155, 44,239, 95,127,213,193,147, 27,
53,178, 66,223,255, 96, 36, 69, 72, 0,140, 0, 28,245,164,139, 98,182,181,206, 12,206,145,247, 33, 95, 8,164,222, 72,232, 93,
7, 24,205,133,198,175,115, 46,207, 19,153,165, 58,253,206, 91,135, 96,133,136,136,194, 33, 10,113,133, 1, 17, 16, 1,181,214,
90, 85,213,204,249,254,180, 75, 18, 36,140,193, 70,172, 33, 96,123, 66,241,200, 97, 26,255, 99,114,116,214,254,189, 39,219,203,
88, 90,112, 28,123,168, 12,192,160, 20, 48, 3,162, 18, 95, 35, 97,177, 56,143,177,102,239, 69, 12,223,198, 12,104,149,179,129,
136, 98, 29,185,240,113,223, 22,183,215, 92,249,211,175,127,221,213, 39,129,244, 48,114,172,124,146,236,193,159, 16,229, 24, 16,
149, 39, 36, 57, 1, 15,131, 44,254,246, 94, 8,255,179,112,247, 12,125, 52, 54,125,219, 26,107,126,228,101, 47,191,241,134,235,
79,162, 33, 96,228, 76,184,244,146,146,190, 24, 12, 60,204, 98, 76, 16,204, 56, 97, 79,137,136,129,101,224,127, 96,157, 49,198,
203,104, 19,189,202,152,206,154, 22, 16, 85, 81,236, 59, 99,255,187,110,126,199,137, 4, 2, 64,223,122, 77,189,111, 6, 32,140,
237, 88, 28, 12, 71, 68, 46,192,225, 9,247,180,198,100,224,157, 13, 40,172, 23, 81,126,110,173,177,157,177,198,216,174,179,166,
107,219,102,121,105, 85,161, 46,138,114,117,109,231,205,191,240,246,237, 75, 6,130, 9, 49, 0, 17, 96,216,146, 66,125, 76,196,
52, 24,140, 10, 93,202, 35,250,123, 8,104,103,140, 49, 93,176, 43, 19,212, 32,130,202,175, 4,137, 21,168,166,109,219,166,173,
167, 11, 75,203,128,128, 74, 21, 69,185,182,182,243,239,252,236,235, 51,129, 2, 64, 35,181, 33, 98, 4,108,216, 51, 58,152,137,
72, 41, 53,154, 76, 0,192, 24,103,163,114,130, 40,210,232, 13,152,113, 39, 8, 99,103, 58, 43,205, 5,223, 30,111,218,186,110,
234, 89, 85,213, 66, 70, 66, 84,168,180,210,197,249, 23, 92,240,163,151,190, 44,203, 24, 89, 80, 94,193,244,252,190,142,128, 1,
15, 33,129,136,134,195,209,112, 52,102, 38,143,213,181,157,233, 76,215,182,166,107,173, 7,171, 4, 60,238, 4,200, 11,127,182,
93,219,181, 77,211, 54,117,219, 84, 77,181, 85,148, 99,244,123,174,236, 74, 90,235,226,199, 47,255,107,101, 89, 48,179,130,164,
30,239,255,161,166,103, 89, 57, 38, 79,152, 81, 90,143, 23, 22,134,163,145,116,129, 3, 40, 46,146,180,166,107, 77,215, 10,164,
231,165, 17, 96,186,109,218,182,105,155,170,169,171,170,218,106,155,110,121,199,114, 81, 14,100,175, 68, 68, 84, 8, 10,149,210,
55,191,227, 6, 0, 40, 60, 46,230,195,160,108,136,136, 0,140, 57,178,224, 63, 82, 22,229,194,194, 34, 57, 55,155, 77, 5,235,
236,199,105,202,220,202,154,128,192, 10,129,164,174,166,109, 61, 35,128, 61,251,206, 28, 12,134,168, 16, 72,156, 90,186, 25,186,
40, 7, 17,176,146,181, 2,102, 68, 8,125,152, 72, 48, 96, 70, 0,199, 62, 51, 41,202,114,178,184,200,204, 83,154,218,214,223,
62,180,189,189, 99, 57,107, 67, 95,161,237,218,166,109,170,186,154, 54,245,148,153,247,159,121,206,218,206, 93, 69, 89, 34, 42,
6, 39, 74, 10,168,167, 6,128,194,103, 83, 17,121,165, 24,126, 34,212, 9,236,193, 97,143, 12,151,229, 96,188,176, 32, 54, 57,
163, 25, 24,235,156,243, 78,111,141,243, 6, 47, 38,213,182,109,221, 54,141, 53,237,112, 56,222,185,251,244,211,247,158,177,176,
184,164,181, 78, 77, 42,191,175, 43, 73,250,138,196,187,241, 80,103, 0, 29, 57,110, 36, 30,187,102,138,215,224,178, 44, 97, 60,
65, 84,170,208,149, 46,176,158, 17,145, 53,150,137,173,135,171, 61, 33, 21, 65, 13, 71,227,229,229,213,229,149,149,213,181,157,
75,203,203,131,225, 80, 43, 21, 49, 97,224,100,223,222,134,196,195, 25, 16,145, 50,158,129,199,216, 56, 98,194, 9,124, 97, 73,
186,135,163,161, 82, 88, 20,197,112, 56, 24, 54,163,166,174,219,182,233,218, 65,215,117,118, 96, 70,206, 50, 3, 42, 53, 24, 12,
70,163,209,120, 50, 25,141, 70,101, 57, 64, 68,136, 6,145,222, 72, 11, 48, 52, 95, 56, 42, 38, 6, 68,134,158, 41, 37, 92, 55,
96, 63,194,249, 41, 75, 65,162, 7,195,114, 52, 30,123,106,143, 49,206, 57,185,134, 82, 88, 20,186, 40, 74, 93, 20, 90, 41, 64,
79, 48,228,200,206,153,207,135, 18,184,155,173,151,207,221,189, 64, 20,190,156,178,103,191,163,176, 66, 5, 90,139,194, 10, 93,
186,193, 48,165, 40,226, 38, 62, 15, 86,161, 78,138,207, 26,180,222, 23,170,136,200, 25,179,240,143,188, 26, 41, 0,252,192, 89,
18, 16, 21,157, 60,145, 37,229, 6, 0, 40, 10,201, 47, 41, 80, 46, 34, 86, 26, 49,179, 8,176, 97,190,123,179, 68, 66,140, 94,
22,133, 22,177, 60, 38,156,221,222, 11, 64, 61, 0, 30, 60,140,238, 85, 7, 74, 33, 49,162,214, 10,165,165,132,132,164, 60,108,
76,177, 57, 28, 46,149,172, 51, 25,119,138, 67,126,177,162,182,146,199,115,170, 17,121,174, 63, 29, 22, 51, 98,136, 94,219, 24,
194, 61, 10,136,223, 7,111,189, 9, 98, 20,162,135,105,202,146, 73,100,204,212, 17, 20,197, 16,128, 88,232,225,194,113, 85, 19,
50,138, 32,113, 62,217,106,170, 27, 99, 67, 39,126, 1,164, 25,145,115,126, 66,107, 33, 24, 73,106, 42,144,247, 57,142,158,239,
187, 28,220,235,189,244, 58, 49, 81,106, 10,253,135,232, 41,153, 47, 64,232,137,198,240,193,201,134, 68,142, 34,129,185,208, 19,
54,117,113, 32,127,144,244,204, 20,160,221, 20,226, 51, 4, 27,130,121,109, 91,234,176, 55,102,189, 37,128,228, 50,133,100,101,
148,109, 98,196,169, 85,230,165,137,245,114,208,115,240, 52,217,252,146, 58,114,204, 63, 48,219, 32,123,148, 28,114,135,185,118,
16, 71, 13, 17,164,123, 80,114,197,208, 97,136, 87,163,100, 76,253,167, 14,237,105, 72, 11,145,223, 29, 50,165, 36,246, 92,214,
199,232, 45, 89,104, 10, 0,228,160,123, 90,178,216,109,201,168,129, 61,105, 82,187, 49,220,168,239,148,112, 2, 52, 34,107, 79,
69, 47, 12,253, 50,246, 45,195,244, 16, 20, 35,122,188, 28,197, 62, 72,112,221,116, 7,239, 51,222, 21,192, 55,135,152, 35, 33,
177, 39, 57,244,217, 45,148,169, 88,238, 90, 4, 30, 59,197, 14,107,220, 51,164,169, 3, 0, 4, 4, 73,171,220,179,151,204, 19,
100,233,145,193, 65,106, 70, 66,111,105, 78,208,247,203,148, 36, 54,196, 41, 46,199,213,227, 16, 74,105,206, 92,122, 75, 70, 30,
4,137,194,164, 30, 85,192, 70,224,132, 50, 80,182,158,189, 27,136, 64,190,189,149,236, 42,236, 59, 24,148,148, 20, 74,148, 25,
90,118,201, 12,182,202,212,233,187,162,125, 44, 43,110, 63,114, 27,202,205, 44,198,161,185, 14, 83,200,145,210,102,152,158, 96,
206,248, 51, 12, 15,104,206, 41,146,187,246,174,192,169, 93, 77,208,135,221, 0,160,120,248,161,135, 50, 18, 41,115,255, 95, 89,
131,108,238,175, 61, 34, 4,164,127, 40, 17, 14,250, 45,179,108,203, 79,157,207,160, 52,143,120,121, 14,218,241,227,199,215,215,
215,159,111,109,161,255,183, 47,102, 94, 89, 89, 89, 93, 93, 45, 0, 96, 99, 99,227,145, 71, 30,249,190, 82,182,147, 60, 87, 87,
87,213,247, 21,241, 61,214, 44,251,190,130,190,175,160,191, 92,175,226,249, 41,214,218,218,234,190,125,251, 70,195,209,104, 60,
6,224,182,237,170,217,236,201,167,158, 60,124,248,200,255, 95, 10,218,121,202, 41,231,157,123,238, 43, 14,254,216,229,151, 95,
190,184,184, 40, 25,146,179,142,209,207,133,101, 51, 24,169, 25, 38,195, 97,135,158,122,242,174,187,190,122,207,189,247, 62,242,
200,163,115,211,174,223,219, 10,210, 90, 95,117,245,213,111,255,249, 27, 11,173,137, 1, 17, 51,110, 20, 33,176,210,200, 76,172,
164,193,141,138,144, 1,149,135,214, 28, 32, 50,128, 98,216,125,234,158,215, 92,121,229,171,127,242,167,156, 53, 68,246,254,111,
62,240,155,159,185,163,170,170,231,169,130,138,162,216,183,111,239,238,221,187,151,150,150, 39,147,201,112, 56,152, 76, 38, 11,
11, 11, 17, 70, 36,162,211,246,156,254, 87, 47,123,213,226,226, 34, 17, 72,147, 95,197, 94, 58, 32, 50, 33, 42, 6, 22,141, 97,
64,106, 4, 8,101,148,182,157, 2,100, 68,133,138,145, 25,149,246, 93, 73,167, 46,126,241,139, 63,254,143, 63, 86, 87,179,187,
239,190,251, 11,119,126, 41,193,146,127, 1, 10, 82, 74,237,221,187,119,207,158, 61,231,156,115,206,133, 23, 94,120,230, 89,103,
237, 63,227, 12, 93, 20, 49,191, 39, 63, 58,150, 0,190,188,162, 71,196,201,100, 82, 14,134, 50, 10,201,136, 74,163,148, 82,128,
42,107,249, 40,144, 82, 33,193,104,152,193, 33, 17,215,192,152,201,249,110, 90, 64,219,153,121, 48, 26,255,200,165, 63,250,178,
151,253,240, 3,247,223,255,219,255,252,206,206,152,231, 64, 65,249,184,135,244,229,207, 57,231,156,171,174,186,234,242,203, 47,
215, 69,225,235,123, 41, 68, 82, 9, 36, 18, 10, 97, 94, 43,237,149, 18, 91,163, 24, 10,218,209,176, 28, 12,199,168, 20, 42, 37,
173,255,216,128, 75, 0,210,137,166, 88,114, 64, 37,175,250, 34, 74,146, 17, 64, 3,182,141, 74,128,105,114,238, 7, 95,244,162,
247,189,231,220,127,241,229,127,249,141,111, 62,240,231, 82, 16, 51,175,172,174,254,216, 43, 95,121,197, 21, 87,172,172,174, 78,
38, 19, 0, 36, 34, 96, 16,202, 11,166, 6,117,104,186,132,117,244,125, 35, 89,116, 65, 55,125,239,139, 1, 80, 1,140,138, 66,
151, 37,162, 66, 64, 72,208,102, 62, 89, 3,125,100,171,167, 42, 8, 99,192, 57,141, 55, 85,186,137, 99,158,136,169, 30, 83, 65,
84,170, 64, 93,252,244, 79,189,250,135, 47,121,201, 39, 63,117,199,119, 31, 49,247,239,223,255,154,215,188,230,245,111,248,153,
165,229, 29,131,193,208,183,210,148,192,223,232,167, 96,149, 63,158, 68, 41,209, 86,124, 3, 10,195,100,146,146, 47,121, 58,134,
80, 70,148, 46, 81, 41,223, 85,142,235,207,240,157,208,229, 84, 82,247,138,234, 56, 62,152,246, 51,142,124,227, 52,125,233, 40,
253, 90,134, 31,153, 28,141, 70,163, 11,206, 63,231, 79,255,244,127,154,103,185,211,237,216,177, 99,101,101,197, 79, 3, 41,165,
101,200, 38,244, 25,149, 31,157,150,105, 11,105, 48, 34,128,124, 64, 1,131, 2, 64,165, 20,248, 81, 38, 81,140, 42,138, 98, 48,
24, 32,176,181, 6, 81,205, 19,204, 51,218, 76,218,186,243, 62,100,120, 54,249,169, 11, 3,168,142,226,208, 39,197, 97,206,108,
210, 50, 13, 96,102, 32, 70, 36,247,227,234,202,218, 79,252,248,171,254,124,153, 52,122, 95, 17, 54, 10, 0,130, 12,173, 33,176,
152,139,194,248, 97,228,224,123, 28, 67, 36,134,217,136,210, 89, 83,205,182,242, 81,188,200, 47,207,168, 69,185, 45, 8, 61, 37,
157,161, 32, 83,186, 94, 71,142, 60,159, 38, 17,109, 60,237, 38, 12,178,185,248,135,231, 42,185,196, 90, 15, 35,182,176,111,239,
222, 75, 94,114,209,119,187,139, 33, 34,160, 31, 0, 66, 86, 36,243,100,140, 4,128,138, 49, 68, 65, 21,126, 2,132,140,190, 17,
232, 45, 78,152, 78,138,137,182,182,214,153, 65, 17,163,163,208,220, 86,152,168, 54,189,110, 22,193, 60,162, 28,231,124,101, 92,
32, 12,252, 70,147,241, 42,138,227, 71,241, 96,140, 56, 30, 69,225,140,140, 64, 97,242,254,120,201,129,139,190,121,255, 31,243,
119,185,205, 35, 0, 73,183, 81, 33, 18,112,212, 64,136,195,242, 6, 88,116,226,163,107,162, 38, 42,165, 53, 34,116,166, 53,198,
104, 85, 56,103, 25, 88,177, 70, 36, 84, 10,101,172, 49, 98,114, 57, 70, 76,113,120,133, 32,167,245, 51, 59, 25,240,150,243, 76,
146, 57,134, 35, 68, 82, 86, 29,108, 45,158,185,224,136, 28,229, 39,240, 56, 34,235,220,205,239,120,235,239,255,225,221,247,221,
247,141,103,158, 37, 21, 25, 60, 20, 27,109,201,121,160,223,203,100, 0, 78, 84, 25,206, 8, 27,158, 85,233, 44, 1,163,117, 78,
218,109,132,164,180, 70, 34,244, 57, 11,200, 34,112, 15,187,229, 20, 58, 40, 64,195, 68,189, 81,255,100, 64, 46, 11, 93,156,230,
68,179,201, 58,225, 76,249,161, 76,233,205, 27,227,172, 33,226,174,235,254,214,207,254,204,235, 95,123,245,183,190,245,224,167,
62,253,217,166,105,158, 85,162, 24,244,146, 78,145,240, 59,187,231, 27,202, 92, 94, 68,205,115, 98, 65,248,134,112,109,140,233,
44, 88,197,140, 74, 41, 38, 81, 95,100,145,229, 89, 16,229,173,184,222, 62, 70,253,105, 10,241, 41,142,195, 40, 49, 24,101,103,
207, 36, 5,185, 48,160,233,201,100,158,226,212, 18,147,214, 5, 49,156,125,246,217, 31,254,224, 7,142, 28, 57,114,199,231,254,
217,227,143, 63,241,140, 20, 68, 28,227, 10,199,180, 6, 78,196, 55,224,152,200, 18,129, 82,113,191,246,236,129,193, 80,104, 85,
10, 9,253,164, 46, 74,160,135,156,192, 48,223,132,137,227, 49,114, 18, 2, 37, 35,114, 57, 55, 50, 41,168,231, 99, 94, 71, 54,
178, 95,172, 39, 86,153, 48, 0,216,154,182, 46, 7, 35, 6,165,148,134, 2,200,185,181,157, 59,111,188,225,173,199,142, 29,253,
141,127,250,155,115,147,172,243, 10,242,197, 15, 3, 98, 78, 56, 9,209,201,191, 65, 2, 10,221,110,111,111,144, 58, 21, 10, 0,
148,214,131,225,200, 90,219,212,149,117, 14,201,249,116, 1, 20, 42,152, 59, 86,230, 36,249,115,190,155,115,110, 60,233,141,216,
148,203,200,164,150, 92,154,207,180,214,216, 48,191,218,117, 77,219, 84,117, 93,173,172,238, 34,114,194, 82,246,102,129,110,101,
101,245,151,110,186,241,225,111, 63,124,199,231,126,171,222,230,116, 5,228,101,143,159, 22,143,229, 35, 8,167, 9,129,133, 17,
236, 63, 36, 25,117,226, 36,120, 74,143,184, 82, 57, 24,140,104, 66,204,109, 35, 52, 55, 10, 52,151, 72, 61, 71,200, 91,198,112,
2,245,100,126,230, 79,212,201, 99, 80,136, 61,121,244, 9, 19,253, 18,131,188,115,181,166, 53,157,169,219,186,106,234,233,194,
226,138, 82,104,173, 45,139, 82,116,196, 12, 10,160, 40,193, 90,220,183,127,255,123,223,253,139,247, 63,240, 95,238,252,210,151,
79,232, 98,190, 51,135,158, 95,138,161,248,244,190, 19, 8,239, 40,123,151, 31, 54, 67,244, 60, 57, 31,173, 61,147,184, 28, 12,
198,204, 8,208, 52,181, 49,134,200,113,100,153, 96,242,210, 84, 74,101,109,110, 74,163,121, 25, 41,155,243, 12,217,101, 1,200,
159,163, 21,167,229, 93,118,234,129, 53, 93,215, 54, 93, 91,181, 77, 5, 80,236,220,181,203,145, 11,100, 90,201,221,148, 3, 70,
102,173, 11, 0,116, 14, 15, 92,124,241, 11,206, 61,247,142,207,253,214,227,249,144,118,210, 16,138,165,136,118, 88, 54,159,244,
198,243,105, 24, 66, 26,192,196, 33, 75,242,244, 34,165, 20,251, 9,215, 1,200, 17, 2,109,211, 54,141,181,198, 57,202, 41, 27,
8,114,153,208,156,101, 72,211,147,180,173,218,240,201,140,228,147, 78,146, 30,226,224, 85,105, 20,219,248,232,220,117,198,180,
93,215,152,182, 50, 93,219, 25, 90, 88, 24,141,198, 11, 90,151,222,223, 81,216, 48, 82, 34, 49, 48, 43,165,152, 53,107, 30,142,
38,111,121,211,223,253,223,127,246,103,191,247,251,255, 57, 84,243,158, 64,201,236, 29,202, 15,251, 35,202,154, 34,162,160, 16,
200, 64, 41, 18, 49, 51, 50,250,142, 48,167, 66,222, 23, 37, 80,148,165,167,144,106,221,182, 77,215,118, 98, 77,146,247, 1,204,
57, 87,136,211,148,230, 11,120, 62,237,118,113,131,247, 41, 96, 48,158,200, 15, 22,237, 88,211,153,174,238,218,218, 24,227, 28,
148,131,114,247,105,123,151,150, 87, 7,131,129, 82,218, 91,177,192, 76,178, 53,161, 98,100,153, 97, 47, 10,109, 29,159,125,206,
185,151,235,242,193,111, 63, 90, 64,162, 49, 33,147,199,116,100,206,158,179, 42, 62,235,238,114,228,140, 33, 32, 49,137,163,137,
37,196,189, 28,125,180, 81,101, 57, 80, 82,135, 20,173,144, 59, 1,140,181,222, 69, 98,183,151,121,155,237,164,115,127,122, 1,
40, 35,207, 91,202, 78, 21,112,214, 90,219, 25, 35,179,234,181, 49,157,179, 14, 0,150,150,151,118,239,217,127,202,238, 83, 23,
22, 23, 7,131,129,150,179, 2, 19,253, 16, 37,162, 70,202,164, 67,242,197, 41,170,140, 27, 40,112,167,183, 25, 22,205,250, 55,
50,221,227,149,205,224,245,136,222,148, 66,150,148,246,236,237,245,158, 86, 37, 14,148,214, 69, 89,150, 93, 25,134,221, 91,107,
140, 53, 76, 28,131, 74,218,207,211, 97,103, 33,127,102,151,198, 14,178,188, 80, 40,245, 94, 59,214, 24,107, 90,107, 59, 34,171,
148,158, 44, 47,237, 88, 61,101,101,237,148,229,229, 29,147,133,197,225,112,168,180, 14, 5, 66,204, 55, 48, 36,177, 40,147, 34,
168, 52, 50,171, 0, 89,244,131,180,108, 88,128,129,125,128, 97,110, 61, 96,133, 97,166, 35,152, 83,176, 32, 10,164, 16,140, 65,
41, 47,186, 64,202,145,178, 44,149, 82, 69, 81,150,101, 57, 28, 14,133,250,221,117,129,166, 14,192,108,137,216,111,225,158,100,
236, 40,219,173,182,219, 78, 56, 97,213, 17, 91, 0, 40, 6,195,241,100,113, 56, 26,143, 23, 22, 23, 22,150, 38,139,139,227,241,
120, 56, 28,233,162, 40,180,246,181,182,231,168, 65,130,165, 60,170,139, 1,118, 83, 82,109,230, 49, 8,152, 9, 16,137, 17,146,
225,248,160,228,171,179,100, 89, 20, 6,181,132,231, 24, 82, 3, 79,180, 74,199,204,228, 6,197,158,206,168,177,240,243, 68,101,
89, 90,107, 71,145, 76,108, 60, 51, 53, 28,145, 98,201, 90, 75,214, 89,229,156,141,121, 25, 3, 3, 20,158,140, 78, 69, 72, 90,
149, 86,170, 40,202, 98, 48, 24, 14, 6,131,225,112, 56, 28,150,131, 65, 89, 10,171, 53,204, 55,245,104, 42,137,206,159,147,110,
61,146, 27,106,163, 2, 34,183, 48, 83, 13,137,174, 0,189,210, 66,172,102, 2,150,128, 45,161, 91, 24,161, 12,132,137,143, 72,
33, 98, 33,244,152,102,152, 41, 11, 21, 42,212, 2, 68, 17, 81, 89,148,142,156,115,163,254,188, 76,122,227,108, 28,236, 33,150,
195,193,122, 79,164,148, 86, 90, 41,173, 11,165,197, 86,148,214,133, 28,185, 3, 74,133,218, 26,122, 12,213,185,250, 32,203,141,
179,124, 36, 38,138,158, 13, 37, 41, 33, 65,208, 81,120,195,130,195, 34,160,223,156,101, 95, 71, 8,227,128,217,172,133, 79, 13,
197,204,252,239,227, 17,168,137,100,233,121,194, 74,249, 93, 68, 9,207,188,215, 2,227,136,246, 80, 63, 63,226, 48,177, 20,200,
223, 30,179, 65,165,148,224, 43,115, 41, 59, 70,198, 26,251, 44,175,119, 82,224,156,226, 50, 70,119,218,230,179,202,193, 7,160,
109, 58, 2,137, 56, 64, 97, 28,135, 82,201,234, 23,149,114,226, 50, 16,134,107, 49, 16, 16,114,130, 7, 32, 48, 89, 49,244, 39,
180, 70, 34,242,100,103,214, 84,164,211, 67,182, 49,174, 82,185,187,141,215, 3, 89,138,203, 57,133,143, 18, 36, 65, 57, 46,206,
208,187, 82,168,204,251, 46,230,123, 48, 94, 29,114, 3, 98,198, 72, 65,166,144, 46,147, 28,100,195, 49,123,130,185,160, 19,131,
90,188,117,100,206, 17, 80, 72, 51,243,179, 29,146,128,152, 97, 70, 74,118, 27, 66, 86,190,216,211,115,167, 85, 36, 30, 89,164,
142,249,138, 40,193, 14, 89, 31, 10,125,190, 14, 39,240, 50,238, 55,119, 56,205,210, 41, 72, 52,102,144, 58, 58,112,255, 32,167,
36, 66, 56,143, 81,120,186, 28, 44, 60, 30,164, 1, 61, 62,166, 16,200, 41, 18, 64,163,147,245, 9,172,105, 33,123,185,130,152,
43,132, 38, 9,128,159, 67,148,130,198,167, 44,113, 74,209,207,182,114,178,160,108,131,232,207, 84,132,231,199, 62, 81, 55,227,
115,207, 5,239,120, 30, 84, 70, 95, 21,241, 56,244,120, 56, 66, 66, 28,146,135,156,187,152,115,198,179, 81,138,220,132, 18,108,
24,232,166,169,185, 24, 42,143,222,136, 64,230,239, 20,177,145,180, 83, 98,118,206, 80,114,103,206,197,202,152,140,233, 52,148,
140,140, 74,193, 96,209, 7,110,206, 56,206,105, 4, 0,242, 68, 49,111,135, 98,204,253,179,156,168,199, 58,239,205,119, 5,180,
76, 2,115,214,223,233,149,163,161,173, 24, 9,217,146, 95,165, 33,154, 94, 20, 73, 45,179,160,130, 94,155,176,215,191,245, 24,
104,239, 80,150, 30,147, 60,242,197,227, 56, 35,165,240, 22,181,205, 81,150, 92, 73, 42, 89, 16,164,209,221,236, 99,249,188, 11,
100,163, 49,158, 6,237,207,248,242,133,102,144,139,194, 49, 55,105, 99,141,234,167,224,129, 32,243, 52,136,137,123, 13,225, 25,
56, 27, 50,242,131, 89,144,181,179, 33,210,117,227,149,251,186,203,225, 38,244,124,221, 88, 34, 81,127, 22,162,215,182,164,172,
85, 55,103, 65, 49,127, 9, 53,123, 56,154, 42, 79, 98, 60, 37, 26,250, 81,150,146,240, 94, 20,159,170, 50,201,249, 59,201, 26,
48,108,106,208, 63,158, 43,156, 84, 20, 76,133,178,232, 10, 0,132,126,112, 13, 32, 30,230,147, 71,225,121,171,153, 39, 54,103,
251, 1, 71,182, 52, 72, 45, 9, 60,215,211,205,237, 32,219,230,123, 31, 73,229, 40,132,105, 77,136,129, 57, 57, 73, 38, 96, 62,
197,146,175, 95,156, 28, 20,157, 83,156,198,137,147, 15,222,127, 48,153, 15,231,207,221,127, 67,153,227, 66,111,220, 97,110,251,
239, 77, 31,196,103,164,124, 19,139,115, 1, 3,219,202, 57, 0, 0, 1,249, 73, 68, 65, 84,115, 12,128, 94, 28, 42, 18,232, 32,
71,246,205,105, 30, 48,197, 68,240,154,147, 21, 68, 70,102, 66,255,103,132, 62, 72,178,113,159, 37,138, 24,136,241,154, 24, 30,
72,254, 59, 9, 8,125,112, 17,230,182,254, 24,253, 57,163,135,111, 55, 30,198, 62, 56,153, 2, 88,127, 20,103,174,239,154, 15,
16,204, 13,162,246, 93, 44,134, 27, 10,147, 86, 18, 90, 0,253,233,120, 24,183,100, 15,106, 97, 24,153,200,167, 57, 51,151,203,
54,145, 48, 6,214,219,200,227, 33,206, 25, 97, 36,115,132, 44,116,179,120,101,239, 72, 14,200,102,100,252,168, 66,222,106,203,
79,164,234,197,104,218, 54,144,209,155,139,201,155,117,125, 23,139, 99, 10,121,126,154, 86, 38,128,209,217, 16, 0, 65,111,114,
27,160,151,185, 97, 86,183,166,141, 1,251,230, 63,127,234, 86,102,217,105,102, 42,168,155,122,211, 24,243,227, 16,253,153,174,
124, 98, 36,111,222, 18,244, 14, 34,227, 56,161,177,157, 70,145,237, 90, 69,188, 50,113,122,234, 60,213,160,176,149,139,201, 96,
120,211,155,117, 39, 9, 50, 40,245,132, 63,144, 22,195,242, 99,140,233,224,177,181, 12,191,133, 92, 77,156,141, 51, 97, 88, 36,
142,217, 74,172,137, 17,182, 41, 40,157, 30,152,107, 58,212,207, 49, 2, 1,159,104, 11,235, 85,120,185, 37,199, 68,145,146,245,
102, 94, 30,197,241, 14,213, 27, 70,202, 34, 44, 39,195,202,142,176,139,249,221,188,139, 37,167, 38,134, 57,237,228,189,164,232,
176,144,209,128, 32,140, 89,205, 79,101,245, 39,248, 78,176,183,165, 32, 29,173, 7,120,126,228, 44,139,200,185, 5, 9,182,137,
89,214,198,121, 61,195,219,160,215,109, 39,213, 65, 56,215, 51, 85,174,217,126, 13, 39, 58,204,142,251,121, 89,182,240,212, 27,
236,235,101,230,249,182,149,156, 49, 61, 97,252,239,184, 36,207,232,239, 76,233, 8, 75,158, 3,124, 79, 16,189, 67,144,206,138,
236, 94,174, 12,121, 29,229,147, 31,232,231,248,249,147,245, 53, 49, 7, 56, 60,157,118, 32,191, 85,118,107,216,118, 28, 32,247,
206, 26,133, 30, 53, 45, 33, 21, 89,197,144,219, 81,186,126,126, 20,117, 62, 98, 69,144,143,231,226,193,131, 7,121,238, 9,255,
82,142,238,244,200,132,207, 98,224,231,255, 0,194, 7,103,207, 35,149,125,120, 0, 0, 0, 0, 73, 69, 78, 68,174, 66, 96,130,
0};
|
the_stack_data/134686.c | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
void distance(int *,int *,int,int);
int main()
{
int n,*x,*y,i,nr=1;
printf("Enter the number of co-ordinates you would like to insert : ");
scanf("%d",&n);
x=(int *)malloc(n*sizeof(int));
y=(int *)malloc(n*sizeof(int));
for(i=1;i<n;i++)
nr=nr*i;
printf("\n Enter the x and y co-ordinate \n");
for(i=0;i<n;i++)
{
printf("%d \n",i+1);
scanf("%d%d",&x[i],&y[i]);
printf("\n\n");
}
distance(x,y,n,nr);
free(x);
free(y);
return 0;
}
void distance(int *x,int *y,int n,int nr)
{
int i,j,k=0;
float *f,t;
f=(float *)malloc(nr*sizeof(float));
for(i=0;i<(nr-1);i++)
{
j=i+1;
for(;j<nr;j++)
{
f[k]=sqrt(pow((x[i]-x[j]),2)+pow((y[i]-y[j]),2));
k++;
}
}
t=f[0];
for(i=1;i<nr;i++)
{
if(t>f[i])
t=f[i];
}
printf("\n Smallest distance is : %f ",t);
k=0;
for(i=0;i<(nr-1);i++)
{
j=i+1;
for(;j<nr;j++)
{
f[k]=sqrt(pow((x[i]-x[j]),2)+pow((y[i]-y[j]),2));
if(f[k]==t)
{
printf("\n Closest pairs are : (%d,%d) and (%d,%d)",x[i],y[i],x[j],y[j]);
break;
}
k++;
}
}
free(f);
}
|
the_stack_data/206391933.c | #include <stdio.h>
#include <omp.h>
main() {
int n = 9, i, b[n];
for (i=0; i<n; i++)
b[i] = -1;
#pragma omp parallel
{
int a;
//Al single solo entra una de las hebras en paralelo, y copyprivate copia el valor que
//tome esa varaible en el resto de hebras ejecutandose en paralelo
#pragma omp single
{
printf("\nIntroduce valor de inicialización a: ");
scanf("%d", &a);
printf("\nSingle ejecutada por el thread %d\n",omp_get_thread_num());
}
#pragma omp for
for (i=0; i<n; i++)
b[i] = a;
}
printf("Depués de la región parallel:\n");
for (i=0; i<n; i++)
printf("b[%d] = %d\t",i,b[i]);
printf("\n");
}
|
the_stack_data/59514156.c | #include <stdlib.h>
#define str(x) #x
#define xstr(x) str(x)
// XXX Same as in lib/mutation.cpp
extern unsigned klee_semu_GenMu_Mutant_ID_Selector;
// global constructor mutant selector
__attribute__ ((constructor)) void martLLVM_Metamutant_mutant_selector() {
char *MARTLLVM_mutant_id = getenv(xstr(MART_SELECTED_MUTANT_ID));
if (MARTLLVM_mutant_id)
klee_semu_GenMu_Mutant_ID_Selector = atoll(MARTLLVM_mutant_id);
} |
the_stack_data/54975.c | #include <stdio.h>
#include <ctype.h>
#define MAX 200
int main() {
char message[MAX];
for (char *c = fgets(message, MAX, stdin); *c; ++c)
if (isalpha(*c)) putchar('a' + 'z' - tolower(*c));
else putchar(*c);
return 0;
}
|
the_stack_data/112248.c | /* Copyright 1999-2015 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <stdlib.h>
#include <string.h>
struct _simple_struct {
int integer;
unsigned int unsigned_integer;
char character;
signed char signed_character;
char *char_ptr;
int array_of_10[10];
};
typedef struct _simple_struct simpleton;
simpleton global_simple;
enum foo {
bar = 1,
baz
};
typedef enum foo efoo;
union named_union
{
int integer;
char *char_ptr;
};
typedef struct _struct_decl {
int integer;
char character;
char *char_ptr;
long long_int;
int **int_ptr_ptr;
long long_array[10];
void (*func_ptr) (void);
struct _struct_decl (*func_ptr_struct) (int, char *, long);
struct _struct_decl *(*func_ptr_ptr) (int, char *, long);
union {
int a;
char *b;
long c;
enum foo d;
} u1;
struct {
union {
struct {
int d;
char e[10];
int *(*func) (void);
efoo foo;
} u1s1;
long f;
struct {
char array_ptr[2];
int (*func) (int, char *);
} u1s2;
} u2;
int g;
char h;
long i[10];
} s2;
} weird_struct;
struct _struct_n_pointer {
char ****char_ptr;
long ****long_ptr;
struct _struct_n_pointer *ptrs[3];
struct _struct_n_pointer *next;
};
struct anonymous {
int a;
struct {
int b;
char *c;
union {
int d;
void *e;
char f;
struct {
char g;
const char **h;
simpleton ***simple;
};
};
};
};
void do_locals_tests (void);
void do_block_tests (void);
void subroutine1 (int, long *);
void nothing (void);
void do_children_tests (void);
void do_special_tests (void);
void incr_a (char);
void incr_a (char a)
{
int b;
b = a;
}
int array[] = {1,2,3};
int array2[] = {4,5,6};
int *array_ptr = array;
void
do_locals_tests ()
{
int linteger = 0;
int *lpinteger = 0;
char lcharacter[2] = { 0, 0 };
char *lpcharacter = 0;
long llong = 0;
long *lplong = 0;
float lfloat = 0;
float *lpfloat = 0;
double ldouble = 0;
double *lpdouble = 0;
struct _simple_struct lsimple = { 0 };
struct _simple_struct *lpsimple = 0;
void (*func) (void) = 0;
/* Simple assignments */
linteger = 1234;
lpinteger = &linteger;
lcharacter[0] = 'a';
lpcharacter = lcharacter;
llong = 2121L;
lplong = &llong;
lfloat = 2.1;
lpfloat = &lfloat;
ldouble = 2.718281828459045;
lpdouble = &ldouble;
lsimple.integer = 1234;
lsimple.unsigned_integer = 255;
lsimple.character = 'a';
lsimple.signed_character = 21;
lsimple.char_ptr = lcharacter;
lpsimple = &lsimple;
func = nothing;
/* Check pointers */
linteger = 4321;
lcharacter[0] = 'b';
llong = 1212L;
lfloat = 1.2;
ldouble = 5.498548281828172;
lsimple.integer = 255;
lsimple.unsigned_integer = 4321;
lsimple.character = 'b';
lsimple.signed_character = 0;
subroutine1 (linteger, &llong);
}
void
nothing ()
{
}
struct _struct_decl
nothing1 (int a, char *b, long c)
{
struct _struct_decl foo;
return foo;
}
struct _struct_decl *
nothing2 (int a, char *b, long c)
{
return (struct _struct_decl *) 0;
}
void
subroutine1 (int i, long *l)
{
global_simple.integer = i + 3;
i = 212;
*l = 12;
}
void
do_block_tests ()
{
int cb = 12;
{
int foo;
foo = 123;
{
int foo2;
foo2 = 123;
{
int foo;
foo = 321;
}
foo2 = 0;
}
foo = 0;
}
cb = 21;
}
void
do_children_tests (void)
{
weird_struct *weird;
struct _struct_n_pointer *psnp;
struct _struct_n_pointer snp0, snp1, snp2;
char a0[2] = {}, *a1, **a2, ***a3;
char b0[2] = {}, *b1, **b2, ***b3;
char c0[2] = {}, *c1, **c2, ***c3;
long z0, *z1, **z2, ***z3;
long y0, *y1, **y2, ***y3;
long x0, *x1, **x2, ***x3;
int *foo;
int bar;
/* Avoid pointing into NULL, as that is editable on some
systems. */
int dummy;
int *dummy_ptr = &dummy;
struct _struct_decl struct_declarations = { 0, 0, NULL, 0, &dummy_ptr };
weird = &struct_declarations;
struct_declarations.integer = 123;
weird->char_ptr = "hello";
bar = 2121;
foo = &bar;
struct_declarations.int_ptr_ptr = &foo;
weird->long_array[0] = 1234;
struct_declarations.long_array[1] = 2345;
weird->long_array[2] = 3456;
struct_declarations.long_array[3] = 4567;
weird->long_array[4] = 5678;
struct_declarations.long_array[5] = 6789;
weird->long_array[6] = 7890;
struct_declarations.long_array[7] = 8901;
weird->long_array[8] = 9012;
struct_declarations.long_array[9] = 1234;
weird->func_ptr = nothing;
weird->func_ptr_struct = nothing1;
weird->func_ptr_ptr = nothing2;
/* Struct/pointer/array tests */
a0[0] = '0';
a1 = a0;
a2 = &a1;
a3 = &a2;
b0[0] = '1';
b1 = b0;
b2 = &b1;
b3 = &b2;
c0[0] = '2';
c1 = c0;
c2 = &c1;
c3 = &c2;
z0 = 0xdead + 0;
z1 = &z0;
z2 = &z1;
z3 = &z2;
y0 = 0xdead + 1;
y1 = &y0;
y2 = &y1;
y3 = &y2;
x0 = 0xdead + 2;
x1 = &x0;
x2 = &x1;
x3 = &x2;
snp0.char_ptr = &a3;
snp0.long_ptr = &z3;
snp0.ptrs[0] = &snp0;
snp0.ptrs[1] = &snp1;
snp0.ptrs[2] = &snp2;
snp0.next = &snp1;
snp1.char_ptr = &b3;
snp1.long_ptr = &y3;
snp1.ptrs[0] = &snp0;
snp1.ptrs[1] = &snp1;
snp1.ptrs[2] = &snp2;
snp1.next = &snp2;
snp2.char_ptr = &c3;
snp2.long_ptr = &x3;
snp2.ptrs[0] = &snp0;
snp2.ptrs[1] = &snp1;
snp2.ptrs[2] = &snp2;
snp2.next = 0x0;
psnp = &snp0;
snp0.char_ptr = &b3;
snp1.char_ptr = &c3;
snp2.char_ptr = &a3;
snp0.long_ptr = &y3;
snp1.long_ptr = &x3;
snp2.long_ptr = &z3;
{int a = 0;}
}
void
do_special_tests (void)
{
union named_union u;
union {
int a;
char b;
long c;
} anonu;
struct _simple_struct s;
struct {
int a;
char b;
long c;
} anons;
enum foo e;
enum { A, B, C } anone;
int array[21];
int a;
a = 1;
u.integer = a;
anonu.a = a;
s.integer = a;
anons.a = a;
e = bar;
anone = A;
incr_a(2);
}
void do_frozen_tests ()
{
/*: BEGIN: frozen :*/
struct {
int i;
struct {
int j;
int k;
} nested;
} v1 = {1, {2, 3}};
int v2 = 4;
/*:
mi_create_varobj V1 v1 "create varobj for v1"
mi_create_varobj V2 v2 "create varobj for v2"
mi_list_varobj_children "V1" {
{"V1.i" "i" "0" "int"}
{"V1.nested" "nested" "2" "struct {...}"}
} "list children of v1"
mi_list_varobj_children "V1.nested" {
{"V1.nested.j" "j" "0" "int"}
{"V1.nested.k" "k" "0" "int"}
} "list children of v1.nested"
mi_check_varobj_value V1.i 1 "check V1.i: 1"
mi_check_varobj_value V1.nested.j 2 "check V1.nested.j: 2"
mi_check_varobj_value V1.nested.k 3 "check V1.nested.k: 3"
mi_check_varobj_value V2 4 "check V2: 4"
:*/
v2 = 5;
/*:
mi_varobj_update * {V2} "update varobjs: V2 changed"
set_frozen V2 1
:*/
v2 = 6;
/*:
mi_varobj_update * {} "update varobjs: nothing changed"
mi_check_varobj_value V2 5 "check V2: 5"
mi_varobj_update V2 {V2} "update V2 explicitly"
mi_check_varobj_value V2 6 "check V2: 6"
:*/
v1.i = 7;
v1.nested.j = 8;
v1.nested.k = 9;
/*:
set_frozen V1 1
mi_varobj_update * {} "update varobjs: nothing changed"
mi_check_varobj_value V1.i 1 "check V1.i: 1"
mi_check_varobj_value V1.nested.j 2 "check V1.nested.j: 2"
mi_check_varobj_value V1.nested.k 3 "check V1.nested.k: 3"
# Check that explicit update for elements of structures
# works.
# Update v1.j
mi_varobj_update V1.nested.j {V1.nested.j} "update V1.nested.j"
mi_check_varobj_value V1.i 1 "check V1.i: 1"
mi_check_varobj_value V1.nested.j 8 "check V1.nested.j: 8"
mi_check_varobj_value V1.nested.k 3 "check V1.nested.k: 3"
# Update v1.nested, check that children is updated.
mi_varobj_update V1.nested {V1.nested.k} "update V1.nested"
mi_check_varobj_value V1.i 1 "check V1.i: 1"
mi_check_varobj_value V1.nested.j 8 "check V1.nested.j: 8"
mi_check_varobj_value V1.nested.k 9 "check V1.nested.k: 9"
# Update v1.i
mi_varobj_update V1.i {V1.i} "update V1.i"
mi_check_varobj_value V1.i 7 "check V1.i: 7"
:*/
v1.i = 10;
v1.nested.j = 11;
v1.nested.k = 12;
/*:
# Check that unfreeze itself does not updates the values.
set_frozen V1 0
mi_check_varobj_value V1.i 7 "check V1.i: 7"
mi_check_varobj_value V1.nested.j 8 "check V1.nested.j: 8"
mi_check_varobj_value V1.nested.k 9 "check V1.nested.k: 9"
mi_varobj_update V1 {V1.i V1.nested.j V1.nested.k} "update V1"
mi_check_varobj_value V1.i 10 "check V1.i: 10"
mi_check_varobj_value V1.nested.j 11 "check V1.nested.j: 11"
mi_check_varobj_value V1.nested.k 12 "check V1.nested.k: 12"
:*/
/*: END: frozen :*/
}
void do_at_tests_callee ()
{
/* This is a test of wrong DWARF data being assigned to expression.
The DWARF location expression is bound to symbol when expression
is parsed. So, if we create floating varobj in one function,
and then try to reevaluate it in other frame without reparsing
the expression, we will access local variables using DWARF
location expression from the original frame, and are likely
to grab wrong symbol. To reliably reproduce this bug, we need
to wrap our variable with a bunch of buffers, so that those
buffers are accessed instead of the real one. */
int buffer1 = 10;
int buffer2 = 11;
int buffer3 = 12;
int i = 7;
int buffer4 = 13;
int buffer5 = 14;
int buffer6 = 15;
i++; /* breakpoint inside callee */
i++;
}
void do_at_tests ()
{
int x;
/*: BEGIN: floating :*/
int i = 10;
int y = 15;
/*:
mi_create_floating_varobj F i "create floating varobj"
:*/
i++;
/*:
mi_varobj_update F {F} "update F (1)"
mi_check_varobj_value F 11 "check F (1)"
:*/
i++;
{
double i = 15;
/*:
mi_varobj_update_with_type_change F "double" "0" "update F (2)"
mi_check_varobj_value F 15 "check F (2)"
:*/
i += 2.0;
}
{
float i = 19;
/*:
mi_gdb_test "-var-update --all-values F" {.*value="19".*} "update F (--all-values)"
:*/
i += 2.0;
}
i++;
/*:
mi_varobj_update_with_type_change F "int" "0" "update F (3)"
mi_check_varobj_value F 13 "check F (3)"
:*/
i++;
do_at_tests_callee ();
i++;
/*: END: floating :*/
}
/* Some header appear to define uint already, so apply some
uglification. Note that without uglification, the compile
does not fail, rather, we don't test what we want because
something else calls check_typedef on 'uint' already. */
typedef unsigned int uint_for_mi_testing;
struct Data {
int alloc;
uint_for_mi_testing sharable : 4;
};
/* Accessing a value of a bitfield whose type is a typed used to
result in division by zero. See:
http://sourceware.org/bugzilla/show_bug.cgi?id=10884
This tests for this bug. */
void do_bitfield_tests ()
{
/*: BEGIN: bitfield :*/
struct Data d = {0, 3};
/*:
mi_create_varobj V d "create varobj for Data"
mi_list_varobj_children "V" {
{"V.alloc" "alloc" "0" "int"}
{"V.sharable" "sharable" "0" "uint_for_mi_testing"}
} "list children of Data"
mi_check_varobj_value V.sharable 3 "access bitfield"
:*/
return;
/*: END: bitfield :*/
}
void
do_anonymous_type_tests (void)
{
struct anonymous *anon;
struct anonymous **ptr;
struct
{
int x;
struct
{
int a;
};
struct
{
int b;
};
} v = {1, {2}, {3}};
anon = malloc (sizeof (struct anonymous));
anon->a = 1;
anon->b = 2;
anon->c = (char *) 3;
anon->d = 4;
anon->g = '5';
anon->h = (const char **) 6;
anon->simple = (simpleton ***) 7;
ptr = &anon;
free (anon);
return; /* anonymous type tests breakpoint */
}
void
do_nested_struct_union_tests (void)
{
struct s_a
{
int a;
};
struct s_b
{
int b;
};
union u_ab
{
struct s_a a;
struct s_b b;
};
struct ss
{
struct s_a a1;
struct s_b b1;
union u_ab u1;
/* Anonymous union. */
union
{
struct s_a a2;
struct s_b b2;
};
union
{
struct s_a a3;
struct s_b b3;
} u2;
};
typedef struct
{
int a;
} td_s_a;
typedef struct
{
int b;
} td_s_b;
typedef union
{
td_s_a a;
td_s_b b;
} td_u_ab;
struct ss var;
struct
{
td_u_ab ab;
} var2;
struct ss *ss_ptr;
memset (&var, 0, sizeof (var));
memset (&var2, 0, sizeof (var2));
ss_ptr = &var;
return; /* nested struct union tests breakpoint */
}
int
main (int argc, char *argv [])
{
do_locals_tests ();
do_block_tests ();
do_children_tests ();
do_special_tests ();
do_frozen_tests ();
do_at_tests ();
do_bitfield_tests ();
do_anonymous_type_tests ();
do_nested_struct_union_tests ();
exit (0);
}
|
the_stack_data/45449561.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memalloc.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vyastrub <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/02 12:10:27 by vyastrub #+# #+# */
/* Updated: 2016/12/09 13:25:09 by vyastrub ### ########.fr */
/* */
/* ************************************************************************** */
#include <string.h>
#include <stdlib.h>
char *ft_strnew(size_t size)
{
char *s;
size_t i;
s = malloc(size + 1);
if (!s)
return (0);
i = 0;
while (i < size)
s[i++] = 0;
s[i] = '\0';
return (s);
}
|
the_stack_data/36076503.c | /*
* @explain: Copyright (c) 2020 WEI.ZHOU. All rights reserved.
* The following code is only used for learning and communication, not for illegal and commercial use.
* If the code is used, no consent is required, but the author has nothing to do with any problems
* and consequences.
*
* In case of code problems, feedback can be made through the following email address.
* <[email protected]>
*
* @Description:
* @Author: WEI.ZHOU
* @Date: 2020-11-29 11:00:35
* @Version: V1.0
* @Others: Running test instructions
*
*/
#include <stdio.h>
#define OPERATION_SUCCESS 1
#define OPERATION_ERROR 0
#define ZERO 0
#define ONE 1
int fun(int a);
int main(){
int a = 3;
fun(a);
printf("%d\n", a);
return OPERATION_SUCCESS;
}
int fun(int a) {
a = a + 3;
return a;
} |
the_stack_data/200142651.c | // Andrew Taylor - [email protected]
// 25/09/20
#include <stdio.h>
#include <math.h>
int main(void) {
double x = 0.0/0.0;
printf("%lf\n", x); //prints nan
printf("%lf\n", x - 1); // prints nan
printf("%d\n", x == x); // prints 0 (false)
printf("%d\n", isnan(x)); // prints 1 (true)
return 0;
}
|
the_stack_data/554764.c |
//{{BLOCK(marioMap)
//======================================================================
//
// marioMap, 256x256@4,
// + palette 16 entries, not compressed
// + 1024 tiles not compressed
// + regular map (in SBBs), not compressed, 32x32
// Total size: 32 + 32768 + 2048 = 34848
//
// Time-stamp: 2021-11-15, 22:41:23
// Exported by Cearn's GBA Image Transmogrifier, v0.8.3
// ( http://www.coranac.com/projects/#grit )
//
//======================================================================
const unsigned short marioMapTiles[16384] __attribute__((aligned(4)))=
{
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9966,0x9669,0x9666,0x9666,0x6666,0x9666,0x6666,0x9666,
0x6966,0x9669,0x9966,0x9669,0x9966,0x9669,0x9999,0x9999,
0x6699,0x9996,0x9669,0x9966,0x9966,0x9669,0x9966,0x9669,
0x6666,0x9666,0x9966,0x9669,0x9966,0x9669,0x9999,0x9999,
0x6666,0x9966,0x9966,0x9669,0x9966,0x9669,0x9966,0x9666,
0x6666,0x9996,0x6966,0x9966,0x9966,0x9666,0x9999,0x9999,
0x6669,0x9666,0x6999,0x9996,0x6999,0x9996,0x6999,0x9996,
0x6999,0x9996,0x6999,0x9996,0x6669,0x9666,0x9999,0x9999,
0x6669,0x9966,0x9966,0x9669,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9966,0x9669,0x6669,0x9966,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9966,0x9669,0x9966,0x9669,0x6966,0x9669,0x6666,0x9666,
0x6666,0x9666,0x9666,0x9666,0x9966,0x9669,0x9999,0x9999,
0x6669,0x9966,0x9966,0x9669,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9966,0x9669,0x6669,0x9966,0x9999,0x9999,
0x6666,0x9966,0x9966,0x9669,0x9966,0x9669,0x9966,0x9666,
0x6666,0x9996,0x6966,0x9966,0x9966,0x9666,0x9999,0x9999,
0x9669,0x9999,0x9669,0x9999,0x9669,0x9999,0x9669,0x9999,
0x9669,0x9999,0x9669,0x9999,0x6669,0x9666,0x9999,0x9999,
0x6666,0x9996,0x9966,0x9966,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9966,0x9966,0x6666,0x9996,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x6669,0x9666,0x6999,0x9996,0x6999,0x9996,0x6999,0x9996,
0x6999,0x9996,0x6999,0x9996,0x6999,0x9996,0x9999,0x9999,
0x6669,0x9666,0x6999,0x9996,0x6999,0x9996,0x6999,0x9996,
0x6999,0x9996,0x6999,0x9996,0x6669,0x9666,0x9999,0x9999,
0x9966,0x9669,0x9666,0x9666,0x6666,0x9666,0x6666,0x9666,
0x6966,0x9669,0x9966,0x9669,0x9966,0x9669,0x9999,0x9999,
0x6666,0x9666,0x9966,0x9999,0x9966,0x9999,0x6666,0x9966,
0x9966,0x9999,0x9966,0x9999,0x6666,0x9666,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x6699,0x9996,0x9969,0x9966,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9669,0x9969,0x6699,0x9996,0x9999,0x9999,
0x6699,0x9996,0x9969,0x9966,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9669,0x9969,0x6699,0x9996,0x9999,0x9999,
0x6699,0x9996,0x9969,0x9966,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9669,0x9969,0x6699,0x9996,0x9999,0x9999,
0x6699,0x9996,0x9969,0x9966,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9669,0x9969,0x6699,0x9996,0x9999,0x9999,
0x6699,0x9996,0x9969,0x9966,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9669,0x9969,0x6699,0x9996,0x9999,0x9999,
0x6699,0x9996,0x9969,0x9966,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9669,0x9969,0x6699,0x9996,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x7799,0x9990,0x7779,0x9907,0x7779,0x9907,0x7779,0x9907,
0x7779,0x9907,0x7779,0x9907,0x7709,0x9980,0x0099,0x9998,
0x9999,0x9999,0x9999,0x9999,0x9969,0x9969,0x9699,0x9996,
0x6999,0x9999,0x9699,0x9996,0x9969,0x9969,0x9999,0x9999,
0x6699,0x9996,0x9969,0x9966,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9669,0x9969,0x6699,0x9996,0x9999,0x9999,
0x6699,0x9996,0x9969,0x9966,0x9966,0x9669,0x9966,0x9669,
0x9966,0x9669,0x9669,0x9969,0x6699,0x9996,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x6999,0x9996,0x6699,0x9996,0x6999,0x9996,0x6999,0x9996,
0x6999,0x9996,0x6999,0x9996,0x6669,0x9666,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x6669,0x9666,
0x6669,0x9666,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x6999,0x9996,0x6699,0x9996,0x6999,0x9996,0x6999,0x9996,
0x6999,0x9996,0x6999,0x9996,0x6669,0x9666,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x6669,0x9666,0x9999,0x9966,0x6999,0x9996,0x6699,0x9966,
0x9999,0x9669,0x9966,0x9669,0x6669,0x9966,0x9999,0x9999,
0x6669,0x9966,0x9966,0x9669,0x9966,0x9669,0x6669,0x9966,
0x9966,0x9669,0x9966,0x9669,0x6669,0x9966,0x9999,0x9999,
0x6669,0x9966,0x9966,0x9669,0x9999,0x9666,0x6699,0x9966,
0x6669,0x9996,0x9666,0x9999,0x6666,0x9666,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0999,
0x9999,0x0009,0x9999,0x6660,0x0099,0x6666,0x6609,0x6666,
0x6609,0x6666,0x6609,0x6666,0x6660,0x6611,0x1666,0x6666,
0x9990,0x9999,0x9906,0x9999,0x9066,0x9999,0x9066,0x9990,
0x0666,0x9906,0x6661,0x9066,0x6616,0x9066,0x6666,0x9066,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x0999,0x9999,0x0999,0x9999,0x9999,
0x9999,0x6000,0x0999,0x6666,0x6099,0x6666,0x6699,0x6666,
0x6600,0x6666,0x6666,0x6666,0x6666,0x6666,0x6660,0x6666,
0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,
0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,
0x6666,0x0666,0x6666,0x0666,0x6666,0x6666,0x6666,0x6666,
0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,0x6666,
0x9099,0x9999,0x0609,0x9999,0x0660,0x9999,0x0666,0x9909,
0x6666,0x9060,0x6666,0x9066,0x6666,0x9066,0x6666,0x9906,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x6609,0x6661,0x6099,0x6616,0x0999,0x1166,0x0999,0x6666,
0x9999,0x6000,0x9999,0x0999,0x9999,0x9999,0x9999,0x9999,
0x6666,0x6666,0x6661,0x1666,0x6611,0x1116,0x1116,0x6111,
0x1666,0x6661,0x6666,0x6066,0x6600,0x0906,0x0099,0x9990,
0x6661,0x6666,0x6666,0x6666,0x6661,0x6616,0x1111,0x6661,
0x1116,0x6666,0x6666,0x0666,0x6660,0x9006,0x0009,0x9990,
0x6666,0x9990,0x6666,0x9906,0x6666,0x9066,0x6666,0x9966,
0x6666,0x9900,0x0066,0x9999,0x9900,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,
0x8888,0x8888,0x7777,0x7777,0x7707,0x7777,0x7777,0x8888,
0x8777,0x0008,0x8777,0x7708,0x8777,0x7708,0x7777,0x8700,
0x8888,0x9988,0x7777,0x9077,0x7777,0x9070,0x7778,0x9077,
0x7788,0x9077,0x7088,0x9077,0x7088,0x9077,0x7088,0x9077,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x0999,
0x7777,0x8877,0x7777,0x8877,0x7777,0x0777,0x7777,0x8877,
0x7777,0x8877,0x7707,0x0777,0x7777,0x7777,0x0000,0x0000,
0x7000,0x9077,0x7770,0x9077,0x7770,0x9077,0x7777,0x9077,
0x7770,0x9077,0x7770,0x9070,0x7777,0x9077,0x0000,0x9000,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,
0x8888,0x8888,0x7777,0x7777,0x7707,0x7777,0x7777,0x8888,
0x8777,0x0008,0x8777,0x7708,0x8777,0x7708,0x7777,0x8700,
0x8888,0x9988,0x7777,0x9077,0x7777,0x9070,0x7778,0x9077,
0x7788,0x9077,0x7088,0x9077,0x7088,0x9077,0x7088,0x9077,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x3999,0x9999,0x8999,0x9999,0x8999,0x9999,0x0999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x0999,
0x3333,0x3333,0x8888,0x8088,0x8888,0x8088,0x0000,0x0000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x0000,
0x3333,0x9333,0x8888,0x8088,0x8888,0x8088,0x0000,0x8000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x8000,
0x8888,0x8888,0x7777,0x7777,0x7707,0x7777,0x7777,0x8888,
0x8777,0x0008,0x8777,0x7708,0x8777,0x7708,0x7777,0x8700,
0x8888,0x3988,0x7777,0x8077,0x7777,0x8070,0x7778,0x0077,
0x7788,0x8077,0x7088,0x8077,0x7088,0x8077,0x7088,0x0077,
0x3333,0x3333,0x8888,0x8088,0x8888,0x8088,0x0000,0x0000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x0000,
0x3333,0x9333,0x8888,0x8088,0x8888,0x8088,0x0000,0x8000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x8000,
0x8888,0x8888,0x7777,0x7777,0x7707,0x7777,0x7777,0x8888,
0x8777,0x0008,0x8777,0x7708,0x8777,0x7708,0x7777,0x8700,
0x8888,0x3988,0x7777,0x8077,0x7777,0x8070,0x7778,0x0077,
0x7788,0x8077,0x7088,0x8077,0x7088,0x8077,0x7088,0x0077,
0x3333,0x3333,0x8888,0x8088,0x8888,0x8088,0x0000,0x0000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x0000,
0x3333,0x9333,0x8888,0x9088,0x8888,0x9088,0x0000,0x9000,
0x8088,0x9888,0x8088,0x9888,0x8088,0x9888,0x0000,0x9000,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x0999,
0x7777,0x8877,0x7777,0x8877,0x7777,0x0777,0x7777,0x8877,
0x7777,0x8877,0x7707,0x0777,0x7777,0x7777,0x0000,0x0000,
0x7000,0x9077,0x7770,0x9077,0x7770,0x9077,0x7777,0x9077,
0x7770,0x9077,0x7770,0x9070,0x7777,0x9077,0x0000,0x9000,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x0999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x0999,
0x8888,0x8088,0x8888,0x8088,0x8888,0x8088,0x0000,0x0000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x0000,
0x8888,0x8088,0x8888,0x8088,0x8888,0x8088,0x0000,0x8000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x0000,
0x7777,0x8877,0x7777,0x8877,0x7777,0x0777,0x7777,0x8877,
0x7777,0x8877,0x7707,0x0777,0x7777,0x7777,0x0000,0x0000,
0x7000,0x8077,0x7770,0x8077,0x7770,0x8077,0x7777,0x0077,
0x7770,0x8077,0x7770,0x8070,0x7777,0x8077,0x0000,0x0000,
0x8888,0x8088,0x8888,0x8088,0x8888,0x8088,0x0000,0x0000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x0000,
0x8888,0x8088,0x8888,0x8088,0x8888,0x8088,0x0000,0x8000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x0000,
0x7777,0x8877,0x7777,0x8877,0x7777,0x0777,0x7777,0x8877,
0x7777,0x8877,0x7707,0x0777,0x7777,0x7777,0x0000,0x0000,
0x7000,0x8077,0x7770,0x8077,0x7770,0x8077,0x7777,0x0077,
0x7770,0x8077,0x7770,0x8070,0x7777,0x8077,0x0000,0x0000,
0x8888,0x8088,0x8888,0x8088,0x8888,0x8088,0x0000,0x0000,
0x8088,0x8888,0x8088,0x8888,0x8088,0x8888,0x0000,0x0000,
0x8888,0x9088,0x8888,0x9088,0x8888,0x9088,0x0000,0x9000,
0x8088,0x9888,0x8088,0x9888,0x8088,0x9888,0x0000,0x9000,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0xAA99,0x9999,0xAAA9,
0x9999,0x4449,0x9999,0x7474,0x9999,0x4474,0x9999,0x7744,
0x9999,0x9999,0x9999,0x7779,0x9AAA,0x7779,0xAAAA,0x77AA,
0x7477,0x4449,0x7477,0x4447,0x4777,0x4777,0x4477,0x9444,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x7799,0x4499,0xA444,0x4449,0x4444,0x4477,0x4444,
0x9777,0xA4AA,0x4979,0xAAAA,0x4499,0xAAA4,0x4449,0xAAAA,
0x7777,0x9947,0xA444,0x9994,0x444A,0x499A,0xAAAA,0x499A,
0xAA7A,0x44A7,0xAAAA,0x44AA,0xAAAA,0x44AA,0x9AAA,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9949,0xAAAA,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x0000,0x0009,0x5555,0x5550,0x5555,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9900,0x9999,0x0055,0x9990,0x5555,0x9005,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0999,
0x9999,0x0009,0x9999,0x2220,0x0099,0x2222,0x2209,0x2222,
0x2209,0x2222,0x2209,0x2222,0x2220,0x2255,0x5222,0x2222,
0x9990,0x9999,0x9902,0x9999,0x9022,0x9999,0x9022,0x9990,
0x0222,0x9902,0x2225,0x9022,0x2252,0x9022,0x2222,0x0022,
0x9999,0x0009,0x9999,0x2220,0x0099,0x2222,0x2209,0x2222,
0x2209,0x2222,0x2209,0x2222,0x2220,0x2255,0x5222,0x2222,
0x9990,0x9999,0x9902,0x9999,0x9022,0x9999,0x9022,0x9990,
0x0222,0x9902,0x2225,0x9022,0x2252,0x9022,0x2222,0x0022,
0x9999,0x0009,0x9999,0x2220,0x0099,0x2222,0x2209,0x2222,
0x2209,0x2222,0x2209,0x2222,0x2220,0x2255,0x5222,0x2222,
0x9990,0x9999,0x9902,0x9999,0x9022,0x9999,0x9022,0x9990,
0x0222,0x9902,0x2225,0x9022,0x2252,0x9022,0x2222,0x9022,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0999,
0x9999,0x5099,0x9999,0x5509,0x9999,0x5550,0x0999,0x5555,
0x5099,0x5555,0x5509,0x5555,0x5550,0x5555,0x5555,0x5555,
0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x5555,0x0550,0x0555,0x5500,0x0555,0x5500,0x0555,0x5500,
0x0500,0x5500,0x5500,0x5550,0x5500,0x5555,0x5500,0x5555,
0x9999,0x9999,0x9990,0x9999,0x9905,0x9999,0x9055,0x9999,
0x0555,0x9999,0x5555,0x9990,0x5555,0x9905,0x5555,0x9055,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x8889,0x9999,0x8888,0x8999,0x8888,
0x8899,0x8888,0x0089,0x8888,0x3888,0x8880,0x3888,0x0000,
0x9999,0x9999,0x9998,0x9999,0x9988,0x9999,0x9888,0x9999,
0x8888,0x9999,0x0088,0x9998,0x8308,0x9988,0x8300,0x9988,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0999,
0x9999,0x0009,0x9999,0x2220,0x0099,0x2222,0x2209,0x2222,
0x2209,0x2222,0x2209,0x2222,0x2220,0x2255,0x5222,0x2222,
0x9990,0x9999,0x9902,0x9999,0x9022,0x9999,0x9022,0x9990,
0x0222,0x9902,0x2225,0x9022,0x2252,0x9022,0x2222,0x9022,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x0999,0x9999,0x0999,0x9999,0x9999,
0x9999,0x2000,0x0999,0x2222,0x2099,0x2222,0x2299,0x2222,
0x2200,0x2222,0x2222,0x2222,0x2222,0x2222,0x2220,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x0222,0x2222,0x0222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x9099,0x9999,0x0209,0x9999,0x0220,0x9999,0x0222,0x9909,
0x2222,0x9020,0x2222,0x9022,0x2222,0x9022,0x2222,0x9902,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0999,
0x9999,0x5099,0x9999,0x5509,0x9999,0x5550,0x0999,0x5555,
0x5099,0x5555,0x5509,0x5555,0x5550,0x5555,0x5555,0x5555,
0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x5555,0x0555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
0x9999,0x9999,0x9990,0x9999,0x9905,0x9999,0x9055,0x9999,
0x0555,0x9999,0x5555,0x9990,0x5555,0x9905,0x5555,0x9055,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x8999,0x9999,0x8999,0x9999,0x8999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x3888,0x8830,0x3888,0x8833,0x8888,0x8888,0x8888,0x3333,
0x3999,0x3333,0x3009,0x3333,0x0000,0x3330,0x0000,0x3300,
0x8303,0x9888,0x8333,0x9888,0x8888,0x9888,0x8833,0x9988,
0x9333,0x9999,0x9333,0x9999,0x0033,0x9999,0x0003,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x0999,0x9999,0x0999,0x9999,0x9999,
0x9999,0x2000,0x0999,0x2222,0x2099,0x2222,0x2299,0x2222,
0x2200,0x2222,0x2222,0x2222,0x2222,0x2222,0x2220,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x0222,0x2222,0x0222,0x2222,0x2222,0x2222,0x2222,
0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
0x9099,0x9999,0x0209,0x9999,0x0220,0x9999,0x0222,0x9909,
0x2222,0x9020,0x2222,0x9022,0x2222,0x9022,0x2222,0x9902,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x0000,0x8800,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3000,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x3380,0x8833,0x8830,0x3088,0x8830,0x3088,0x8830,0x3088,
0x8030,0x3088,0x0080,0x3800,0x3330,0x3033,0x8830,0x3088,
0x3333,0x3333,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,0x8888,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x8830,0x3088,0x8830,0x3088,0x8883,0x0088,0x8883,0x3088,
0x8888,0x3088,0x8888,0x3088,0x8888,0x3008,0x0000,0x8800,
0x8888,0x8888,0x8888,0x8888,0x8880,0x0888,0x8003,0x0888,
0x0338,0x3000,0x3888,0x3033,0x8888,0x3088,0x0000,0x3800,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,
};
const unsigned short marioMapMap[1024] __attribute__((aligned(4)))=
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
0x0008,0x0009,0x000A,0x000B,0x000C,0x000D,0x000E,0x000F,
0x0010,0x0011,0x0012,0x0013,0x0014,0x0015,0x0016,0x0017,
0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F,
0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027,
0x0028,0x0029,0x002A,0x002B,0x002C,0x002D,0x002E,0x002F,
0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,
0x0038,0x0039,0x003A,0x003B,0x003C,0x003D,0x003E,0x003F,
0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,
0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,
0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057,
0x0058,0x0059,0x005A,0x005B,0x005C,0x005D,0x005E,0x005F,
0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,
0x0068,0x0069,0x006A,0x006B,0x006C,0x006D,0x006E,0x006F,
0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,
0x0078,0x0079,0x007A,0x007B,0x007C,0x007D,0x007E,0x007F,
0x0080,0x0081,0x0082,0x0083,0x0084,0x0085,0x0086,0x0087,
0x0088,0x0089,0x008A,0x008B,0x008C,0x008D,0x008E,0x008F,
0x0090,0x0091,0x0092,0x0093,0x0094,0x0095,0x0096,0x0097,
0x0098,0x0099,0x009A,0x009B,0x009C,0x009D,0x009E,0x009F,
0x00A0,0x00A1,0x00A2,0x00A3,0x00A4,0x00A5,0x00A6,0x00A7,
0x00A8,0x00A9,0x00AA,0x00AB,0x00AC,0x00AD,0x00AE,0x00AF,
0x00B0,0x00B1,0x00B2,0x00B3,0x00B4,0x00B5,0x00B6,0x00B7,
0x00B8,0x00B9,0x00BA,0x00BB,0x00BC,0x00BD,0x00BE,0x00BF,
0x00C0,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x00C7,
0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
0x00D0,0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,
0x00D8,0x00D9,0x00DA,0x00DB,0x00DC,0x00DD,0x00DE,0x00DF,
0x00E0,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x00E7,
0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
0x00F0,0x00F1,0x00F2,0x00F3,0x00F4,0x00F5,0x00F6,0x00F7,
0x00F8,0x00F9,0x00FA,0x00FB,0x00FC,0x00FD,0x00FE,0x00FF,
0x0100,0x0101,0x0102,0x0103,0x0104,0x0105,0x0106,0x0107,
0x0108,0x0109,0x010A,0x010B,0x010C,0x010D,0x010E,0x010F,
0x0110,0x0111,0x0112,0x0113,0x0114,0x0115,0x0116,0x0117,
0x0118,0x0119,0x011A,0x011B,0x011C,0x011D,0x011E,0x011F,
0x0120,0x0121,0x0122,0x0123,0x0124,0x0125,0x0126,0x0127,
0x0128,0x0129,0x012A,0x012B,0x012C,0x012D,0x012E,0x012F,
0x0130,0x0131,0x0132,0x0133,0x0134,0x0135,0x0136,0x0137,
0x0138,0x0139,0x013A,0x013B,0x013C,0x013D,0x013E,0x013F,
0x0140,0x0141,0x0142,0x0143,0x0144,0x0145,0x0146,0x0147,
0x0148,0x0149,0x014A,0x014B,0x014C,0x014D,0x014E,0x014F,
0x0150,0x0151,0x0152,0x0153,0x0154,0x0155,0x0156,0x0157,
0x0158,0x0159,0x015A,0x015B,0x015C,0x015D,0x015E,0x015F,
0x0160,0x0161,0x0162,0x0163,0x0164,0x0165,0x0166,0x0167,
0x0168,0x0169,0x016A,0x016B,0x016C,0x016D,0x016E,0x016F,
0x0170,0x0171,0x0172,0x0173,0x0174,0x0175,0x0176,0x0177,
0x0178,0x0179,0x017A,0x017B,0x017C,0x017D,0x017E,0x017F,
0x0180,0x0181,0x0182,0x0183,0x0184,0x0185,0x0186,0x0187,
0x0188,0x0189,0x018A,0x018B,0x018C,0x018D,0x018E,0x018F,
0x0190,0x0191,0x0192,0x0193,0x0194,0x0195,0x0196,0x0197,
0x0198,0x0199,0x019A,0x019B,0x019C,0x019D,0x019E,0x019F,
0x01A0,0x01A1,0x01A2,0x01A3,0x01A4,0x01A5,0x01A6,0x01A7,
0x01A8,0x01A9,0x01AA,0x01AB,0x01AC,0x01AD,0x01AE,0x01AF,
0x01B0,0x01B1,0x01B2,0x01B3,0x01B4,0x01B5,0x01B6,0x01B7,
0x01B8,0x01B9,0x01BA,0x01BB,0x01BC,0x01BD,0x01BE,0x01BF,
0x01C0,0x01C1,0x01C2,0x01C3,0x01C4,0x01C5,0x01C6,0x01C7,
0x01C8,0x01C9,0x01CA,0x01CB,0x01CC,0x01CD,0x01CE,0x01CF,
0x01D0,0x01D1,0x01D2,0x01D3,0x01D4,0x01D5,0x01D6,0x01D7,
0x01D8,0x01D9,0x01DA,0x01DB,0x01DC,0x01DD,0x01DE,0x01DF,
0x01E0,0x01E1,0x01E2,0x01E3,0x01E4,0x01E5,0x01E6,0x01E7,
0x01E8,0x01E9,0x01EA,0x01EB,0x01EC,0x01ED,0x01EE,0x01EF,
0x01F0,0x01F1,0x01F2,0x01F3,0x01F4,0x01F5,0x01F6,0x01F7,
0x01F8,0x01F9,0x01FA,0x01FB,0x01FC,0x01FD,0x01FE,0x01FF,
0x0200,0x0201,0x0202,0x0203,0x0204,0x0205,0x0206,0x0207,
0x0208,0x0209,0x020A,0x020B,0x020C,0x020D,0x020E,0x020F,
0x0210,0x0211,0x0212,0x0213,0x0214,0x0215,0x0216,0x0217,
0x0218,0x0219,0x021A,0x021B,0x021C,0x021D,0x021E,0x021F,
0x0220,0x0221,0x0222,0x0223,0x0224,0x0225,0x0226,0x0227,
0x0228,0x0229,0x022A,0x022B,0x022C,0x022D,0x022E,0x022F,
0x0230,0x0231,0x0232,0x0233,0x0234,0x0235,0x0236,0x0237,
0x0238,0x0239,0x023A,0x023B,0x023C,0x023D,0x023E,0x023F,
0x0240,0x0241,0x0242,0x0243,0x0244,0x0245,0x0246,0x0247,
0x0248,0x0249,0x024A,0x024B,0x024C,0x024D,0x024E,0x024F,
0x0250,0x0251,0x0252,0x0253,0x0254,0x0255,0x0256,0x0257,
0x0258,0x0259,0x025A,0x025B,0x025C,0x025D,0x025E,0x025F,
0x0260,0x0261,0x0262,0x0263,0x0264,0x0265,0x0266,0x0267,
0x0268,0x0269,0x026A,0x026B,0x026C,0x026D,0x026E,0x026F,
0x0270,0x0271,0x0272,0x0273,0x0274,0x0275,0x0276,0x0277,
0x0278,0x0279,0x027A,0x027B,0x027C,0x027D,0x027E,0x027F,
0x0280,0x0281,0x0282,0x0283,0x0284,0x0285,0x0286,0x0287,
0x0288,0x0289,0x028A,0x028B,0x028C,0x028D,0x028E,0x028F,
0x0290,0x0291,0x0292,0x0293,0x0294,0x0295,0x0296,0x0297,
0x0298,0x0299,0x029A,0x029B,0x029C,0x029D,0x029E,0x029F,
0x02A0,0x02A1,0x02A2,0x02A3,0x02A4,0x02A5,0x02A6,0x02A7,
0x02A8,0x02A9,0x02AA,0x02AB,0x02AC,0x02AD,0x02AE,0x02AF,
0x02B0,0x02B1,0x02B2,0x02B3,0x02B4,0x02B5,0x02B6,0x02B7,
0x02B8,0x02B9,0x02BA,0x02BB,0x02BC,0x02BD,0x02BE,0x02BF,
0x02C0,0x02C1,0x02C2,0x02C3,0x02C4,0x02C5,0x02C6,0x02C7,
0x02C8,0x02C9,0x02CA,0x02CB,0x02CC,0x02CD,0x02CE,0x02CF,
0x02D0,0x02D1,0x02D2,0x02D3,0x02D4,0x02D5,0x02D6,0x02D7,
0x02D8,0x02D9,0x02DA,0x02DB,0x02DC,0x02DD,0x02DE,0x02DF,
0x02E0,0x02E1,0x02E2,0x02E3,0x02E4,0x02E5,0x02E6,0x02E7,
0x02E8,0x02E9,0x02EA,0x02EB,0x02EC,0x02ED,0x02EE,0x02EF,
0x02F0,0x02F1,0x02F2,0x02F3,0x02F4,0x02F5,0x02F6,0x02F7,
0x02F8,0x02F9,0x02FA,0x02FB,0x02FC,0x02FD,0x02FE,0x02FF,
0x0300,0x0301,0x0302,0x0303,0x0304,0x0305,0x0306,0x0307,
0x0308,0x0309,0x030A,0x030B,0x030C,0x030D,0x030E,0x030F,
0x0310,0x0311,0x0312,0x0313,0x0314,0x0315,0x0316,0x0317,
0x0318,0x0319,0x031A,0x031B,0x031C,0x031D,0x031E,0x031F,
0x0320,0x0321,0x0322,0x0323,0x0324,0x0325,0x0326,0x0327,
0x0328,0x0329,0x032A,0x032B,0x032C,0x032D,0x032E,0x032F,
0x0330,0x0331,0x0332,0x0333,0x0334,0x0335,0x0336,0x0337,
0x0338,0x0339,0x033A,0x033B,0x033C,0x033D,0x033E,0x033F,
0x0340,0x0341,0x0342,0x0343,0x0344,0x0345,0x0346,0x0347,
0x0348,0x0349,0x034A,0x034B,0x034C,0x034D,0x034E,0x034F,
0x0350,0x0351,0x0352,0x0353,0x0354,0x0355,0x0356,0x0357,
0x0358,0x0359,0x035A,0x035B,0x035C,0x035D,0x035E,0x035F,
0x0360,0x0361,0x0362,0x0363,0x0364,0x0365,0x0366,0x0367,
0x0368,0x0369,0x036A,0x036B,0x036C,0x036D,0x036E,0x036F,
0x0370,0x0371,0x0372,0x0373,0x0374,0x0375,0x0376,0x0377,
0x0378,0x0379,0x037A,0x037B,0x037C,0x037D,0x037E,0x037F,
0x0380,0x0381,0x0382,0x0383,0x0384,0x0385,0x0386,0x0387,
0x0388,0x0389,0x038A,0x038B,0x038C,0x038D,0x038E,0x038F,
0x0390,0x0391,0x0392,0x0393,0x0394,0x0395,0x0396,0x0397,
0x0398,0x0399,0x039A,0x039B,0x039C,0x039D,0x039E,0x039F,
0x03A0,0x03A1,0x03A2,0x03A3,0x03A4,0x03A5,0x03A6,0x03A7,
0x03A8,0x03A9,0x03AA,0x03AB,0x03AC,0x03AD,0x03AE,0x03AF,
0x03B0,0x03B1,0x03B2,0x03B3,0x03B4,0x03B5,0x03B6,0x03B7,
0x03B8,0x03B9,0x03BA,0x03BB,0x03BC,0x03BD,0x03BE,0x03BF,
0x03C0,0x03C1,0x03C2,0x03C3,0x03C4,0x03C5,0x03C6,0x03C7,
0x03C8,0x03C9,0x03CA,0x03CB,0x03CC,0x03CD,0x03CE,0x03CF,
0x03D0,0x03D1,0x03D2,0x03D3,0x03D4,0x03D5,0x03D6,0x03D7,
0x03D8,0x03D9,0x03DA,0x03DB,0x03DC,0x03DD,0x03DE,0x03DF,
0x03E0,0x03E1,0x03E2,0x03E3,0x03E4,0x03E5,0x03E6,0x03E7,
0x03E8,0x03E9,0x03EA,0x03EB,0x03EC,0x03ED,0x03EE,0x03EF,
0x03F0,0x03F1,0x03F2,0x03F3,0x03F4,0x03F5,0x03F6,0x03F7,
0x03F8,0x03F9,0x03FA,0x03FB,0x03FC,0x03FD,0x03FE,0x03FF,
};
const unsigned short marioMapPal[16] __attribute__((aligned(4)))=
{
0x0000,0x7EE7,0x0B50,0x5AFF,0x01D1,0x02A0,0x7FFF,0x1E7F,
0x0539,0x7E4B,0x00BB,0x0000,0x0000,0x0000,0x0000,0x0000,
};
//}}BLOCK(marioMap)
|
the_stack_data/3864.c | /* block copy from from to to, count bytes */
static char *sccsid = "@(#)bcopy.c 7.1 7/8/81";
bcopy(from, to, count)
#ifdef vax
char *from, *to;
int count;
{
asm(" movc3 12(ap),*4(ap),*8(ap)");
}
#else
register char *from, *to;
register int count;
{
while ((count--) > 0) /* mjm */
*to++ = *from++;
}
#endif
|
the_stack_data/192330438.c | #include <stdio.h>
const char* names[4] = {"_ZN6SkPath4IterC1ERKS_b",
"_ZN6SkPath4Iter4nextEP7SkPoint",
"_ZN6SkScan8HairLineERK7SkPointS2_PK8SkRegionP9SkBlitter",
NULL};
extern char *__cxa_demangle (const char *mangled, char *buf, size_t *len,
int *status);
char* demangle_symbol_name(const char*name) {
return name ? __cxa_demangle(name, 0, 0, 0) : "";
}
int main() {
int i;
for (i=0; i<4; ++i) {
printf ("%s -> %s\n", names[i], demangle_symbol_name(names[i]));
}
return 0;
}
|
the_stack_data/33321.c | /*
Write a program to display the series:
10, 9, 8, 7, 6, up to 1 using do while loop.
*/
#include <stdio.h>
int main(void) {
int n = 10;
do {
printf("%d \t", n);
n--;
} while(n >= 1);
return 0;
} |
the_stack_data/14467.c | #include <stdio.h>
void padding_upg(int channel, int size, int input[size][size][channel], int pad, int out[size+(pad*2)][size+(pad*2)][channel]){
int x, y, a;
int pad_yeni = pad;
int count = 0;
if (pad == 0){
for (a=0 ; a<channel; a++){
for (x=0 ; x<size; x++){
for (y=0 ; y<size; y++){
out[x][y][a] = input[x][y][a];
}
}
}
}
else {
for(a = 0; a<channel; a++){
while(pad_yeni > 0){
for(x=count ; x < (size+(pad_yeni*2)+count); x++){
out[count][x][a] = 0;
out[x][count][a] = 0;
out[size+(pad_yeni*2)-1+count][x][a] = 0;
out[x][size+(pad_yeni*2)-1+count][a] = 0;
}
pad_yeni = pad_yeni -1 ;
count++;
}
for(x=pad ; x<size+(pad*2)-pad ; x++){
for(y=pad ; y<size+(pad*2)-pad ; y++){
out[x][y][a] = input[x-pad][y-pad][a];
}
}
for (x=0 ; x<size+(pad*2); x++){
for (y=0 ; y<size+(pad*2); y++){
printf(" p[%d][%d][%d] = %d ",x+1,y+1,a+1,out[x][y][a]);
}
printf("\n");
}
}
}
}
// Bu kodda convolution layer fonksiyonuna bias deðeri ve 3 kanallý image için convolution yapýlacaktýr.
// 3 kanallý convoltion için önce tek tek R-G-B kanallarý için farklý kernel filtreleri ile input arasýnda convolution yapýlýr daha sonra 3 tane 2 boyutlu matrix elde edilir.
// Bu 3 matrix birbiriyle toplanýr ve tek bir çýktý bulunur. En sonda ise bu tek çýktýya tek bir bias deðeri toplanýr ve output bulunur. Bias deðeri tek bir sayý deðeridir,
// vektör veya matrix deðildir.
// convolution fonksiyonuna input olarak kanal sayýsý girilmelidir (RGB için veya önceki convdan çýkan kanal sayýsý), filtreye_size a da yeni bir parametre alýnmalýdýr (filtre sayýsý),
// output olarakda 3. boyut eklenmeli (filtre sayýsý kadar).
// Bu iþlemleri yapmak için yeni fonksiyon açýlabilir conv_upg olarak.
void conv_upg (int input_channel, int size_input, int input[size_input][size_input][input_channel], int filtre_channel, int size_filtre, int filtre[size_filtre][size_filtre][filtre_channel * input_channel], int stride, int pad, int output[(size_input + (pad*2) - size_filtre) / stride + 1][(size_input + (pad*2)- size_filtre) / stride +1][filtre_channel]){
int a, b;
int y,x,i,j;
int count_filter = 0;
int output_temp = 0;
int padded_size = size_input + (pad*2);
int padded_input[padded_size][padded_size][input_channel];
padding_upg(input_channel, size_input, input, pad, padded_input);
for(b = 0; b < filtre_channel; b++){
int temp = 0;
for (y=0; y < padded_size - size_filtre +1 ; y++){
for (x=0; x< padded_size - size_filtre +1 ;x++){
for(a = 0; a < input_channel; a++){
for (i=0; i<size_filtre; i++){
for (j=0; j<size_filtre; j++){
temp += filtre[i][j][count_filter] * padded_input[i+(y * stride)][j+(x * stride)][a];
}
}
//printf(" outputa atanan deger : %d \n", output[y][x][a]);
//output_temp[y][x] = temp;
}
output[y][x][b] = temp;
printf("outputa atanan deger output[%d][%d][%d] = %d \n",y,x,b, output[y][x][b]);
count_filter++;
temp = 0;
}
//output_temp += temp;
}
// output_temp = 0;
}
}
int main(){
int size_im = 3;
int size_fil = 2;
int pad = 0;
int stride = 1;
int inp_channel = 3;
int fil_channel =4 ;
printf("5\n");
int l, m, n;
int out[(size_im + (pad*2) - size_fil) / stride + 1][(size_im + (pad*2) - size_fil) / stride + 1];
int padout[7][7];
int size = 5;
int image[5][5] = {{2, 3, 5, 7, 11}, {12, 8, 4, 6, 1}, {9, 7, 5, 0, 13}, {1, 3, 2, 6, 5}, {4, 6, 8, 8, 1}};
int image_3d[3][3][3] = {
{{2, 3, 5}, {12, 8, 4}, {9, 7, 5}},
{{1, 3, 2}, {6, 5, 8}, {4, 6, 8}},
{{7, 5, 1}, {8, 9, 0}, {4, 3, 2}}
};
int kernel_4d[2][2][4] = {{{1, 4}, {2, 6}},{{5, 9}, {8,2}},{{4, 3}, {3, 1}},{{9, 8}, {0, 3}}};
int output_3d[(size_im + (pad*2) - size_fil) / stride + 1][(size_im + (pad*2) - size_fil) / stride + 1][4];
conv_upg(inp_channel, size_im, image_3d, fil_channel, size_fil, kernel_4d, stride, pad, output_3d);
int kernel[3][3] = {{1, 3, 5}, {2, 7, 6}, {9, 3, 1}};
//convolution2d(size_im, image, size_fil, kernel, stride, pad, out);
//for (l=0; l<(size_im + (pad*2) - size_fil) / stride + 1; l++){
// for (m=0; m<(size_im + (pad*2) - size_fil) / stride + 1; m++){
// printf(" padout[%d][%d] = %d ",l,m,out[l][m]);
// }
// printf("\n");
// }
for(n = 0; n < 4 ; n++){
printf("%d katman \n",n);
for(l = 0; l <(size_im + (pad*2) - size_fil) / stride +1; l++){
for(m = 0; m <(size_im + (pad*2) - size_fil) / stride +1; m++){
printf("conv_out[%d][%d][%d] = %d ", l,m,n,output_3d[l][m][n]);
}
printf("\n");
}
}
}
|
the_stack_data/37638134.c |
//Interficie 1,2,3,4,6
int TiGetTimer (void);
/*********************************************************************
//Precondicions: Hi ha algun timer lliure. Maxim TI_NUMTIMERS
//Postcondicions: Retorna un handle per usar les funcions TiGetTics i
//TiResetTics. Retorna -1 si no hi ha cap timer disponible.
\\*********************************************************************/
void TiResetTics (unsigned char Handle);
/*********************************************************************
//Precondicions: Handle ha estat retornat per Ti_OpenTimer.
//Postcondicions: Engega la temporitzaci¢ associada a 'Handle'.
// i agafa la referencia temporal del sistema
\\*********************************************************************/
unsigned int TiGetTics (unsigned char Handle);
/*********************************************************************
//Precondicions: Handle ha estat retornat per TiGetTimer.
// La distància temmporal entre GetTics i ResetTics ha de ser menor
// de TI_MAXTICS ms (actualment, 30 segons)
//Postcondicions: Retorna els milisegons transcorreguts des de la crida
// a l'StartTimer del 'Handle'.
\\*********************************************************************/
//Interficie 0
char changeAudioStatus();
//Post Canvia l'estat d'audio
void setAudioPeriode(char nouPeriode);
// Pre: nouPeriode >= 1
//Interficie 9
int getLength();
//Pre: -
//Post: Retorna la mida del missatge tenim desat
char* getTramesTotals();
//Pre: -
//Post: Retorna el numero de trames totals
char* getTramesPropies();
//Pre: -
//Post: Retorna el numero de trames propies
unsigned char* getMessage(unsigned char offset);
//Pre: 0<= offset <= MAX_MESSAGE
//Post: Retorna el missatge que hi ha actualment amb el offset especificat
//Interficie 5
void turnOffAudio();
//Post: Apaga el Altaveu
void seguentFrequencia();
//Post: Canvia el periode del altaveu amb una desviació maxima del
//original de MAX_PERIODES
//Interficie 10
void LcClear(void);
// Post: Esborra el display i posa el cursor a la posiciÛ zero en
// l'estat en el que estava.
// Post: La propera ordre pot trigar fins a 1.6ms
void LcGotoXY(char Columna, char Fila);
// Pre : Columna entre 0 i 39, Fila entre 0 i 3
// Post: Posiciona el cursor en aquestes coordenades
// Post: La propera ordre pot trigar fins a 40us
void LcPutChar(char c);
// Post: Pinta C en l'actual posciciÛ del cursor i incrementa
// la seva posiciÛ. Si la columna arriba a 39, salta a 0 tot
// incrementant la fila si el LCD Ès de dues files.
// Si es de 4 files, incrementa de fila en arribar a la columna 20
// AixÌ mateix, la fila 4 passa a la zero.
// En els LCDs d'una fila, quan la columna arriba a 39, torna
// a zero. No s'incrementa mai la fila
//Interficie 11
char getIDPos(unsigned char pos);
//Pre: 0 <= pos < MAX_ID_STRING
//Post: Retorna el digit del ID que es demani
//Interficie 8
int AdGetMostra(void);
//Post: Retorna la mostra convertida en 10 bits
//Interficie 7
int SiCharAvail(void);
// Pre: retorna el nombre de car?cters rebuts que no s'han recollit
// amb la funciÛ GetChar encara
char SiGetChar(void);
// Pre: SiCharAvail() Ès major que zero
// Post: Treu i retorna el primer car?cter de la cua de recepciÛ.
void SiSendChar(char c);
// Post: espera que el car?cter anterior s'hagi enviat i envia aquest
void SiPutsCooperatiu(char *s);
//Pre: La referència de char *s és o bé un const char o bé puc garantir que
// no es sobreescriurà fins que no l'hagi enviat...
//Post: Encua *s a la cua de cadenes per enviar...
|
the_stack_data/125454.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strncpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fflorens <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/20 14:25:36 by fflorens #+# #+# */
/* Updated: 2013/11/25 23:08:34 by fflorens ### ########.fr */
/* */
/* ************************************************************************** */
#include <string.h>
char *ft_strncpy(char *s1, const char *s2, size_t n)
{
size_t i;
i = 0;
while (s2[i] != '\0' && i < n)
{
s1[i] = s2[i];
i++;
}
while (i < n)
{
s1[i] = '\0';
i++;
}
return (s1);
}
|
the_stack_data/162643454.c | // Copyright (c) 2016, Linaro Limited.
#ifdef BUILD_MODULE_PERFORMANCE
#ifdef ZJS_LINUX_BUILD
// C includes
#include <sys/time.h>
#endif
// ZJS includes
#include "zjs_util.h"
static ZJS_DECL_FUNC(zjs_performance_now)
{
if (argc != 0)
return zjs_error("no args expected");
#ifdef ZJS_LINUX_BUILD
struct timeval tv;
gettimeofday(&tv, NULL);
uint64_t useconds = (uint64_t)tv.tv_sec * 1000000 + tv.tv_usec;
#else
uint64_t useconds = (uint64_t)k_uptime_get() * 1000;
#endif
return jerry_create_number((double)useconds / 1000);
}
static jerry_value_t zjs_performance_init()
{
// create global performance object
jerry_value_t performance_obj = zjs_create_object();
zjs_obj_add_function(performance_obj, "now", zjs_performance_now);
return performance_obj;
}
JERRYX_NATIVE_MODULE(performance, zjs_performance_init)
#endif // BUILD_MODULE_PERFORMANCE
|
the_stack_data/102312.c | /* $XFree86: xc/lib/X11/SetTxtProp.c,v 1.3 2006/01/09 14:58:34 dawes Exp $ */
/***********************************************************
Copyright 1988 by Wyse Technology, Inc., San Jose, Ca.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Wyse not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
/*
Copyright 1988, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall
not be used in advertising or otherwise to promote the sale, use or
other dealings in this Software without prior written authorization
from The Open Group.
*/
#include <X11/Xlibint.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <stdio.h>
void XSetTextProperty (dpy, w, tp, property)
Display *dpy;
Window w;
Atom property;
XTextProperty *tp;
{
XChangeProperty (dpy, w, property, tp->encoding, tp->format,
PropModeReplace, tp->value, tp->nitems);
}
void XSetWMName (dpy, w, tp)
Display *dpy;
Window w;
XTextProperty *tp;
{
XSetTextProperty (dpy, w, tp, XA_WM_NAME);
}
void XSetWMIconName (dpy, w, tp)
Display *dpy;
Window w;
XTextProperty *tp;
{
XSetTextProperty (dpy, w, tp, XA_WM_ICON_NAME);
}
void XSetWMClientMachine (dpy, w, tp)
Display *dpy;
Window w;
XTextProperty *tp;
{
XSetTextProperty (dpy, w, tp, XA_WM_CLIENT_MACHINE);
}
|
the_stack_data/73574574.c | #include <stdio.h>
//funcao que realiza a conta desejada
double conta(double v[], int n);
int main(void) {
int n,i;
double v[100];
scanf("%d",&n);
for(i=0;i<n+1;i++){
scanf("%lf",&v[n-i]);
}
printf("%.2lf\n",conta(v,n));
return 0;
}
double conta(double v[], int n){
int i;
double r;
if(n==0){
return v[0];
} else{
r=v[n]+1/conta(v,n-1);
return r;
}
} |
the_stack_data/365606.c | #include<stdio.h>
void sub(int x, int y){
printf("Addition result = %d\n", x-y);
}
|
the_stack_data/563178.c | #include <stdio.h>
int main()
{
int multiplication_table[10][10];
// Make a table with i as height and j as length
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
multiplication_table[i][j] = (i+1) * (j+1);
printf("%3d ", multiplication_table[i][j]);
}
printf("\n");
}
return 0;
}
|
the_stack_data/830488.c | #include <stdio.h>
int main()
{
char NOME;
double SF,VD,M,T;
scanf("%s %lf %lf",&NOME,&SF,&VD);
T = (VD * 15)/100;
M = T + SF;
printf("TOTAL = R$ %.2f\n",M);
return 0;
}
|
the_stack_data/51701368.c | #include <stdio.h>
void row(int i, int n){
int j = i;
while(j>0){
printf(" ");
j --;
}
while(n>i){
printf("*");
n --;
}
}
void col(int n){
int i = n;
while(i>0){
row(n-i, n);
printf("\n");
i --;
}
}
int main() {
int n;
scanf("%d", &n);
col(n);
return 0;
} |
the_stack_data/92327436.c | extern void __VERIFIER_error();
#include <pthread.h>
#include <stdio.h>
#include <assert.h>
#define SIZE (800)
#define EMPTY (-1)
#define FULL (-2)
#define FALSE (0)
#define TRUE (1)
typedef struct {
int element[SIZE];
int head;
int tail;
int amount;
} QType;
pthread_mutex_t m;
int __VERIFIER_nondet_int();
int stored_elements[SIZE];
_Bool enqueue_flag, dequeue_flag;
QType queue;
int init(QType *q)
{
q->head=0;
q->tail=0;
q->amount=0;
}
int empty(QType * q)
{
if (q->head == q->tail)
{
printf("queue is empty\n");
return EMPTY;
}
else
return 0;
}
int full(QType * q)
{
if (q->amount == SIZE)
{
printf("queue is full\n");
return FULL;
}
else
return 0;
}
int enqueue(QType *q, int x)
{
q->element[q->tail] = x;
q->amount++;
if (q->tail == SIZE)
{
q->tail = 1;
}
else
{
q->tail++;
}
return 0;
}
int dequeue(QType *q)
{
int x;
x = q->element[q->head];
q->amount--;
if (q->head == SIZE)
{
q->head = 1;
}
else
q->head++;
return x;
}
void *t1(void *arg)
{
int value, i;
pthread_mutex_lock(&m);
if (enqueue_flag)
{
for(i=0; i<SIZE; i++)
{
value = __VERIFIER_nondet_int();
enqueue(&queue,value);
stored_elements[i]=value;
}
enqueue_flag=FALSE;
dequeue_flag=TRUE;
}
pthread_mutex_unlock(&m);
return NULL;
}
void *t2(void *arg)
{
int i;
pthread_mutex_lock(&m);
if (dequeue_flag)
{
for(i=0; i<SIZE; i++)
{
if (empty(&queue)!=EMPTY)
if (!dequeue(&queue)==stored_elements[i]) {
ERROR:__VERIFIER_error();
}
}
dequeue_flag=FALSE;
enqueue_flag=TRUE;
}
pthread_mutex_unlock(&m);
return NULL;
}
int main(void)
{
pthread_t id1, id2;
enqueue_flag=TRUE;
dequeue_flag=FALSE;
init(&queue);
if (!empty(&queue)==EMPTY) {
ERROR:__VERIFIER_error();
}
pthread_mutex_init(&m, 0);
pthread_create(&id1, NULL, t1, &queue);
pthread_create(&id2, NULL, t2, &queue);
pthread_join(id1, NULL);
pthread_join(id2, NULL);
return 0;
}
|
the_stack_data/154831166.c | /*
use ptrace to find all system call that call by certain process
*/
#include <sys/ptrace.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <stdio.h>
#include <sys/reg.h>
int main(int argc, char *argv[]) {
int status;
int bit = 1;
long num;
long ret;
pid_t pid = atoi(argv[1]);
ptrace(PTRACE_ATTACH, pid ,NULL,NULL);
wait(&status);
if(WIFEXITED(status))
return 0;
ptrace(PTRACE_SYSCALL,pid,NULL,NULL);
while(1) {
wait(&status);
if(WIFEXITED(status))
return 0;
// for enter system call
if(bit) {
num = ptrace(PTRACE_PEEKUSER, pid, ORIG_RAX * 8, NULL);
printf("system call num = %ld", num);
bit = 0;
} else { // for return of system call
ret = ptrace(PTRACE_PEEKUSER, pid, RAX*8, NULL);
printf("system call return = %ld \n", ret);
bit = 1;
}
// let this child process continue to run until call next system call
ptrace(PTRACE_SYSCALL,pid,NULL,NULL);
}
}
|
the_stack_data/952064.c | #include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif
#define SIZE (sizeof(long long int))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
|
the_stack_data/126703199.c | /*
Testa a função aqui definida readLn
*/
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#define MAX 4096
size_t readln(int fd, char *line, size_t size) {
static char buff[MAX];
static int count = 0; // necessária para aceder a nova linha numa nova invocação
static int upper = 0; // variável necessária para fazer round-robin com a variável count
size_t i = 0;
if (count == 0 && (upper = read(fd, buff, MAX)) <= 0 ) return -1;
while (i < size && (count + i) < upper && buff[count + i] != '\n') {
line[i] = buff[count + i];
i++;
}
if (i < size && (count + i) < MAX){ line[i] = buff[count + i]; i++;}
count = (count + i)%upper;
return i;
}
|
the_stack_data/127907.c | #include <stdio.h>
#include <string.h>
int main()
{
char str[100],word[20],temp[20],ch;
int i,j=0,k=0,count=0,wcount=0,flag=0,flag1,position[20];
printf("Enter string: ");
gets(str);
printf("\nEnter word to be searched: ");
gets(word);
for(i=0;i<strlen(str);i++)
{
ch=str[i];
temp[j]=ch;
if(ch==' ' || i==strlen(str)-1)
{
count++;
temp[++j]='\0';
while(word[k]!='\0')
{
if(word[k]==temp[k])
{
flag=1;
}
else
{
flag=0;
break;
}
k++;
}
if(flag==1)
{
flag1=1;
position[wcount]=count;
wcount++;
}
j=0;
k=0;
}
else
{
j++;
}
}
if(flag1==1)
{
printf("\n'%s' is occured %d time(s) at position ",word,wcount);
for(i=0;i<wcount;i++)
{
if(i==wcount-1)
{
printf("%d.",position[i]);
}
else
{
printf("%d, ",position[i]);
}
}
}
else
{
printf("\n'%s' is not found.",word);
}
return 0;
}
|
the_stack_data/162641907.c | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
typedef struct BINARY_SEARCH_TREE
{
int data;
struct BINARY_SEARCH_TREE *left;
struct BINARY_SEARCH_TREE *right;
} Node;
/**
* Creates a new node.
*
* @internal
*
* @param int data Data for node
*
* @return Node
*/
Node *get_Node(int data)
{
Node *temp = (Node *) malloc(sizeof(Node));
temp->data = data;
temp->left = NULL;
temp->right = NULL;
return temp;
}
/**
* Insert new node to a tree.
*
* @param Node tree Search tree
* @param int data Data to insert
*
* @return void
*/
void insert(Node **tree, int data)
{
if (!*tree) {
*tree = get_Node(data);
return;
}
if (data < (*tree)->data) {
//left subtree
insert(&(*tree)->left, data);
} else {
//right subtree
insert(&(*tree)->right, data);
}
}
/**
* Prints data using inorder traversal of a tree.
*
* @param Node tree Search tree
*
* @return void
*/
void inorder(Node **tree)
{
if (!*tree) {
return;
}
inorder(&(*tree)->left);
printf("%d ", (*tree)->data);
inorder(&(*tree)->right);
}
/**
* Prints data using preorder traversal of a tree.
*
* @param Node tree Search tree
*
* @return void
*/
void preorder(Node **n)
{
if (!*n) {
return;
}
printf("%d ", (*n)->data);
preorder(&(*n)->left);
preorder(&(*n)->right);
}
/**
* Prints data using postorder traversal of a tree.
*
* @param Node tree Search tree
*
* @return void
*/
void postorder(Node **n)
{
if (!*n) {
return;
}
postorder(&(*n)->left);
postorder(&(*n)->right);
printf("%d ", (*n)->data);
}
/**
* Finds a node with given data from tree.
*
* @param Node tree Search tree
* @param int data Data to search
*
* @return Node|Null
*/
Node *find(Node **tree, int data)
{
static Node *item = NULL;
if (!*tree) {
return NULL;
}
if (!item) {
item = (Node *) malloc(sizeof(Node));
}
if (data == (*tree)->data) {
item = *tree;
} else if (data < (*tree)->data) {
find(&((*tree)->left), data);
} else {
find(&((*tree)->right), data);
}
return item;
}
/**
* Find node with minimum data from given tree.
*
* @param Node root Root of a tree
*
* @return Node
*/
Node *find_minimum(Node *root)
{
Node *subtree = root;
while (subtree->left) {
subtree = subtree->left;
}
return subtree;
}
/**
* Find node with maximum data from given tree.
*
* @param Node root Root of a tree
*
* @return Node
*/
Node *find_maximum(Node *root)
{
Node *subtree = root;
while (subtree->right) {
subtree = subtree->right;
}
return subtree;
}
/**
* Checks if a node is a leaf node.
*
* @param Node n Node to check
*
* @return bool
*/
bool is_leaf_node(Node *n)
{
return n->left == NULL && n->right == NULL;
}
/**
* Checks if a node is root node of a given tree.
*
* @param Node tree Search tree
* @param Node n Node to check against root node
*
* @return bool
*/
bool is_root_node(Node **tree, Node *n)
{
return (*tree) == n;
}
/**
* Deletes a node with given data from tree
* and returns a new root.
*
* @param Node root Root of a tree
* @param int data Data to be deleted
*
* @return Node New node of a tree
*/
Node *delete(Node *root, int data)
{
if (!root) {
return root;
}
if (data < root->data) {
//left
root->left = delete(root->left, data);
} else if (data > root->data) {
//right
root->right = delete(root->right, data);
} else {
//equal
if (is_leaf_node(root)) {
free(root);
root = NULL;
return NULL;
}
if (root->left && root->right) {
//has both child
Node *min = find_minimum(root->right);
root->data = min->data;
root->right = delete(root->right, min->data);
} else if (root->left) {
//left child
Node *temp = root->left;
free(root->left);
root->left = NULL;
return temp;
} else if (root->right) {
//right child
Node *temp = root->right;
free(root->right);
root->right = NULL;
return temp;
}
}
return root;
}
int main()
{
Node *n = NULL;
int total, input, del;
printf("%s", "How many data? ");
scanf("%d", &total);
printf("Enter %d numbers\n", total);
for (int i = 0; i < total; i++) {
scanf("%d", &input);
insert(&n, input);
}
printf("%s", "Inorder: ");
inorder(&n);
printf("%s", "\nPreorder: ");
preorder(&n);
printf("%s", "\nPostorder: ");
postorder(&n);
printf("%s", "\n\nDelete? ");
scanf("%d", &del);
Node *found = find(&n, del);
assert(del == found->data);
Node *new_root = delete(n, del);
assert(new_root->data == n->data);
printf("\n%s", "After Deletion: ");
preorder(&n);
free(n);
return 0;
}
|
the_stack_data/234516958.c | main() { char *s="main() { char *s=%c%s%c; printf(s,34,s,34); }"; printf(s,34,s,34); }
|
the_stack_data/92325965.c | #include <stdio.h>
int main ()
{
/* KAMUS */
/* ALGORITMA */
printf ("hello\n");
return 0;
}
|
the_stack_data/9514040.c | /*
ID: freeord1
LANG: C
TASK: namenum
*/
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <math.h>
#define MAX 5000
/* 0 --> negative
* 1 -- positive
*/
int is_valid(char *p, char dict[][13])
{
int left = 0, right = MAX - 1;
while (left < right) {
int mid = (left + right) / 2;
int ret = strcmp(p, dict[mid]);
if (ret == 0)
return 1;
else if (ret > 0)
left = mid + 1;
else
right = mid - 1;
}
if (left == right && strcmp(p, dict[left]) == 0)
return 1;
return 0;
}
int main()
{
FILE *fin, *fout, *fdict;
char dict[5000][13];
fin = fopen("namenum.in", "r");
fout = fopen("namenum.out", "w");
fdict = fopen("dict.txt", "r");
assert(fin && fout && fdict);
int num;
char li_num[13];
fscanf(fin, "%s", li_num);
fclose(fin);
int count = 0;
memset(dict, 0, sizeof(dict));
while ( !feof(fdict))
fscanf(fdict, "%s", dict[count++]);
int i, j, k;
char keymap[10][4];
memset(keymap, 0, sizeof(keymap));
for (i = 2; i < 7; ++i)
for (j = 0; j < 3; ++j)
keymap[i][j] = 'A' + 3 * (i - 2) + j;
strcpy(keymap[7], "PRS");
strcpy(keymap[8], "TUV");
strcpy(keymap[9], "WXY");
int col = strlen(li_num);
int row = pow(3, col);
char results[row][col+1];
memset(results, 0, sizeof(results));
for (i = 0; i < col; ++i) {
int power = pow(3, col - 1 - i);
for (j = 0; j < row; j += 3 * power) {
int index = li_num[i] - '0';
for (k = 0; k < power; ++k)
results[j + k][i] = keymap[index][0];
for ( ; k < 2 * power; ++k)
results[j + k][i] = keymap[index][1];
for ( ; k < 3 * power; ++k)
results[j + k][i] = keymap[index][2];
}
}
count = 0;
for (i = 0; i < row; ++i) {
if (is_valid(results[i], dict)) {
++count;
fprintf(fout, "%s\n", results[i]);
}
}
if (count == 0)
fprintf(fout, "NONE\n");
fclose(fout);
return 0;
}
|
the_stack_data/126702211.c | /* Directory content listing - dirlist.c */
#include <stdio.h>
#include <dirent.h>
#include <stdlib.h>
main(int argc, char *argv[])
{
struct dirent *dptr;
DIR *dname;
if (argc != 2)
{
printf("Usage: ./a.out <dirname>\n");
exit(-1);
}
if((dname = opendir(argv[1])) == NULL)
{
perror(argv[1]);
exit(-1);
}
while(dptr=readdir(dname))
printf("%s\n", dptr->d_name);
closedir(dname);
}
|
the_stack_data/29826062.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <arpa/inet.h>
#define BUF_SIZE 100
void error_handling(char* message);
int main(int argc, char* argv[])
{
int serv_sock, clnt_sock;
struct sockaddr_in serv_adr, clnt_adr;
struct timeval timeout;
fd_set reads, cpy_reads;
socklen_t adr_sz;
int fd_max, str_len, fd_num, i;
char buf[BUF_SIZE];
if (argc != 2) {
printf("Usage : %s <port>\n", argv[0]);
exit(1);
}
serv_sock = socket(PF_INET, SOCK_STREAM, 0);
memset(&serv_adr, 0, sizeof(serv_adr));
serv_adr.sin_family = AF_INET;
serv_adr.sin_addr.s_addr = htonl(INADDR_ANY);
serv_adr.sin_port = htons(atoi(argv[1]));
if (bind(serv_sock, (struct sockaddr*)&serv_adr, sizeof(serv_adr)) == -1)
{
error_handling("bind() error");
}
if (listen(serv_sock, 5) == -1)
{
error_handling("listen() error");
}
FD_ZERO(&reads);
FD_SET(serv_sock, &reads);
fd_max = serv_sock;
while (1)
{
cpy_reads = reads;
timeout.tv_sec = 5;
timeout.tv_usec = 5000;
if ((fd_num = select(fd_max + 1, &cpy_reads, 0, 0, &timeout)) == -1)
break;
//timeout
if (fd_num == 0)
continue;
for (i = 0; i < fd_max + 1; i++) {
if (FD_ISSET(i, &cpy_reads))
{
if (i == serv_sock) //connection request
{
adr_sz = sizeof(clnt_adr);
clnt_sock = accept(serv_sock, (struct sockaddr*)&clnt_adr, &adr_sz);
FD_SET(clnt_sock, &reads);
if (fd_max < clnt_sock)
fd_max = clnt_sock;
printf("connected client: %d \n", clnt_sock);
}
else //read message
{
str_len = read(i, buf, BUF_SIZE);
if (str_len == 0) //close request
{
FD_CLR(i, &reads);
close(i);
printf("closed client: %d \n", i);
}
else
{
for (int i = 4; i < fd_max + 1; i++)
{
write(i, buf, str_len);
}
}
}
}
}
}
close(serv_sock);
return 0;
}
void error_handling(char* message) {
fputs(message, stderr);
fputc('\n', stderr);
exit(1);
} |
the_stack_data/76700284.c | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
int main()
{
int32_t n, m;
int32_t freq[200];
memset ( freq, 0, 200 * sizeof ( int32_t ) );
scanf ( "%d", &n );
int x0;
scanf ( "%d", &x0 );
n--;
freq[100] = 1;
while ( n-- > 0 )
{
int x;
scanf ( "%d", &x );
freq[x - x0 + 100]++;
}
scanf ( "%d", &m );
while ( m-- > 0 )
{
int x;
scanf ( "%d", &x );
freq[x - x0 + 100]--;
}
for ( int i = 0; i < 200; i++ )
{
if ( freq[i] != 0 )
{
printf ( "%d ", i - 100 + x0 );
}
}
// printf ( "\n" );
return 0;
}
|
the_stack_data/151181.c | #include <stdio.h>
int main() {
float a, b, c, media, peso1, peso2, peso3;
fflush(stdin);
scanf("%f", &a);
scanf("%f", &b);
scanf("%f", &c);
peso1= a*2;
peso2= b*3;
peso3= c*5;
media=(peso1+peso2+peso3)/10;
printf("MEDIA = %.1f\n", media);
return 0;
} |
the_stack_data/59430.c | /*
// Copyright (c) 2017 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
*/
#ifdef OC_SECURITY
#include "oc_cred.h"
#include "oc_api.h"
#include "oc_base64.h"
#include "oc_config.h"
#include "oc_core_res.h"
#include "oc_doxm.h"
#include "oc_pstat.h"
#include "oc_store.h"
#include "oc_tls.h"
#include "port/oc_log.h"
#include "util/oc_list.h"
#include "util/oc_memb.h"
#include <stdlib.h>
OC_MEMB(creds, oc_sec_cred_t, OC_MAX_NUM_DEVICES *OC_MAX_NUM_SUBJECTS + 1);
#define OXM_JUST_WORKS "oic.sec.doxm.jw"
#ifdef OC_DYNAMIC_ALLOCATION
#include "port/oc_assert.h"
static oc_sec_creds_t *devices;
#else /* OC_DYNAMIC_ALLOCATION */
static oc_sec_creds_t devices[OC_MAX_NUM_DEVICES];
#endif /* !OC_DYNAMIC_ALLOCATION */
void
oc_sec_cred_default(size_t device)
{
oc_sec_cred_t *cred = (oc_sec_cred_t *)oc_list_pop(devices[device].creds);
while (cred != NULL) {
oc_memb_free(&creds, cred);
cred = (oc_sec_cred_t *)oc_list_pop(devices[device].creds);
}
memset(devices[device].rowneruuid.id, 0, 16);
oc_sec_dump_cred(device);
}
oc_sec_creds_t *
oc_sec_get_creds(size_t device)
{
return &devices[device];
}
void
oc_sec_cred_init(void)
{
#ifdef OC_DYNAMIC_ALLOCATION
devices =
(oc_sec_creds_t *)calloc(oc_core_get_num_devices(), sizeof(oc_sec_creds_t));
if (!devices) {
oc_abort("Insufficient memory");
}
#endif /* OC_DYNAMIC_ALLOCATION */
size_t i;
for (i = 0; i < oc_core_get_num_devices(); i++) {
OC_LIST_STRUCT_INIT(&devices[i], creds);
}
}
static bool
unique_credid(int credid, size_t device)
{
oc_sec_cred_t *cred = oc_list_head(devices[device].creds);
while (cred != NULL) {
if (cred->credid == credid)
return false;
cred = cred->next;
}
return true;
}
static int
get_new_credid(size_t device)
{
int credid;
do {
credid = oc_random_value() >> 1;
} while (!unique_credid(credid, device));
return credid;
}
static void
oc_sec_remove_cred(oc_sec_cred_t *cred, size_t device)
{
oc_list_remove(devices[device].creds, cred);
if (oc_string_len(cred->role.role) > 0) {
oc_free_string(&cred->role.role);
if (oc_string_len(cred->role.authority) > 0) {
oc_free_string(&cred->role.authority);
}
}
oc_memb_free(&creds, cred);
}
static bool
oc_sec_remove_cred_by_credid(int credid, size_t device)
{
oc_sec_cred_t *cred = oc_list_head(devices[device].creds);
while (cred != NULL) {
if (cred->credid == credid) {
oc_sec_remove_cred(cred, device);
return true;
}
cred = cred->next;
}
return false;
}
static void
oc_sec_clear_creds(size_t device)
{
oc_sec_cred_t *cred = oc_list_head(devices[device].creds), *next;
while (cred != NULL) {
next = cred->next;
oc_sec_remove_cred(cred, device);
cred = next;
}
}
void
oc_sec_cred_free(void)
{
size_t device;
for (device = 0; device < oc_core_get_num_devices(); device++) {
oc_sec_clear_creds(device);
}
#ifdef OC_DYNAMIC_ALLOCATION
if (devices) {
free(devices);
}
#endif /* OC_DYNAMIC_ALLOCATION */
}
oc_sec_cred_t *
oc_sec_find_cred(oc_uuid_t *subjectuuid, size_t device)
{
oc_sec_cred_t *cred = oc_list_head(devices[device].creds);
while (cred != NULL) {
if (memcmp(cred->subjectuuid.id, subjectuuid->id, 16) == 0) {
return cred;
}
cred = cred->next;
}
return NULL;
}
oc_sec_cred_t *
oc_sec_get_cred(oc_uuid_t *subjectuuid, size_t device)
{
oc_sec_cred_t *cred = oc_sec_find_cred(subjectuuid, device);
if (cred == NULL) {
cred = oc_memb_alloc(&creds);
if (cred != NULL) {
memcpy(cred->subjectuuid.id, subjectuuid->id, 16);
oc_list_add(devices[device].creds, cred);
} else {
OC_WRN("insufficient memory to add new credential");
}
}
return cred;
}
void
oc_sec_encode_cred(bool persist, size_t device)
{
oc_sec_cred_t *cr = oc_list_head(devices[device].creds);
char uuid[OC_UUID_LEN];
oc_rep_start_root_object();
oc_process_baseline_interface(
oc_core_get_resource_by_index(OCF_SEC_CRED, device));
oc_rep_set_array(root, creds);
while (cr != NULL) {
oc_rep_object_array_start_item(creds);
oc_rep_set_int(creds, credid, cr->credid);
oc_rep_set_int(creds, credtype, cr->credtype);
oc_uuid_to_str(&cr->subjectuuid, uuid, OC_UUID_LEN);
oc_rep_set_text_string(creds, subjectuuid, uuid);
if (oc_string_len(cr->role.role) > 0) {
oc_rep_set_object(creds, roleid);
oc_rep_set_text_string(roleid, role, oc_string(cr->role.role));
if (oc_string_len(cr->role.authority) > 0) {
oc_rep_set_text_string(roleid, authority,
oc_string(cr->role.authority));
}
oc_rep_close_object(creds, roleid);
}
oc_rep_set_object(creds, privatedata);
if (persist) {
oc_rep_set_byte_string(privatedata, data, cr->key, 16);
} else {
oc_rep_set_byte_string(privatedata, data, cr->key, 0);
}
oc_rep_set_text_string(privatedata, encoding, "oic.sec.encoding.raw");
oc_rep_close_object(creds, privatedata);
oc_rep_object_array_end_item(creds);
cr = cr->next;
}
oc_rep_close_array(root, creds);
oc_uuid_to_str(&devices[device].rowneruuid, uuid, OC_UUID_LEN);
oc_rep_set_text_string(root, rowneruuid, uuid);
oc_rep_end_root_object();
}
bool
oc_sec_decode_cred(oc_rep_t *rep, oc_sec_cred_t **owner, bool from_storage,
size_t device)
{
oc_sec_pstat_t *ps = oc_sec_get_pstat(device);
oc_rep_t *t = rep;
size_t len = 0;
while (t != NULL) {
len = oc_string_len(t->name);
switch (t->type) {
case OC_REP_STRING:
if (len == 10 && memcmp(oc_string(t->name), "rowneruuid", 10) == 0) {
if (!from_storage && ps->s != OC_DOS_RFOTM && ps->s != OC_DOS_SRESET) {
OC_ERR("oc_cred: Can set rowneruuid only in RFOTM/SRESET");
return false;
}
}
break;
case OC_REP_OBJECT_ARRAY: {
if (!from_storage && ps->s != OC_DOS_RFOTM && ps->s != OC_DOS_SRESET &&
ps->s != OC_DOS_RFPRO) {
OC_ERR("oc_cred: Can set cred only in RFOTM/SRESET/RFPRO");
return false;
}
} break;
default:
break;
}
t = t->next;
}
while (rep != NULL) {
len = oc_string_len(rep->name);
switch (rep->type) {
case OC_REP_STRING:
if (len == 10 && memcmp(oc_string(rep->name), "rowneruuid", 10) == 0) {
oc_str_to_uuid(oc_string(rep->value.string),
&devices[device].rowneruuid);
}
break;
case OC_REP_OBJECT_ARRAY: {
oc_rep_t *creds_array = rep->value.object_array;
while (creds_array != NULL) {
oc_rep_t *cred = creds_array->value.object;
int credid = -1, credtype = 0;
oc_string_t *role = 0, *authority = 0, *subjectuuid = 0;
uint8_t key[24];
bool non_empty = false;
bool got_key = false, base64_key = false;
while (cred != NULL) {
len = oc_string_len(cred->name);
non_empty = true;
switch (cred->type) {
case OC_REP_INT:
if (len == 6 && memcmp(oc_string(cred->name), "credid", 6) == 0)
credid = cred->value.integer;
else if (len == 8 &&
memcmp(oc_string(cred->name), "credtype", 8) == 0)
credtype = cred->value.integer;
break;
case OC_REP_STRING:
if (len == 11 &&
memcmp(oc_string(cred->name), "subjectuuid", 11) == 0) {
subjectuuid = &cred->value.string;
}
break;
case OC_REP_OBJECT: {
oc_rep_t *data = cred->value.object;
if (len == 11 &&
memcmp(oc_string(cred->name), "privatedata", 11) == 0) {
while (data != NULL) {
switch (data->type) {
case OC_REP_STRING: {
if (oc_string_len(data->name) == 8 &&
memcmp("encoding", oc_string(data->name), 8) == 0) {
if (oc_string_len(data->value.string) == 23 &&
memcmp("oic.sec.encoding.base64",
oc_string(data->value.string), 23) == 0) {
base64_key = true;
}
} else if (oc_string_len(data->name) == 4 &&
memcmp(oc_string(data->name), "data", 4) == 0) {
uint8_t *p = oc_cast(data->value.string, uint8_t);
size_t size = oc_string_len(data->value.string);
if (size == 0)
goto next_item;
if (size != 24) {
OC_ERR("oc_cred: Invalid key");
return false;
}
got_key = true;
memcpy(key, p, size);
}
} break;
case OC_REP_BYTE_STRING: {
uint8_t *p = oc_cast(data->value.string, uint8_t);
size_t size = oc_string_len(data->value.string);
if (size == 0)
goto next_item;
if (size != 16) {
OC_ERR("oc_cred: Invalid key");
return false;
}
got_key = true;
memcpy(key, p, 16);
} break;
default:
break;
}
next_item:
data = data->next;
}
if (got_key && base64_key) {
oc_base64_decode(key, 24);
}
} else if (len == 6 &&
memcmp(oc_string(cred->name), "roleid", 6) == 0) {
while (data != NULL) {
len = oc_string_len(data->name);
if (len == 4 && memcmp(oc_string(data->name), "role", 4) == 0) {
role = &data->value.string;
} else if (len == 9 &&
memcmp(oc_string(data->name), "authority", 9) == 0) {
authority = &data->value.string;
}
data = data->next;
}
}
} break;
default:
break;
}
cred = cred->next;
}
if (non_empty) {
oc_uuid_t subject;
if (!subjectuuid) {
return false;
}
oc_str_to_uuid(oc_string(*subjectuuid), &subject);
if (!unique_credid(credid, device)) {
oc_sec_remove_cred_by_credid(credid, device);
}
if (credid == -1) {
credid = get_new_credid(device);
}
oc_sec_cred_t *credobj = oc_sec_get_cred(&subject, device);
if (!credobj) {
return false;
}
credobj->credid = credid;
credobj->credtype = credtype;
if (role) {
oc_new_string(&credobj->role.role, oc_string(*role),
oc_string_len(*role));
if (authority) {
oc_new_string(&credobj->role.authority, oc_string(*authority),
oc_string_len(*authority));
}
}
if (got_key) {
memcpy(credobj->key, key, 16);
} else {
if (owner) {
*owner = credobj;
}
}
}
creds_array = creds_array->next;
}
} break;
default:
break;
}
rep = rep->next;
}
return true;
}
void
get_cred(oc_request_t *request, oc_interface_mask_t interface, void *data)
{
(void)interface;
(void)data;
oc_sec_encode_cred(false, request->resource->device);
oc_send_response(request, OC_STATUS_OK);
}
bool
oc_cred_remove_subject(const char *subjectuuid, size_t device)
{
oc_uuid_t _subjectuuid;
oc_str_to_uuid(subjectuuid, &_subjectuuid);
oc_sec_cred_t *cred = oc_list_head(devices[device].creds), *next = 0;
while (cred != NULL) {
next = cred->next;
if (memcmp(cred->subjectuuid.id, _subjectuuid.id, 16) == 0) {
oc_sec_remove_cred(cred, device);
return true;
}
cred = next;
}
return false;
}
void
delete_cred(oc_request_t *request, oc_interface_mask_t interface, void *data)
{
(void)interface;
(void)data;
bool success = false;
char *query_param = 0;
int ret = oc_get_query_value(request, "credid", &query_param);
int credid = 0;
if (ret != -1) {
credid = (int)strtoul(query_param, NULL, 10);
if (credid != 0) {
if (oc_sec_remove_cred_by_credid(credid, request->resource->device)) {
success = true;
}
}
} else {
oc_sec_clear_creds(request->resource->device);
success = true;
}
if (success) {
oc_send_response(request, OC_STATUS_DELETED);
oc_sec_dump_cred(request->resource->device);
} else {
oc_send_response(request, OC_STATUS_NOT_FOUND);
}
}
void
post_cred(oc_request_t *request, oc_interface_mask_t interface, void *data)
{
(void)interface;
(void)data;
oc_sec_doxm_t *doxm = oc_sec_get_doxm(request->resource->device);
oc_sec_cred_t *owner = NULL;
bool success = oc_sec_decode_cred(request->request_payload, &owner, false,
request->resource->device);
if (success && owner &&
memcmp(owner->subjectuuid.id,
devices[request->resource->device].rowneruuid.id, 16) == 0) {
success = oc_sec_derive_owner_psk(
request->origin, (const uint8_t *)OXM_JUST_WORKS, strlen(OXM_JUST_WORKS),
doxm->deviceuuid.id, 16, owner->subjectuuid.id, 16, owner->key, 16);
}
if (!success) {
if (owner) {
oc_sec_remove_cred_by_credid(owner->credid, request->resource->device);
}
oc_send_response(request, OC_STATUS_BAD_REQUEST);
} else {
oc_send_response(request, OC_STATUS_CHANGED);
oc_sec_dump_cred(request->resource->device);
}
}
#endif /* OC_SECURITY */
|
the_stack_data/125140660.c | /* this is a cool auto rotate script that rotates screen and touchscreen together
from https://github.com/aleozlx/2in1screen/blob/master/2in1screen.c
build with:
gcc -O2 -o 2in1screen 2in1screen.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#define DATA_SIZE 256
//#define N_STATE 2 //for only normal and invert
#define N_STATE 4 //for all 4 positions
char basedir[DATA_SIZE];
char *basedir_end = NULL;
char content[DATA_SIZE];
char command[DATA_SIZE*4];
char *ROT[] = {"normal", "inverted", "left", "right"};
char *COOR[] = {"1 0 0 0 1 0 0 0 1", "-1 0 1 0 -1 1 0 0 1", "0 -1 1 1 0 0 0 0 1", "0 1 0 -1 0 1 0 0 1"};
// char *TOUCH[] = {"enable", "disable", "disable", "disable"};
//char WIDE_WALLPAPER[84];
char TALL_WALLPAPER[] = "~/Pictures/TALL-1080x1920.jpg";
char WIDE_WALLPAPER[] = "~/Pictures/WIDE-1920x1080.jpg";
double accel_y = 0.0,
#if N_STATE == 4
accel_x = 0.0,
#endif
accel_g = 7.0;
int current_state = 0;
int rotation_changed(){
int state = 0;
if(accel_y < -accel_g) state = 0;
else if(accel_y > accel_g) state = 1;
#if N_STATE == 4
else if(accel_x > accel_g) state = 2;
else if(accel_x < -accel_g) state = 3;
#endif
if(current_state!=state){
current_state = state;
return 1;
}
else return 0;
}
FILE* bdopen(char const *fname, char leave_open){
*basedir_end = '/';
strcpy(basedir_end+1, fname);
FILE *fin = fopen(basedir, "r");
setvbuf(fin, NULL, _IONBF, 0);
fgets(content, DATA_SIZE, fin);
*basedir_end = '\0';
if(leave_open==0){
fclose(fin);
return NULL;
}
else return fin;
}
void rotate_screen(){
sprintf(command, "xrandr -o %s", ROT[current_state]);
system(command);
// sprintf(command, "xinput set-prop \"%s\" \"Coordinate Transformation Matrix\" %s", "Wacom HID 4846 Finger", COOR[current_state]);
sprintf(command, "xinput set-prop \"%s\" \"Coordinate Transformation Matrix\" %s", "Wacom HID 4848 Finger touch", COOR[current_state]);
system(command);
system("killall docky");
system("killall spacefm");
if (current_state < 2) {
sprintf(command, "/usr/bin/spacefm --set-wallpaper %s", WIDE_WALLPAPER);
}
else {
sprintf(command, "/usr/bin/spacefm --set-wallpaper %s", TALL_WALLPAPER);
}
system("/usr/bin/spacefm --desktop &");
usleep(300000);
system(command);
system("/usr/bin/docky &");
}
int main(int argc, char const *argv[]) {
/* FILE* stream = popen("grep ^wallpaper= ~/.config/spacefm/session|cut -d '=' -f2", "r");
while (fgets(WIDE_WALLPAPER, 84, stream) != NULL)
pclose(stream);
WIDE_WALLPAPER[strcspn(WIDE_WALLPAPER, "\r\n")] = 0;
*/
FILE *pf = popen("ls /sys/bus/iio/devices/iio:device*/in_accel*", "r");
if(!pf){
fprintf(stderr, "IO Error.\n");
return 2;
}
if(fgets(basedir, DATA_SIZE , pf)!=NULL){
basedir_end = strrchr(basedir, '/');
if(basedir_end) *basedir_end = '\0';
fprintf(stderr, "Accelerometer: %s\n", basedir);
}
else{
fprintf(stderr, "Unable to find any accelerometer.\n");
return 1;
}
pclose(pf);
bdopen("in_accel_scale", 0);
double scale = atof(content);
FILE *dev_accel_y = bdopen("in_accel_y_raw", 1);
#if N_STATE == 4
FILE *dev_accel_x = bdopen("in_accel_x_raw", 1);
#endif
while(1){
fseek(dev_accel_y, 0, SEEK_SET);
fgets(content, DATA_SIZE, dev_accel_y);
accel_y = atof(content) * scale;
#if N_STATE == 4
fseek(dev_accel_x, 0, SEEK_SET);
fgets(content, DATA_SIZE, dev_accel_x);
accel_x = atof(content) * scale;
#endif
if(rotation_changed())
rotate_screen();
sleep(2);
}
return 0;
}
|
the_stack_data/610806.c | #include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#define NUM_WORKERS 3
void main(int argc, char** argv) {
printf("boss process (pid %d) started\n", getpid());
}
|
the_stack_data/34511981.c |
// put test code in a dylib so that is slides
extern void realmain();
int main()
{
realmain();
return 0;
}
|
the_stack_data/1537.c | /*
Author : Arnob Mahmud
mail : [email protected]
*/
#include <stdio.h>
int main(int argc, char const *argv[])
{
float A[10][10], m, n, max, min;
printf("Enter row : ");
scanf("%f", &m);
printf("Enter column : ");
scanf("%f", &n);
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
printf("A[%d][%d] : ", i, j);
scanf("%f", &A[i][j]);
}
}
printf("Array : \n");
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
printf("%.2f\t", A[i][j]);
}
printf("\n");
}
max = min = A[0][0];
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
if (max < A[i][j])
{
max = A[i][j];
}
else if (min > A[i][j])
{
min = A[i][j];
}
}
}
printf("Max : %.2f\nMin : %.2f", max, min);
return 0;
} |
the_stack_data/54826168.c | /* Qn :
Each new term in the Fibonacci sequence is generated by adding the previous two terms.
By starting with 1 and 2,the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence
whose values do not exceed the input integer, find the sum of the even-valued terms.
Sample input Sample output
100 44
*/
/*
Author : Arnob Mahmud
mail : [email protected]
*/
#include <stdio.h>
int main(int argc, char const *argv[])
{
int a = 1, b = 2, c = 0, sum = 0, n;
scanf("%d", &n);
do
{
printf("%d ", a);
if (b % 2 == 0)
{
sum += b;
}
c = a + b;
a = b;
b = c;
} while (c <= n);
printf("\n%d", sum);
return 0;
}
|
the_stack_data/16934.c | #include <stdio.h>
#include <stdlib.h> /* for abort() */
#if defined(NDEBUG)
#define assert(ignore) ((void) 0) /* ignore it */
#else
#define assert(expr) \
if (!(expr)) { \
printf("\n%s%s\n%s%s\n%s%d\n\n", \
"Assertion failed: ", #expr, \
"in file ", __FILE__, \
"at line ", __LINE__); \
abort(); \
}
#endif
int main(void)
{
assert(1 > 2);
return 0;
}
|
the_stack_data/150209.c | #include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <complex.h>
#ifdef complex
#undef complex
#endif
#ifdef I
#undef I
#endif
#if defined(_WIN64)
typedef long long BLASLONG;
typedef unsigned long long BLASULONG;
#else
typedef long BLASLONG;
typedef unsigned long BLASULONG;
#endif
#ifdef LAPACK_ILP64
typedef BLASLONG blasint;
#if defined(_WIN64)
#define blasabs(x) llabs(x)
#else
#define blasabs(x) labs(x)
#endif
#else
typedef int blasint;
#define blasabs(x) abs(x)
#endif
typedef blasint integer;
typedef unsigned int uinteger;
typedef char *address;
typedef short int shortint;
typedef float real;
typedef double doublereal;
typedef struct { real r, i; } complex;
typedef struct { doublereal r, i; } doublecomplex;
#ifdef _MSC_VER
static inline _Fcomplex Cf(complex *z) {_Fcomplex zz={z->r , z->i}; return zz;}
static inline _Dcomplex Cd(doublecomplex *z) {_Dcomplex zz={z->r , z->i};return zz;}
static inline _Fcomplex * _pCf(complex *z) {return (_Fcomplex*)z;}
static inline _Dcomplex * _pCd(doublecomplex *z) {return (_Dcomplex*)z;}
#else
static inline _Complex float Cf(complex *z) {return z->r + z->i*_Complex_I;}
static inline _Complex double Cd(doublecomplex *z) {return z->r + z->i*_Complex_I;}
static inline _Complex float * _pCf(complex *z) {return (_Complex float*)z;}
static inline _Complex double * _pCd(doublecomplex *z) {return (_Complex double*)z;}
#endif
#define pCf(z) (*_pCf(z))
#define pCd(z) (*_pCd(z))
typedef int logical;
typedef short int shortlogical;
typedef char logical1;
typedef char integer1;
#define TRUE_ (1)
#define FALSE_ (0)
/* Extern is for use with -E */
#ifndef Extern
#define Extern extern
#endif
/* I/O stuff */
typedef int flag;
typedef int ftnlen;
typedef int ftnint;
/*external read, write*/
typedef struct
{ flag cierr;
ftnint ciunit;
flag ciend;
char *cifmt;
ftnint cirec;
} cilist;
/*internal read, write*/
typedef struct
{ flag icierr;
char *iciunit;
flag iciend;
char *icifmt;
ftnint icirlen;
ftnint icirnum;
} icilist;
/*open*/
typedef struct
{ flag oerr;
ftnint ounit;
char *ofnm;
ftnlen ofnmlen;
char *osta;
char *oacc;
char *ofm;
ftnint orl;
char *oblnk;
} olist;
/*close*/
typedef struct
{ flag cerr;
ftnint cunit;
char *csta;
} cllist;
/*rewind, backspace, endfile*/
typedef struct
{ flag aerr;
ftnint aunit;
} alist;
/* inquire */
typedef struct
{ flag inerr;
ftnint inunit;
char *infile;
ftnlen infilen;
ftnint *inex; /*parameters in standard's order*/
ftnint *inopen;
ftnint *innum;
ftnint *innamed;
char *inname;
ftnlen innamlen;
char *inacc;
ftnlen inacclen;
char *inseq;
ftnlen inseqlen;
char *indir;
ftnlen indirlen;
char *infmt;
ftnlen infmtlen;
char *inform;
ftnint informlen;
char *inunf;
ftnlen inunflen;
ftnint *inrecl;
ftnint *innrec;
char *inblank;
ftnlen inblanklen;
} inlist;
#define VOID void
union Multitype { /* for multiple entry points */
integer1 g;
shortint h;
integer i;
/* longint j; */
real r;
doublereal d;
complex c;
doublecomplex z;
};
typedef union Multitype Multitype;
struct Vardesc { /* for Namelist */
char *name;
char *addr;
ftnlen *dims;
int type;
};
typedef struct Vardesc Vardesc;
struct Namelist {
char *name;
Vardesc **vars;
int nvars;
};
typedef struct Namelist Namelist;
#define abs(x) ((x) >= 0 ? (x) : -(x))
#define dabs(x) (fabs(x))
#define f2cmin(a,b) ((a) <= (b) ? (a) : (b))
#define f2cmax(a,b) ((a) >= (b) ? (a) : (b))
#define dmin(a,b) (f2cmin(a,b))
#define dmax(a,b) (f2cmax(a,b))
#define bit_test(a,b) ((a) >> (b) & 1)
#define bit_clear(a,b) ((a) & ~((uinteger)1 << (b)))
#define bit_set(a,b) ((a) | ((uinteger)1 << (b)))
#define abort_() { sig_die("Fortran abort routine called", 1); }
#define c_abs(z) (cabsf(Cf(z)))
#define c_cos(R,Z) { pCf(R)=ccos(Cf(Z)); }
#ifdef _MSC_VER
#define c_div(c, a, b) {Cf(c)._Val[0] = (Cf(a)._Val[0]/Cf(b)._Val[0]); Cf(c)._Val[1]=(Cf(a)._Val[1]/Cf(b)._Val[1]);}
#define z_div(c, a, b) {Cd(c)._Val[0] = (Cd(a)._Val[0]/Cd(b)._Val[0]); Cd(c)._Val[1]=(Cd(a)._Val[1]/Cd(b)._Val[1]);}
#else
#define c_div(c, a, b) {pCf(c) = Cf(a)/Cf(b);}
#define z_div(c, a, b) {pCd(c) = Cd(a)/Cd(b);}
#endif
#define c_exp(R, Z) {pCf(R) = cexpf(Cf(Z));}
#define c_log(R, Z) {pCf(R) = clogf(Cf(Z));}
#define c_sin(R, Z) {pCf(R) = csinf(Cf(Z));}
//#define c_sqrt(R, Z) {*(R) = csqrtf(Cf(Z));}
#define c_sqrt(R, Z) {pCf(R) = csqrtf(Cf(Z));}
#define d_abs(x) (fabs(*(x)))
#define d_acos(x) (acos(*(x)))
#define d_asin(x) (asin(*(x)))
#define d_atan(x) (atan(*(x)))
#define d_atn2(x, y) (atan2(*(x),*(y)))
#define d_cnjg(R, Z) { pCd(R) = conj(Cd(Z)); }
#define r_cnjg(R, Z) { pCf(R) = conjf(Cf(Z)); }
#define d_cos(x) (cos(*(x)))
#define d_cosh(x) (cosh(*(x)))
#define d_dim(__a, __b) ( *(__a) > *(__b) ? *(__a) - *(__b) : 0.0 )
#define d_exp(x) (exp(*(x)))
#define d_imag(z) (cimag(Cd(z)))
#define r_imag(z) (cimagf(Cf(z)))
#define d_int(__x) (*(__x)>0 ? floor(*(__x)) : -floor(- *(__x)))
#define r_int(__x) (*(__x)>0 ? floor(*(__x)) : -floor(- *(__x)))
#define d_lg10(x) ( 0.43429448190325182765 * log(*(x)) )
#define r_lg10(x) ( 0.43429448190325182765 * log(*(x)) )
#define d_log(x) (log(*(x)))
#define d_mod(x, y) (fmod(*(x), *(y)))
#define u_nint(__x) ((__x)>=0 ? floor((__x) + .5) : -floor(.5 - (__x)))
#define d_nint(x) u_nint(*(x))
#define u_sign(__a,__b) ((__b) >= 0 ? ((__a) >= 0 ? (__a) : -(__a)) : -((__a) >= 0 ? (__a) : -(__a)))
#define d_sign(a,b) u_sign(*(a),*(b))
#define r_sign(a,b) u_sign(*(a),*(b))
#define d_sin(x) (sin(*(x)))
#define d_sinh(x) (sinh(*(x)))
#define d_sqrt(x) (sqrt(*(x)))
#define d_tan(x) (tan(*(x)))
#define d_tanh(x) (tanh(*(x)))
#define i_abs(x) abs(*(x))
#define i_dnnt(x) ((integer)u_nint(*(x)))
#define i_len(s, n) (n)
#define i_nint(x) ((integer)u_nint(*(x)))
#define i_sign(a,b) ((integer)u_sign((integer)*(a),(integer)*(b)))
#define pow_dd(ap, bp) ( pow(*(ap), *(bp)))
#define pow_si(B,E) spow_ui(*(B),*(E))
#define pow_ri(B,E) spow_ui(*(B),*(E))
#define pow_di(B,E) dpow_ui(*(B),*(E))
#define pow_zi(p, a, b) {pCd(p) = zpow_ui(Cd(a), *(b));}
#define pow_ci(p, a, b) {pCf(p) = cpow_ui(Cf(a), *(b));}
#define pow_zz(R,A,B) {pCd(R) = cpow(Cd(A),*(B));}
#define s_cat(lpp, rpp, rnp, np, llp) { ftnlen i, nc, ll; char *f__rp, *lp; ll = (llp); lp = (lpp); for(i=0; i < (int)*(np); ++i) { nc = ll; if((rnp)[i] < nc) nc = (rnp)[i]; ll -= nc; f__rp = (rpp)[i]; while(--nc >= 0) *lp++ = *(f__rp)++; } while(--ll >= 0) *lp++ = ' '; }
#define s_cmp(a,b,c,d) ((integer)strncmp((a),(b),f2cmin((c),(d))))
#define s_copy(A,B,C,D) { int __i,__m; for (__i=0, __m=f2cmin((C),(D)); __i<__m && (B)[__i] != 0; ++__i) (A)[__i] = (B)[__i]; }
#define sig_die(s, kill) { exit(1); }
#define s_stop(s, n) {exit(0);}
static char junk[] = "\n@(#)LIBF77 VERSION 19990503\n";
#define z_abs(z) (cabs(Cd(z)))
#define z_exp(R, Z) {pCd(R) = cexp(Cd(Z));}
#define z_sqrt(R, Z) {pCd(R) = csqrt(Cd(Z));}
#define myexit_() break;
#define mycycle() continue;
#define myceiling(w) {ceil(w)}
#define myhuge(w) {HUGE_VAL}
//#define mymaxloc_(w,s,e,n) {if (sizeof(*(w)) == sizeof(double)) dmaxloc_((w),*(s),*(e),n); else dmaxloc_((w),*(s),*(e),n);}
#define mymaxloc(w,s,e,n) {dmaxloc_(w,*(s),*(e),n)}
/* procedure parameter types for -A and -C++ */
#define F2C_proc_par_types 1
#ifdef __cplusplus
typedef logical (*L_fp)(...);
#else
typedef logical (*L_fp)();
#endif
static float spow_ui(float x, integer n) {
float pow=1.0; unsigned long int u;
if(n != 0) {
if(n < 0) n = -n, x = 1/x;
for(u = n; ; ) {
if(u & 01) pow *= x;
if(u >>= 1) x *= x;
else break;
}
}
return pow;
}
static double dpow_ui(double x, integer n) {
double pow=1.0; unsigned long int u;
if(n != 0) {
if(n < 0) n = -n, x = 1/x;
for(u = n; ; ) {
if(u & 01) pow *= x;
if(u >>= 1) x *= x;
else break;
}
}
return pow;
}
#ifdef _MSC_VER
static _Fcomplex cpow_ui(complex x, integer n) {
complex pow={1.0,0.0}; unsigned long int u;
if(n != 0) {
if(n < 0) n = -n, x.r = 1/x.r, x.i=1/x.i;
for(u = n; ; ) {
if(u & 01) pow.r *= x.r, pow.i *= x.i;
if(u >>= 1) x.r *= x.r, x.i *= x.i;
else break;
}
}
_Fcomplex p={pow.r, pow.i};
return p;
}
#else
static _Complex float cpow_ui(_Complex float x, integer n) {
_Complex float pow=1.0; unsigned long int u;
if(n != 0) {
if(n < 0) n = -n, x = 1/x;
for(u = n; ; ) {
if(u & 01) pow *= x;
if(u >>= 1) x *= x;
else break;
}
}
return pow;
}
#endif
#ifdef _MSC_VER
static _Dcomplex zpow_ui(_Dcomplex x, integer n) {
_Dcomplex pow={1.0,0.0}; unsigned long int u;
if(n != 0) {
if(n < 0) n = -n, x._Val[0] = 1/x._Val[0], x._Val[1] =1/x._Val[1];
for(u = n; ; ) {
if(u & 01) pow._Val[0] *= x._Val[0], pow._Val[1] *= x._Val[1];
if(u >>= 1) x._Val[0] *= x._Val[0], x._Val[1] *= x._Val[1];
else break;
}
}
_Dcomplex p = {pow._Val[0], pow._Val[1]};
return p;
}
#else
static _Complex double zpow_ui(_Complex double x, integer n) {
_Complex double pow=1.0; unsigned long int u;
if(n != 0) {
if(n < 0) n = -n, x = 1/x;
for(u = n; ; ) {
if(u & 01) pow *= x;
if(u >>= 1) x *= x;
else break;
}
}
return pow;
}
#endif
static integer pow_ii(integer x, integer n) {
integer pow; unsigned long int u;
if (n <= 0) {
if (n == 0 || x == 1) pow = 1;
else if (x != -1) pow = x == 0 ? 1/x : 0;
else n = -n;
}
if ((n > 0) || !(n == 0 || x == 1 || x != -1)) {
u = n;
for(pow = 1; ; ) {
if(u & 01) pow *= x;
if(u >>= 1) x *= x;
else break;
}
}
return pow;
}
static integer dmaxloc_(double *w, integer s, integer e, integer *n)
{
double m; integer i, mi;
for(m=w[s-1], mi=s, i=s+1; i<=e; i++)
if (w[i-1]>m) mi=i ,m=w[i-1];
return mi-s+1;
}
static integer smaxloc_(float *w, integer s, integer e, integer *n)
{
float m; integer i, mi;
for(m=w[s-1], mi=s, i=s+1; i<=e; i++)
if (w[i-1]>m) mi=i ,m=w[i-1];
return mi-s+1;
}
static inline void cdotc_(complex *z, integer *n_, complex *x, integer *incx_, complex *y, integer *incy_) {
integer n = *n_, incx = *incx_, incy = *incy_, i;
#ifdef _MSC_VER
_Fcomplex zdotc = {0.0, 0.0};
if (incx == 1 && incy == 1) {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc._Val[0] += conjf(Cf(&x[i]))._Val[0] * Cf(&y[i])._Val[0];
zdotc._Val[1] += conjf(Cf(&x[i]))._Val[1] * Cf(&y[i])._Val[1];
}
} else {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc._Val[0] += conjf(Cf(&x[i*incx]))._Val[0] * Cf(&y[i*incy])._Val[0];
zdotc._Val[1] += conjf(Cf(&x[i*incx]))._Val[1] * Cf(&y[i*incy])._Val[1];
}
}
pCf(z) = zdotc;
}
#else
_Complex float zdotc = 0.0;
if (incx == 1 && incy == 1) {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc += conjf(Cf(&x[i])) * Cf(&y[i]);
}
} else {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc += conjf(Cf(&x[i*incx])) * Cf(&y[i*incy]);
}
}
pCf(z) = zdotc;
}
#endif
static inline void zdotc_(doublecomplex *z, integer *n_, doublecomplex *x, integer *incx_, doublecomplex *y, integer *incy_) {
integer n = *n_, incx = *incx_, incy = *incy_, i;
#ifdef _MSC_VER
_Dcomplex zdotc = {0.0, 0.0};
if (incx == 1 && incy == 1) {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc._Val[0] += conj(Cd(&x[i]))._Val[0] * Cd(&y[i])._Val[0];
zdotc._Val[1] += conj(Cd(&x[i]))._Val[1] * Cd(&y[i])._Val[1];
}
} else {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc._Val[0] += conj(Cd(&x[i*incx]))._Val[0] * Cd(&y[i*incy])._Val[0];
zdotc._Val[1] += conj(Cd(&x[i*incx]))._Val[1] * Cd(&y[i*incy])._Val[1];
}
}
pCd(z) = zdotc;
}
#else
_Complex double zdotc = 0.0;
if (incx == 1 && incy == 1) {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc += conj(Cd(&x[i])) * Cd(&y[i]);
}
} else {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc += conj(Cd(&x[i*incx])) * Cd(&y[i*incy]);
}
}
pCd(z) = zdotc;
}
#endif
static inline void cdotu_(complex *z, integer *n_, complex *x, integer *incx_, complex *y, integer *incy_) {
integer n = *n_, incx = *incx_, incy = *incy_, i;
#ifdef _MSC_VER
_Fcomplex zdotc = {0.0, 0.0};
if (incx == 1 && incy == 1) {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc._Val[0] += Cf(&x[i])._Val[0] * Cf(&y[i])._Val[0];
zdotc._Val[1] += Cf(&x[i])._Val[1] * Cf(&y[i])._Val[1];
}
} else {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc._Val[0] += Cf(&x[i*incx])._Val[0] * Cf(&y[i*incy])._Val[0];
zdotc._Val[1] += Cf(&x[i*incx])._Val[1] * Cf(&y[i*incy])._Val[1];
}
}
pCf(z) = zdotc;
}
#else
_Complex float zdotc = 0.0;
if (incx == 1 && incy == 1) {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc += Cf(&x[i]) * Cf(&y[i]);
}
} else {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc += Cf(&x[i*incx]) * Cf(&y[i*incy]);
}
}
pCf(z) = zdotc;
}
#endif
static inline void zdotu_(doublecomplex *z, integer *n_, doublecomplex *x, integer *incx_, doublecomplex *y, integer *incy_) {
integer n = *n_, incx = *incx_, incy = *incy_, i;
#ifdef _MSC_VER
_Dcomplex zdotc = {0.0, 0.0};
if (incx == 1 && incy == 1) {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc._Val[0] += Cd(&x[i])._Val[0] * Cd(&y[i])._Val[0];
zdotc._Val[1] += Cd(&x[i])._Val[1] * Cd(&y[i])._Val[1];
}
} else {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc._Val[0] += Cd(&x[i*incx])._Val[0] * Cd(&y[i*incy])._Val[0];
zdotc._Val[1] += Cd(&x[i*incx])._Val[1] * Cd(&y[i*incy])._Val[1];
}
}
pCd(z) = zdotc;
}
#else
_Complex double zdotc = 0.0;
if (incx == 1 && incy == 1) {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc += Cd(&x[i]) * Cd(&y[i]);
}
} else {
for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */
zdotc += Cd(&x[i*incx]) * Cd(&y[i*incy]);
}
}
pCd(z) = zdotc;
}
#endif
/* -- translated by f2c (version 20000121).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
/* Table of constant values */
static doublecomplex c_b1 = {1.,0.};
static doublereal c_b12 = 1.;
/* > \brief \b ZPFTRI */
/* =========== DOCUMENTATION =========== */
/* Online html documentation available at */
/* http://www.netlib.org/lapack/explore-html/ */
/* > \htmlonly */
/* > Download ZPFTRI + dependencies */
/* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zpftri.
f"> */
/* > [TGZ]</a> */
/* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/zpftri.
f"> */
/* > [ZIP]</a> */
/* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/zpftri.
f"> */
/* > [TXT]</a> */
/* > \endhtmlonly */
/* Definition: */
/* =========== */
/* SUBROUTINE ZPFTRI( TRANSR, UPLO, N, A, INFO ) */
/* CHARACTER TRANSR, UPLO */
/* INTEGER INFO, N */
/* COMPLEX*16 A( 0: * ) */
/* > \par Purpose: */
/* ============= */
/* > */
/* > \verbatim */
/* > */
/* > ZPFTRI computes the inverse of a complex Hermitian positive definite */
/* > matrix A using the Cholesky factorization A = U**H*U or A = L*L**H */
/* > computed by ZPFTRF. */
/* > \endverbatim */
/* Arguments: */
/* ========== */
/* > \param[in] TRANSR */
/* > \verbatim */
/* > TRANSR is CHARACTER*1 */
/* > = 'N': The Normal TRANSR of RFP A is stored; */
/* > = 'C': The Conjugate-transpose TRANSR of RFP A is stored. */
/* > \endverbatim */
/* > */
/* > \param[in] UPLO */
/* > \verbatim */
/* > UPLO is CHARACTER*1 */
/* > = 'U': Upper triangle of A is stored; */
/* > = 'L': Lower triangle of A is stored. */
/* > \endverbatim */
/* > */
/* > \param[in] N */
/* > \verbatim */
/* > N is INTEGER */
/* > The order of the matrix A. N >= 0. */
/* > \endverbatim */
/* > */
/* > \param[in,out] A */
/* > \verbatim */
/* > A is COMPLEX*16 array, dimension ( N*(N+1)/2 ); */
/* > On entry, the Hermitian matrix A in RFP format. RFP format is */
/* > described by TRANSR, UPLO, and N as follows: If TRANSR = 'N' */
/* > then RFP A is (0:N,0:k-1) when N is even; k=N/2. RFP A is */
/* > (0:N-1,0:k) when N is odd; k=N/2. IF TRANSR = 'C' then RFP is */
/* > the Conjugate-transpose of RFP A as defined when */
/* > TRANSR = 'N'. The contents of RFP A are defined by UPLO as */
/* > follows: If UPLO = 'U' the RFP A contains the nt elements of */
/* > upper packed A. If UPLO = 'L' the RFP A contains the elements */
/* > of lower packed A. The LDA of RFP A is (N+1)/2 when TRANSR = */
/* > 'C'. When TRANSR is 'N' the LDA is N+1 when N is even and N */
/* > is odd. See the Note below for more details. */
/* > */
/* > On exit, the Hermitian inverse of the original matrix, in the */
/* > same storage format. */
/* > \endverbatim */
/* > */
/* > \param[out] INFO */
/* > \verbatim */
/* > INFO is INTEGER */
/* > = 0: successful exit */
/* > < 0: if INFO = -i, the i-th argument had an illegal value */
/* > > 0: if INFO = i, the (i,i) element of the factor U or L is */
/* > zero, and the inverse could not be computed. */
/* > \endverbatim */
/* Authors: */
/* ======== */
/* > \author Univ. of Tennessee */
/* > \author Univ. of California Berkeley */
/* > \author Univ. of Colorado Denver */
/* > \author NAG Ltd. */
/* > \date December 2016 */
/* > \ingroup complex16OTHERcomputational */
/* > \par Further Details: */
/* ===================== */
/* > */
/* > \verbatim */
/* > */
/* > We first consider Standard Packed Format when N is even. */
/* > We give an example where N = 6. */
/* > */
/* > AP is Upper AP is Lower */
/* > */
/* > 00 01 02 03 04 05 00 */
/* > 11 12 13 14 15 10 11 */
/* > 22 23 24 25 20 21 22 */
/* > 33 34 35 30 31 32 33 */
/* > 44 45 40 41 42 43 44 */
/* > 55 50 51 52 53 54 55 */
/* > */
/* > */
/* > Let TRANSR = 'N'. RFP holds AP as follows: */
/* > For UPLO = 'U' the upper trapezoid A(0:5,0:2) consists of the last */
/* > three columns of AP upper. The lower triangle A(4:6,0:2) consists of */
/* > conjugate-transpose of the first three columns of AP upper. */
/* > For UPLO = 'L' the lower trapezoid A(1:6,0:2) consists of the first */
/* > three columns of AP lower. The upper triangle A(0:2,0:2) consists of */
/* > conjugate-transpose of the last three columns of AP lower. */
/* > To denote conjugate we place -- above the element. This covers the */
/* > case N even and TRANSR = 'N'. */
/* > */
/* > RFP A RFP A */
/* > */
/* > -- -- -- */
/* > 03 04 05 33 43 53 */
/* > -- -- */
/* > 13 14 15 00 44 54 */
/* > -- */
/* > 23 24 25 10 11 55 */
/* > */
/* > 33 34 35 20 21 22 */
/* > -- */
/* > 00 44 45 30 31 32 */
/* > -- -- */
/* > 01 11 55 40 41 42 */
/* > -- -- -- */
/* > 02 12 22 50 51 52 */
/* > */
/* > Now let TRANSR = 'C'. RFP A in both UPLO cases is just the conjugate- */
/* > transpose of RFP A above. One therefore gets: */
/* > */
/* > */
/* > RFP A RFP A */
/* > */
/* > -- -- -- -- -- -- -- -- -- -- */
/* > 03 13 23 33 00 01 02 33 00 10 20 30 40 50 */
/* > -- -- -- -- -- -- -- -- -- -- */
/* > 04 14 24 34 44 11 12 43 44 11 21 31 41 51 */
/* > -- -- -- -- -- -- -- -- -- -- */
/* > 05 15 25 35 45 55 22 53 54 55 22 32 42 52 */
/* > */
/* > */
/* > We next consider Standard Packed Format when N is odd. */
/* > We give an example where N = 5. */
/* > */
/* > AP is Upper AP is Lower */
/* > */
/* > 00 01 02 03 04 00 */
/* > 11 12 13 14 10 11 */
/* > 22 23 24 20 21 22 */
/* > 33 34 30 31 32 33 */
/* > 44 40 41 42 43 44 */
/* > */
/* > */
/* > Let TRANSR = 'N'. RFP holds AP as follows: */
/* > For UPLO = 'U' the upper trapezoid A(0:4,0:2) consists of the last */
/* > three columns of AP upper. The lower triangle A(3:4,0:1) consists of */
/* > conjugate-transpose of the first two columns of AP upper. */
/* > For UPLO = 'L' the lower trapezoid A(0:4,0:2) consists of the first */
/* > three columns of AP lower. The upper triangle A(0:1,1:2) consists of */
/* > conjugate-transpose of the last two columns of AP lower. */
/* > To denote conjugate we place -- above the element. This covers the */
/* > case N odd and TRANSR = 'N'. */
/* > */
/* > RFP A RFP A */
/* > */
/* > -- -- */
/* > 02 03 04 00 33 43 */
/* > -- */
/* > 12 13 14 10 11 44 */
/* > */
/* > 22 23 24 20 21 22 */
/* > -- */
/* > 00 33 34 30 31 32 */
/* > -- -- */
/* > 01 11 44 40 41 42 */
/* > */
/* > Now let TRANSR = 'C'. RFP A in both UPLO cases is just the conjugate- */
/* > transpose of RFP A above. One therefore gets: */
/* > */
/* > */
/* > RFP A RFP A */
/* > */
/* > -- -- -- -- -- -- -- -- -- */
/* > 02 12 22 00 01 00 10 20 30 40 50 */
/* > -- -- -- -- -- -- -- -- -- */
/* > 03 13 23 33 11 33 11 21 31 41 51 */
/* > -- -- -- -- -- -- -- -- -- */
/* > 04 14 24 34 44 43 44 22 32 42 52 */
/* > \endverbatim */
/* > */
/* ===================================================================== */
/* Subroutine */ int zpftri_(char *transr, char *uplo, integer *n,
doublecomplex *a, integer *info)
{
/* System generated locals */
integer i__1, i__2;
/* Local variables */
integer k;
logical normaltransr;
extern logical lsame_(char *, char *);
extern /* Subroutine */ int zherk_(char *, char *, integer *, integer *,
doublereal *, doublecomplex *, integer *, doublereal *,
doublecomplex *, integer *);
logical lower;
integer n1, n2;
extern /* Subroutine */ int ztrmm_(char *, char *, char *, char *,
integer *, integer *, doublecomplex *, doublecomplex *, integer *,
doublecomplex *, integer *),
xerbla_(char *, integer *, ftnlen);
logical nisodd;
extern /* Subroutine */ int zlauum_(char *, integer *, doublecomplex *,
integer *, integer *), ztftri_(char *, char *, char *,
integer *, doublecomplex *, integer *);
/* -- LAPACK computational routine (version 3.7.0) -- */
/* -- LAPACK is a software package provided by Univ. of Tennessee, -- */
/* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- */
/* December 2016 */
/* ===================================================================== */
/* Test the input parameters. */
*info = 0;
normaltransr = lsame_(transr, "N");
lower = lsame_(uplo, "L");
if (! normaltransr && ! lsame_(transr, "C")) {
*info = -1;
} else if (! lower && ! lsame_(uplo, "U")) {
*info = -2;
} else if (*n < 0) {
*info = -3;
}
if (*info != 0) {
i__1 = -(*info);
xerbla_("ZPFTRI", &i__1, (ftnlen)6);
return 0;
}
/* Quick return if possible */
if (*n == 0) {
return 0;
}
/* Invert the triangular Cholesky factor U or L. */
ztftri_(transr, uplo, "N", n, a, info);
if (*info > 0) {
return 0;
}
/* If N is odd, set NISODD = .TRUE. */
/* If N is even, set K = N/2 and NISODD = .FALSE. */
if (*n % 2 == 0) {
k = *n / 2;
nisodd = FALSE_;
} else {
nisodd = TRUE_;
}
/* Set N1 and N2 depending on LOWER */
if (lower) {
n2 = *n / 2;
n1 = *n - n2;
} else {
n1 = *n / 2;
n2 = *n - n1;
}
/* Start execution of triangular matrix multiply: inv(U)*inv(U)^C or */
/* inv(L)^C*inv(L). There are eight cases. */
if (nisodd) {
/* N is odd */
if (normaltransr) {
/* N is odd and TRANSR = 'N' */
if (lower) {
/* SRPA for LOWER, NORMAL and N is odd ( a(0:n-1,0:N1-1) ) */
/* T1 -> a(0,0), T2 -> a(0,1), S -> a(N1,0) */
/* T1 -> a(0), T2 -> a(n), S -> a(N1) */
zlauum_("L", &n1, a, n, info);
zherk_("L", "C", &n1, &n2, &c_b12, &a[n1], n, &c_b12, a, n);
ztrmm_("L", "U", "N", "N", &n2, &n1, &c_b1, &a[*n], n, &a[n1],
n);
zlauum_("U", &n2, &a[*n], n, info);
} else {
/* SRPA for UPPER, NORMAL and N is odd ( a(0:n-1,0:N2-1) */
/* T1 -> a(N1+1,0), T2 -> a(N1,0), S -> a(0,0) */
/* T1 -> a(N2), T2 -> a(N1), S -> a(0) */
zlauum_("L", &n1, &a[n2], n, info);
zherk_("L", "N", &n1, &n2, &c_b12, a, n, &c_b12, &a[n2], n);
ztrmm_("R", "U", "C", "N", &n1, &n2, &c_b1, &a[n1], n, a, n);
zlauum_("U", &n2, &a[n1], n, info);
}
} else {
/* N is odd and TRANSR = 'C' */
if (lower) {
/* SRPA for LOWER, TRANSPOSE, and N is odd */
/* T1 -> a(0), T2 -> a(1), S -> a(0+N1*N1) */
zlauum_("U", &n1, a, &n1, info);
zherk_("U", "N", &n1, &n2, &c_b12, &a[n1 * n1], &n1, &c_b12,
a, &n1);
ztrmm_("R", "L", "N", "N", &n1, &n2, &c_b1, &a[1], &n1, &a[n1
* n1], &n1);
zlauum_("L", &n2, &a[1], &n1, info);
} else {
/* SRPA for UPPER, TRANSPOSE, and N is odd */
/* T1 -> a(0+N2*N2), T2 -> a(0+N1*N2), S -> a(0) */
zlauum_("U", &n1, &a[n2 * n2], &n2, info);
zherk_("U", "C", &n1, &n2, &c_b12, a, &n2, &c_b12, &a[n2 * n2]
, &n2);
ztrmm_("L", "L", "C", "N", &n2, &n1, &c_b1, &a[n1 * n2], &n2,
a, &n2);
zlauum_("L", &n2, &a[n1 * n2], &n2, info);
}
}
} else {
/* N is even */
if (normaltransr) {
/* N is even and TRANSR = 'N' */
if (lower) {
/* SRPA for LOWER, NORMAL, and N is even ( a(0:n,0:k-1) ) */
/* T1 -> a(1,0), T2 -> a(0,0), S -> a(k+1,0) */
/* T1 -> a(1), T2 -> a(0), S -> a(k+1) */
i__1 = *n + 1;
zlauum_("L", &k, &a[1], &i__1, info);
i__1 = *n + 1;
i__2 = *n + 1;
zherk_("L", "C", &k, &k, &c_b12, &a[k + 1], &i__1, &c_b12, &a[
1], &i__2);
i__1 = *n + 1;
i__2 = *n + 1;
ztrmm_("L", "U", "N", "N", &k, &k, &c_b1, a, &i__1, &a[k + 1],
&i__2);
i__1 = *n + 1;
zlauum_("U", &k, a, &i__1, info);
} else {
/* SRPA for UPPER, NORMAL, and N is even ( a(0:n,0:k-1) ) */
/* T1 -> a(k+1,0) , T2 -> a(k,0), S -> a(0,0) */
/* T1 -> a(k+1), T2 -> a(k), S -> a(0) */
i__1 = *n + 1;
zlauum_("L", &k, &a[k + 1], &i__1, info);
i__1 = *n + 1;
i__2 = *n + 1;
zherk_("L", "N", &k, &k, &c_b12, a, &i__1, &c_b12, &a[k + 1],
&i__2);
i__1 = *n + 1;
i__2 = *n + 1;
ztrmm_("R", "U", "C", "N", &k, &k, &c_b1, &a[k], &i__1, a, &
i__2);
i__1 = *n + 1;
zlauum_("U", &k, &a[k], &i__1, info);
}
} else {
/* N is even and TRANSR = 'C' */
if (lower) {
/* SRPA for LOWER, TRANSPOSE, and N is even (see paper) */
/* T1 -> B(0,1), T2 -> B(0,0), S -> B(0,k+1), */
/* T1 -> a(0+k), T2 -> a(0+0), S -> a(0+k*(k+1)); lda=k */
zlauum_("U", &k, &a[k], &k, info);
zherk_("U", "N", &k, &k, &c_b12, &a[k * (k + 1)], &k, &c_b12,
&a[k], &k);
ztrmm_("R", "L", "N", "N", &k, &k, &c_b1, a, &k, &a[k * (k +
1)], &k);
zlauum_("L", &k, a, &k, info);
} else {
/* SRPA for UPPER, TRANSPOSE, and N is even (see paper) */
/* T1 -> B(0,k+1), T2 -> B(0,k), S -> B(0,0), */
/* T1 -> a(0+k*(k+1)), T2 -> a(0+k*k), S -> a(0+0)); lda=k */
zlauum_("U", &k, &a[k * (k + 1)], &k, info);
zherk_("U", "C", &k, &k, &c_b12, a, &k, &c_b12, &a[k * (k + 1)
], &k);
ztrmm_("L", "L", "C", "N", &k, &k, &c_b1, &a[k * k], &k, a, &
k);
zlauum_("L", &k, &a[k * k], &k, info);
}
}
}
return 0;
/* End of ZPFTRI */
} /* zpftri_ */
|
the_stack_data/613796.c | /***
* This code is a part of EvoApproxLib library (ehw.fit.vutbr.cz/approxlib) distributed under The MIT License.
* When used, please cite the following article(s): V. Mrazek, S. S. Sarwar, L. Sekanina, Z. Vasicek and K. Roy, "Design of power-efficient approximate multipliers for approximate artificial neural networks," 2016 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), Austin, TX, 2016, pp. 1-7. doi: 10.1145/2966986.2967021
* This file contains a circuit from a sub-set of pareto optimal circuits with respect to the pwr and mae parameters
***/
// MAE% = 0.03 %
// MAE = 4.9
// WCE% = 0.092 %
// WCE = 15
// WCRE% = 1100.00 %
// EP% = 82.61 %
// MRE% = 0.98 %
// MSE = 40
// PDK45_PWR = 0.252 mW
// PDK45_AREA = 454.3 um2
// PDK45_DELAY = 1.23 ns
#include <stdint.h>
#include <stdlib.h>
uint64_t mul7u_03M(uint64_t a, uint64_t b) {
int wa[7];
int wb[7];
uint64_t y = 0;
wa[0] = (a >> 0) & 0x01;
wb[0] = (b >> 0) & 0x01;
wa[1] = (a >> 1) & 0x01;
wb[1] = (b >> 1) & 0x01;
wa[2] = (a >> 2) & 0x01;
wb[2] = (b >> 2) & 0x01;
wa[3] = (a >> 3) & 0x01;
wb[3] = (b >> 3) & 0x01;
wa[4] = (a >> 4) & 0x01;
wb[4] = (b >> 4) & 0x01;
wa[5] = (a >> 5) & 0x01;
wb[5] = (b >> 5) & 0x01;
wa[6] = (a >> 6) & 0x01;
wb[6] = (b >> 6) & 0x01;
int sig_18 = wa[4] & wb[0];
int sig_19 = wa[5] & wb[0];
int sig_20 = wa[6] & wb[0];
int sig_24 = wa[3] & wb[1];
int sig_25 = wa[4] & wb[1];
int sig_26 = wa[5] & wb[1];
int sig_27 = wa[6] & wb[1];
int sig_34 = sig_18 ^ sig_24;
int sig_35 = sig_18 & sig_24;
int sig_36 = sig_19 ^ sig_25;
int sig_37 = sig_19 & sig_25;
int sig_38 = sig_20 ^ sig_26;
int sig_39 = sig_20 & sig_26;
int sig_42 = wa[2] & wb[2];
int sig_43 = wa[3] & wb[2];
int sig_44 = wa[4] & wb[2];
int sig_45 = wa[5] & wb[2];
int sig_46 = wa[6] & wb[2];
int sig_56 = wb[2] & wa[1];
int sig_57 = sig_34 ^ sig_42;
int sig_58 = sig_34 & wb[2];
int sig_60 = sig_57;
int sig_61 = sig_58 & wa[2];
int sig_62 = sig_36 ^ sig_43;
int sig_63 = sig_36 & sig_43;
int sig_64 = sig_62 & sig_35;
int sig_65 = sig_62 ^ sig_35;
int sig_66 = sig_63 ^ sig_64;
int sig_67 = sig_38 ^ sig_44;
int sig_68 = sig_38 & sig_44;
int sig_69 = sig_67 & sig_37;
int sig_70 = sig_67 ^ sig_37;
int sig_71 = sig_68 ^ sig_69;
int sig_72 = sig_27 ^ sig_45;
int sig_73 = sig_27 & sig_45;
int sig_74 = wa[6] & sig_39;
int sig_75 = sig_72 ^ sig_39;
int sig_76 = sig_73 | sig_74;
int sig_77 = wa[0] & wb[0];
int sig_78 = wa[1] & wb[3];
int sig_79 = wa[2] & wb[3];
int sig_80 = wa[3] & wb[3];
int sig_81 = wa[4] & wb[3];
int sig_82 = wa[5] & wb[3];
int sig_83 = wa[6] & wb[3];
int sig_88 = wb[1] & wa[2];
int sig_89 = sig_60 ^ sig_78;
int sig_90 = sig_60 & sig_78;
int sig_91 = sig_89 & sig_56;
int sig_92 = sig_89 ^ sig_56;
int sig_93 = sig_90 ^ sig_91;
int sig_94 = sig_65 ^ sig_79;
int sig_95 = sig_65 & sig_79;
int sig_96 = sig_94 & sig_61;
int sig_97 = sig_94 ^ sig_61;
int sig_98 = sig_95 ^ sig_96;
int sig_99 = sig_70 ^ sig_80;
int sig_100 = sig_70 & sig_80;
int sig_101 = sig_99 & sig_66;
int sig_102 = sig_99 ^ sig_66;
int sig_103 = sig_100 ^ sig_101;
int sig_104 = sig_75 ^ sig_81;
int sig_105 = sig_75 & sig_81;
int sig_106 = sig_104 & sig_71;
int sig_107 = sig_104 ^ sig_71;
int sig_108 = sig_105 | sig_106;
int sig_109 = sig_46 ^ sig_82;
int sig_110 = sig_46 & sig_82;
int sig_111 = sig_109 & sig_76;
int sig_112 = sig_109 ^ sig_76;
int sig_113 = sig_110 | sig_111;
int sig_114 = wa[0] & wb[4];
int sig_115 = wa[1] & wb[4];
int sig_116 = wa[2] & wb[4];
int sig_117 = wa[3] & wb[4];
int sig_118 = wa[4] & wb[4];
int sig_119 = wa[5] & wb[4];
int sig_120 = wa[6] & wb[4];
int sig_121 = sig_92 ^ sig_114;
int sig_122 = sig_92 & sig_114;
int sig_123 = sig_121 & sig_88;
int sig_124 = sig_121 ^ sig_88;
int sig_125 = sig_122 ^ sig_123;
int sig_126 = sig_97 ^ sig_115;
int sig_127 = sig_97 & sig_115;
int sig_128 = sig_126 & sig_93;
int sig_129 = sig_126 ^ sig_93;
int sig_130 = sig_127 ^ sig_128;
int sig_131 = sig_102 ^ sig_116;
int sig_132 = sig_102 & sig_116;
int sig_133 = sig_131 & sig_98;
int sig_134 = sig_131 ^ sig_98;
int sig_135 = sig_132 | sig_133;
int sig_136 = sig_107 ^ sig_117;
int sig_137 = sig_107 & sig_117;
int sig_138 = sig_136 & sig_103;
int sig_139 = sig_136 ^ sig_103;
int sig_140 = sig_137 ^ sig_138;
int sig_141 = sig_112 ^ sig_118;
int sig_142 = sig_112 & sig_118;
int sig_143 = sig_141 & sig_108;
int sig_144 = sig_141 ^ sig_108;
int sig_145 = sig_142 ^ sig_143;
int sig_146 = sig_83 ^ sig_119;
int sig_147 = sig_83 & sig_119;
int sig_148 = sig_146 & sig_113;
int sig_149 = sig_146 ^ sig_113;
int sig_150 = sig_147 ^ sig_148;
int sig_151 = wa[0] & wb[5];
int sig_152 = wa[1] & wb[5];
int sig_153 = wa[2] & wb[5];
int sig_154 = wa[3] & wb[5];
int sig_155 = wa[4] & wb[5];
int sig_156 = wa[5] & wb[5];
int sig_157 = wa[6] & wb[5];
int sig_158 = sig_129 ^ sig_151;
int sig_159 = sig_129 & sig_151;
int sig_160 = sig_158 & sig_125;
int sig_161 = sig_158 ^ sig_125;
int sig_162 = sig_159 | sig_160;
int sig_163 = sig_134 ^ sig_152;
int sig_164 = sig_134 & sig_152;
int sig_165 = sig_163 & sig_130;
int sig_166 = sig_163 ^ sig_130;
int sig_167 = sig_164 | sig_165;
int sig_168 = sig_139 ^ sig_153;
int sig_169 = sig_139 & sig_153;
int sig_170 = sig_168 & sig_135;
int sig_171 = sig_168 ^ sig_135;
int sig_172 = sig_169 | sig_170;
int sig_173 = sig_144 ^ sig_154;
int sig_174 = sig_144 & sig_154;
int sig_175 = sig_173 & sig_140;
int sig_176 = sig_173 ^ sig_140;
int sig_177 = sig_174 | sig_175;
int sig_178 = sig_149 ^ sig_155;
int sig_179 = sig_149 & sig_155;
int sig_180 = sig_178 & sig_145;
int sig_181 = sig_178 ^ sig_145;
int sig_182 = sig_179 ^ sig_180;
int sig_183 = sig_120 ^ sig_156;
int sig_184 = sig_120 & sig_156;
int sig_185 = sig_183 & sig_150;
int sig_186 = sig_183 ^ sig_150;
int sig_187 = sig_184 | sig_185;
int sig_188 = wa[0] & wb[6];
int sig_189 = wa[1] & wb[6];
int sig_190 = wa[2] & wb[6];
int sig_191 = wa[3] & wb[6];
int sig_192 = wa[4] & wb[6];
int sig_193 = wa[5] & wb[6];
int sig_194 = wa[6] & wb[6];
int sig_195 = sig_166 ^ sig_188;
int sig_196 = sig_166 & sig_188;
int sig_197 = sig_195 & sig_162;
int sig_198 = sig_195 ^ sig_162;
int sig_199 = sig_196 ^ sig_197;
int sig_200 = sig_171 ^ sig_189;
int sig_201 = sig_171 & sig_189;
int sig_202 = sig_200 & sig_167;
int sig_203 = sig_200 ^ sig_167;
int sig_204 = sig_201 | sig_202;
int sig_205 = sig_176 ^ sig_190;
int sig_206 = sig_176 & sig_190;
int sig_207 = sig_205 & sig_172;
int sig_208 = sig_205 ^ sig_172;
int sig_209 = sig_206 | sig_207;
int sig_210 = sig_181 ^ sig_191;
int sig_211 = sig_181 & sig_191;
int sig_212 = sig_210 & sig_177;
int sig_213 = sig_210 ^ sig_177;
int sig_214 = sig_211 ^ sig_212;
int sig_215 = sig_186 ^ sig_192;
int sig_216 = sig_186 & sig_192;
int sig_217 = sig_215 & sig_182;
int sig_218 = sig_215 ^ sig_182;
int sig_219 = sig_216 | sig_217;
int sig_220 = sig_157 ^ sig_193;
int sig_221 = sig_157 & sig_193;
int sig_222 = sig_220 & sig_187;
int sig_223 = sig_220 ^ sig_187;
int sig_224 = sig_221 | sig_222;
int sig_225 = sig_203 ^ sig_199;
int sig_226 = sig_203 & sig_199;
int sig_227 = sig_208 ^ sig_204;
int sig_228 = sig_208 & sig_204;
int sig_229 = sig_227 & sig_226;
int sig_230 = sig_227 ^ sig_226;
int sig_231 = sig_228 | sig_229;
int sig_232 = sig_213 ^ sig_209;
int sig_233 = sig_213 & sig_209;
int sig_234 = sig_232 & sig_231;
int sig_235 = sig_232 ^ sig_231;
int sig_236 = sig_233 | sig_234;
int sig_237 = sig_218 ^ sig_214;
int sig_238 = sig_218 & sig_214;
int sig_239 = sig_237 & sig_236;
int sig_240 = sig_237 ^ sig_236;
int sig_241 = sig_238 | sig_239;
int sig_242 = sig_223 ^ sig_219;
int sig_243 = sig_223 & sig_219;
int sig_244 = sig_242 & sig_241;
int sig_245 = sig_242 ^ sig_241;
int sig_246 = sig_243 | sig_244;
int sig_247 = sig_194 ^ sig_224;
int sig_248 = wb[6] & sig_224;
int sig_249 = sig_247 & sig_246;
int sig_250 = sig_247 ^ sig_246;
int sig_251 = sig_248 ^ sig_249;
y |= (sig_175 & 0x01) << 0; // default output
y |= (sig_221 & 0x01) << 1; // default output
y |= (sig_77 & 0x01) << 2; // default output
y |= (sig_77 & 0x01) << 3; // default output
y |= (sig_124 & 0x01) << 4; // default output
y |= (sig_161 & 0x01) << 5; // default output
y |= (sig_198 & 0x01) << 6; // default output
y |= (sig_225 & 0x01) << 7; // default output
y |= (sig_230 & 0x01) << 8; // default output
y |= (sig_235 & 0x01) << 9; // default output
y |= (sig_240 & 0x01) << 10; // default output
y |= (sig_245 & 0x01) << 11; // default output
y |= (sig_250 & 0x01) << 12; // default output
y |= (sig_251 & 0x01) << 13; // default output
return y;
}
|
the_stack_data/34512611.c | #include <stdio.h>
void main () {
int i, count = 0;
for (i = 0; i <= 15; i++) {
if (i > 0 && i % 3 == 0 && count < 5) {
printf("%i\n", i);
count++;
}
}
} |
the_stack_data/192330573.c | /*
* Copyright © 2018 Alexey Dobriyan <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* Test readlink /proc/self/map_files/... with minimum address. */
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/mman.h>
#include <stdlib.h>
static void pass(const char *fmt, unsigned long a, unsigned long b)
{
char name[64];
char buf[64];
snprintf(name, sizeof(name), fmt, a, b);
if (readlink(name, buf, sizeof(buf)) == -1)
exit(1);
}
static void fail(const char *fmt, unsigned long a, unsigned long b)
{
char name[64];
char buf[64];
snprintf(name, sizeof(name), fmt, a, b);
if (readlink(name, buf, sizeof(buf)) == -1 && errno == ENOENT)
return;
exit(1);
}
int main(void)
{
const unsigned int PAGE_SIZE = sysconf(_SC_PAGESIZE);
#ifdef __arm__
unsigned long va = 2 * PAGE_SIZE;
#else
unsigned long va = 0;
#endif
void *p;
int fd;
unsigned long a, b;
fd = open("/dev/zero", O_RDONLY);
if (fd == -1)
return 1;
p = mmap((void *)va, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0);
if (p == MAP_FAILED) {
if (errno == EPERM)
return 2;
return 1;
}
a = (unsigned long)p;
b = (unsigned long)p + PAGE_SIZE;
pass("/proc/self/map_files/%lx-%lx", a, b);
fail("/proc/self/map_files/ %lx-%lx", a, b);
fail("/proc/self/map_files/%lx -%lx", a, b);
fail("/proc/self/map_files/%lx- %lx", a, b);
fail("/proc/self/map_files/%lx-%lx ", a, b);
fail("/proc/self/map_files/0%lx-%lx", a, b);
fail("/proc/self/map_files/%lx-0%lx", a, b);
if (sizeof(long) == 4) {
fail("/proc/self/map_files/100000000%lx-%lx", a, b);
fail("/proc/self/map_files/%lx-100000000%lx", a, b);
} else if (sizeof(long) == 8) {
fail("/proc/self/map_files/10000000000000000%lx-%lx", a, b);
fail("/proc/self/map_files/%lx-10000000000000000%lx", a, b);
} else
return 1;
return 0;
}
|
the_stack_data/34513599.c | /**
* Name: Minhas Kamal (BSSE0509, IIT, DU)
* Date: 26-Mar-2013
**/
#include <stdio.h>
void strlen(int s1);
void strcat(int s1, int s2);
void strcmp(int s1, int s2);
char s[20][201];
int main()
{
int x=20;
//scanf("%d", &x);
//printf("Enter the number of strings: ");
//char s[x][201];
int y;
for(y=1; y<=x; y++)
{
printf("Enter string No-%d (not more than 200 chars): ", y);
gets(s[y]);
}
for( ; ; )
{
int c;
printf("Enter your choice:\npress\t1 to know the length of string\n\t\t");
printf("2 to add two strings\n\t\t3 to compare two strings\n\t\t");
printf("4 to quit.\n\t\t");
scanf("%d", &c);
if(c==1)
{
int s1;
printf("Enter string number: ");
scanf("%d", &s1);
strlen(s1);
}
else if(c==2)
{
int s1;
printf("Enter first string number: ");
scanf("%d", &s1);
int s2;
printf("Enter second string number: ");
scanf("%d", &s2);
strcat(s1, s2);
}
else if(c==3)
{
int s1;
printf("Enter first string number: ");
scanf("%d", &s1);
int s2;
printf("Enter second string number: ");
scanf("%d", &s2);
strcmp(s1, s2);
}
else if(c==4) break;
else if(c<1 || c>4) {printf("Wrong input!"); continue ;}
}
return 0;
}
void strlen(int s1)
{
int c1;
for(c1=0; s[s1][c1]!='0'; c1++);
printf("Number of chars: %d", c1);
return ;
}
void strcat(int s1, int s2)
{
int c1=0;
char ns[402];
int y=0;
for( ; s[s1][c1]!='0'; )
{
ns[y] = s[s1][c1];
c1++;
y++;
}
int z=y, x=0;
for( ; s[s2][x]; )
{
ns[z] = s[s2][x];
x++;
z++;
}
ns[z]=0;
int v=0;
for( ; ns[v]; v++)printf("%c", ns[v]);
return ;
}
void strcmp(int s1, int s2)
{
int f=1, c1=0, c2=0;
for( ; s[s1][c1]!=0 && s[s2][c2]!=0; )
{
if(s[s1][c1] != s[s2][c2]) f=0;
c1++;
c2++;
}
if(s[s1][c1]==0 && s[s2][c2]!=0) f=-1;
else if(s[s2][c2]==0 && s[s1][c1]!=0) f=2;
if(f==1) printf("String matched.");
else if(f==2) printf("The first one is bigger.");
else if(f==-1) printf("The second one is bigger.");
else if(f==0) printf("Size is same but doesn't match.");
return ;
}
|
the_stack_data/583575.c | #include <stdio.h>
#include <unistd.h>
#define BUFSIZER1 512
#define BUFSIZER2 ((BUFSIZER1/2) - 8)
int main(int argc, char **argv) {
char *buf1R1;
char *buf2R1;
char *buf2R2;
char *buf3R2;
buf1R1 = (char *) malloc(BUFSIZER1);
buf2R1 = (char *) malloc(BUFSIZER1);
free(buf2R1);
buf2R2 = (char *) malloc(BUFSIZER2);
buf3R2 = (char *) malloc(BUFSIZER2);
strncpy(buf2R1, argv[1], BUFSIZER1-1);
free(buf1R1);
free(buf2R2);
free(buf3R2);
}
|
the_stack_data/51701223.c | #include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include "syscall.h"
#ifndef PS4_LIBKERNEL_SYS
int symlink(const char *existing, const char *new)
{
#ifdef PS4
errno = ENOSYS;
return -1;
#else
#ifdef SYS_symlink
return syscall(SYS_symlink, existing, new);
#else
return syscall(SYS_symlinkat, existing, AT_FDCWD, new);
#endif
#endif
}
#endif
|
the_stack_data/124697.c | /* { dg-options "-fno-builtin-abort" } */
int a, b, m, n, o, p, s, u, i;
char c, q, y;
short d;
unsigned char e;
static int f, h;
static short g, r, v;
unsigned t;
extern void abort ();
int
fn1 (int p1)
{
return a ? p1 : p1 + a;
}
unsigned char
fn2 (unsigned char p1, int p2)
{
return p2 >= 2 ? p1 : p1 >> p2;
}
static short
fn3 ()
{
int w, x = 0;
for (; p < 31; p++)
{
s = fn1 (c | ((1 && c) == c));
t = fn2 (s, x);
c = (unsigned) c > -(unsigned) ((o = (m = d = t) == p) <= 4UL) && n;
v = -c;
y = 1;
for (; y; y++)
e = v == 1;
d = 0;
for (; h != 2;)
{
for (;;)
{
if (!m)
abort ();
r = 7 - f;
x = e = i | r;
q = u * g;
w = b == q;
if (w)
break;
}
break;
}
}
return x;
}
int
main ()
{
fn3 ();
return 0;
}
|
the_stack_data/162642697.c | /************************
###
### C listen 8080 Web
### 2020-10-18
*/
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <stdio.h>
#define PORT 8080
int main() {
printf("\n\033[0;33mRun Server port:%d\033[0m\n", PORT);
int server_fd = socket(AF_INET, SOCK_STREAM, 0);
if(server_fd < 0){
printf("Error in connection.\n");
exit(1);
}
struct sockaddr_in server;
server.sin_family = AF_INET;
server.sin_port = htons(PORT);
server.sin_addr.s_addr = htonl(INADDR_ANY);
bind(server_fd, (struct sockaddr*) &server, sizeof(server));
listen(server_fd, 128);
while (1) {
int client_fd = accept(server_fd, NULL, NULL);
char response[] =
"HTTP/1.1 200 OK\r\nContent-Length: 21\r\nConnection: close\r\n\r\n<h1>Hello, world!</h1>";
for (int sent = 0; sent < sizeof(response); sent += send(client_fd, response+sent, sizeof(response)-sent, 0));
close(client_fd);
}
return 0;
}
|
the_stack_data/107953895.c | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : [email protected]
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
#include<stdio.h>
#include<stdlib.h>
int divCount(int n)
{
int hash[1000000]={0},p,i,nod,c;
for(i=4;i<n;i+=2){
hash[i] = 1;
}
for (p = 3; p * p < n; p+=2) {
if (hash[p] == 0) {
for (i = p * 2; i < n; i += p) {
hash[i] = 1;
}
}
}
nod = 1;
for (p = 2; p <= n; p++) {
if (!hash[p]) {
c = 0;
if (n % p == 0) {
while (n % p == 0) {
n /= p;
c++;
}
nod *= c + 1;
}
}
}
return nod;
}
void merge(int arr[], int l, int m, int r)
{
int i, j, k, n1 = m - l + 1, n2 = r - m;
int L[n1], R[n2];
for (i = 0; i < n1; i++) L[i] = arr[l + i];
for (j = 0; j < n2; j++) R[j] = arr[m + 1+ j];
i = 0;
j = 0;
k = l;
while (i < n1 && j < n2) {
if(L[i] <= R[j]) arr[k++] = L[i++];
else arr[k++] = R[j++];
}
while (i < n1) arr[k++] = L[i++];
while (j < n2) arr[k++] = R[j++];
}
void mergeSort(int arr[], int l, int r)
{
if (l < r)
{
int m = l+(r-l)/2;
mergeSort(arr, l, m);
mergeSort(arr, m+1, r);
merge(arr, l, m, r);
}
}
int main()
{
int a[100000],b[100000],c[100000],n,i,t,cs=0,j,k;
for(i=1;i<=1000;i++){
a[i]=divCount(i);
b[i]=divCount(i);
}
mergeSort(a,1,1000);
j=1;
for(k=1;k<=1000;k++){
for(i=1000;i>0;i--){
if(a[k]==b[i]){
b[i]=-1;
c[j++]=i;
}
}
}
scanf("%d",&t);
while(t--){
scanf("%d",&n);
printf("Case %d: %d\n",++cs,c[n]);
}
return 0;
}
|
the_stack_data/1115842.c | #include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
struct list
{
int n;
struct list *next;
};
struct word
{
char *wd;
struct list *ls;
struct word *left;
struct word *right;
};
struct word *addtree(struct word *, char *, int);
struct list *addlist(struct list *, int);
struct word *wordalloc(char *, int);
struct list *listalloc(int);
struct word *addtree(struct word *w, char *s, int n)
{
int cond;
if (w == NULL)
{
return wordalloc(s, n);
}
else if ((cond = strcmp(s, w->wd)) < 0)
{
w->left = addtree(w->left, s, n);
}
else if (cond == 0)
{
w->ls = addlist(w->ls, n);
}
else
{
w->right = addtree(w->right, s, n);
}
return w;
}
struct list *addlist(struct list *ls, int n)
{
if (ls == NULL)
{
return listalloc(n);
}
else
{
if (ls->next == NULL)
{
ls->next = listalloc(n);
}
else
{
addlist(ls->next, n);
}
}
return ls;
}
struct word *wordalloc(char *wd, int n)
{
struct word *w = (struct word *)malloc(sizeof(struct word));
w->left = w->right = NULL;
w->ls = listalloc(n);
char *s = (char *)malloc((strlen(wd)+1) * sizeof(char));
w->wd = strcpy(s, wd);
return w;
}
struct list *listalloc(int n)
{
struct list *ls = (struct list *)malloc(sizeof(struct list));
ls->n = n;
ls->next = NULL;
return ls;
}
int getline2(char *, int);
int getword(char *, char *, int *);
int getline2(char *s, int lim)
{
int c;
int i = 0;
while ((c = getchar()) != EOF && c != '\n' && --lim > 0)
{
*(s+i++) = c;
}
*(s+i) = '\0';
return i;
}
int getword(char *dst_start, char *src, int *i)
{
int c;
char *dst = dst_start;
while (isspace(c = *(src+(*i)++)))
{
}
if (c != EOF)
{
*dst++ = c;
}
if (!isalpha(c))
{
*dst = '\0';
return c;
}
while (isalpha((c = *(src+(*i)++))))
{
*dst++ = c;
}
*i = *i - 1;
*dst = '\0';
return dst_start[0];
}
void treeprint(struct word *);
void listprint(struct list *);
void treeprint(struct word *root)
{
if (root != NULL)
{
treeprint(root->left);
printf("\nword: %s\n", root->wd);
listprint(root->ls);
treeprint(root->right);
}
}
void listprint(struct list *ls)
{
if (ls != NULL)
{
printf("%d ", ls->n);
listprint(ls->next);
}
}
int main()
{
struct word *root = NULL;
char line[1000], word[1000];
int len;
int i = 0;
int nline = 0;
while ((len = getline2(line, 1000)) > 0)
{
while ((getword(word, line, &i)) != EOF && word[0] != '\0')
{
if (isalpha(word[0]))
{
root = addtree(root, word, nline);
}
}
i = 0;
nline++;
}
treeprint(root);
printf("\n");
return 0;
}
|
the_stack_data/90763389.c | //testar comando crlscr
#include <stdlib.h>
int
main (void)
{
system ("clear");
}
|
the_stack_data/1074275.c | #include <stdio.h>
void main()
{
char x;
x=sizeof(char);
printf("%d",(int)x);
getch();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.