<commit_before>/**
 * DSVerifier - Digital Systems Verifier (Zero Input Limit Cycle)
 *
 * Federal University of Amazonas - UFAM
 *
 * Authors:       <NAME> <<EMAIL>>
 *
 * ------------------------------------------------------
 *
 * ------------------------------------------------------
*/

extern digital_system ds;
extern implementation impl;

int verify_zero_input_limit_cycle(void){

	OVERFLOW_MODE = 3; /* WRAPAROUND */

	int i;
	int Set_xsize_at_least_two_times_Na = 2 * ds.a_size;
	printf("X_SIZE must be at least 2 * ds.a_size");
	assert(X_SIZE_VALUE >= Set_xsize_at_least_two_times_Na);

	/* check the realization */
	#if	((REALIZATION == DFI) || (REALIZATION == DFII) || (REALIZATION == TDFII))
		fxp32_t a_fxp[ds.a_size];
		fxp32_t b_fxp[ds.b_size];
		/* quantize the denominator using fxp */
		fxp_double_to_fxp_array(ds.a, a_fxp, ds.a_size);
		/* quantize the numerator using fxp */
		fxp_double_to_fxp_array(ds.b, b_fxp, ds.b_size);
	#elif ((REALIZATION == DDFI)||(REALIZATION == DDFII)||(REALIZATION == TDDFII))
		double da[ds.a_size];
		double db[ds.b_size];
		/* generate delta coefficients for denominator */
		generate_delta_coefficients(ds.a, da, ds.a_size, impl.delta);
		/* generate delta coefficients for numerator */
		generate_delta_coefficients(ds.b, db, ds.b_size, impl.delta);
		fxp32_t a_fxp[ds.a_size];
		fxp32_t b_fxp[ds.b_size];
		/* quantize delta denominators using fxp */
		fxp_double_to_fxp_array(da, a_fxp, ds.a_size);
		/* quantize delta numerator using fxp */
		fxp_double_to_fxp_array(db, b_fxp, ds.b_size);
	#elif ((REALIZATION == CDFI) || (REALIZATION == CDFII) || (REALIZATION == CTDFII))<commit_msg>adjusting zero lco for delta transfer function<commit_after>/**
 * DSVerifier - Digital Systems Verifier (Zero Input Limit Cycle)
 *
 * Federal University of Amazonas - UFAM
 *
 * Authors:       <NAME> <<EMAIL>>
 *
 * ------------------------------------------------------
 *
 * ------------------------------------------------------
*/

extern digital_system ds;
extern implementation impl;

int verify_zero_input_limit_cycle(void){

	OVERFLOW_MODE = 3; /* WRAPAROUND */

	int i;
	int Set_xsize_at_least_two_times_Na = 2 * ds.a_size;
	printf("X_SIZE must be at least 2 * ds.a_size");
	assert(X_SIZE_VALUE >= Set_xsize_at_least_two_times_Na);

	/* check the realization */
	#if	((REALIZATION == DFI) || (REALIZATION == DFII) || (REALIZATION == TDFII))
		fxp32_t a_fxp[ds.a_size];
		fxp32_t b_fxp[ds.b_size];
		/* quantize the denominator using fxp */
		fxp_double_to_fxp_array(ds.a, a_fxp, ds.a_size);
		/* quantize the numerator using fxp */
		fxp_double_to_fxp_array(ds.b, b_fxp, ds.b_size);
	#elif ((REALIZATION == DDFI)||(REALIZATION == DDFII)||(REALIZATION == TDDFII))
		double da[ds.a_size];
		double db[ds.b_size];
		get_delta_transfer_function(ds.b, db, ds.b_size,ds.a, da, ds.a_size, impl.delta);
		fxp32_t a_fxp[ds.a_size];
		fxp32_t b_fxp[ds.b_size];
		/* quantize delta denominators using fxp */
		fxp_double_to_fxp_array(da, a_fxp, ds.a_size);
		/* quantize delta numerator using fxp */
		fxp_double_to_fxp_array(db, b_fxp, ds.b_size);
	#elif ((REALIZATION == CDFI) || (REALIZATION == CDFII) || (REALIZATION == CTDFII))
{'fraction_non_alphanumeric': 0.1957821844507397, 'fraction_numerical': 0.006924771797293044, 'mean_word_length': 3.2148541114058355, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2223034', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1213, 'n_words': 247}