15#define ARRAY_SIZE(array) (sizeof(array)/sizeof(*array))
17#ifdef USE_SMALL_INT_OPT
23 uint32_t demotedhash, promotedhash;
39 assert(demotedhash == promotedhash);
48} int_single_value_tests[] = {
49 { &int_test_hash,
"0" },
50 { &int_test_hash,
"1" },
51 { &int_test_hash,
"-1" },
52 { &int_test_hash,
"23" },
53 { &int_test_hash,
"-23" },
54 { &int_test_hash,
"107" },
55 { &int_test_hash,
"32768" },
56 { &int_test_hash,
"2147483647" },
57 { &int_test_hash,
"-2147483647" },
58 { &int_test_hash,
"2147483648" },
59 { &int_test_hash,
"-2147483648" },
66 for (i = 0; i <
ARRAY_SIZE(int_single_value_tests); i += 1) {
72 (*int_single_value_tests[i].fn)(
val);
87 for (j = 0; j < 4; ++j) {
118 for (j = 0; j < 8; ++j) {
138 (*fn)(int1, int2, int3);
181 (*fn)(int1, int2, int3);
222 { &
int_test_neg,
"-9223372036854775807",
"9223372036854775807" },
223 { &
int_test_neg,
"-9223372036854775808",
"9223372036854775808" },
230 { &
int_test_abs,
"9223372036854775807",
"9223372036854775807" },
231 { &
int_test_abs,
"9223372036854775808",
"-9223372036854775808" },
237 unsigned long rhsulong;
345 unsigned long rhsulong;
364 unsigned long rhsulong;
501 { &
int_test_sum,
"2147483647",
"1073741823",
"1073741824" },
502 { &
int_test_sum,
"-2147483648",
"-1073741824",
"-1073741824" },
520 "4611686014132420609",
"2147483647",
"2147483647" },
522 "-4611686014132420609",
"-2147483647",
"2147483647" },
525 "4611686016279904256",
"2147483647",
"2147483648" },
527 "-4611686016279904256",
"-2147483647",
"2147483648" },
529 "-4611686016279904256",
"2147483647",
"-2147483648" },
531 "4611686016279904256",
"-2147483647",
"-2147483648" },
534 "9223372036854775807",
"9223372036854775807" },
536 "-9223372036854775807",
"9223372036854775807" },
539 "9223372036854775807",
"9223372036854775808" },
541 "-9223372036854775807",
"9223372036854775808" },
543 "9223372036854775807",
"-9223372036854775808" },
545 "-9223372036854775807",
"-9223372036854775808" },
548 "18446744073709551615",
"18446744073709551615" },
550 "-18446744073709551615",
"18446744073709551615" },
553 "18446744073709551615",
"18446744073709551616" },
555 "-18446744073709551615",
"18446744073709551616" },
557 "18446744073709551615",
"-18446744073709551616" },
559 "-18446744073709551615",
"-18446744073709551616" },
602 { &
int_test_lcm,
"55340232221128654842",
"6",
"9223372036854775807" },
604 { &
int_test_lcm,
"27670116110564327424",
"6",
"-9223372036854775808" },
605 { &
int_test_gcd,
"1",
"18446744073709551616",
"18446744073709551615" },
606 { &
int_test_lcm,
"340282366920938463444927863358058659840",
607 "18446744073709551616",
"18446744073709551615" },
polly print import Polly Print Scop import result
__isl_export __isl_give ISL_HMAP __isl_take ISL_KEY __isl_take ISL_VAL * val
#define isl_int_divexact_ui(r, i, j)
#define isl_int_gcd(r, i, j)
#define isl_int_neg(r, i)
#define isl_int_add(r, i, j)
#define isl_int_cmp(i, j)
#define isl_int_cdiv_q_ui(r, i, j)
#define isl_int_is_divisible_by(i, j)
#define isl_int_fdiv_r(r, i, j)
#define isl_int_tdiv_q(r, i, j)
#define isl_int_set(r, i)
#define isl_int_cdiv_q(r, i, j)
#define isl_int_fits_slong(r)
#define isl_int_mul_ui(r, i, j)
#define isl_int_fits_ulong(r)
#define isl_int_lcm(r, i, j)
#define isl_int_abs_cmp(i, j)
#define isl_int_fdiv_q_ui(r, i, j)
#define isl_int_divexact(r, i, j)
#define isl_int_mul_si(r, i, j)
#define isl_int_mul(r, i, j)
#define isl_int_get_si(r)
#define isl_int_read(r, s)
#define isl_int_fdiv_q(r, i, j)
#define isl_int_sub(r, i, j)
#define isl_int_abs(r, i)
#define isl_int_cmp_si(i, si)
#define isl_int_hash(v, h)
#define isl_int_get_ui(r)
void isl_sioimath_try_demote(isl_sioimath_ptr dst)
void isl_sioimath_promote(isl_sioimath_ptr dst)
static void int_test_divexact(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_single_value()
static void int_test_lcm(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_product(isl_int product, isl_int factor1, isl_int factor2)
static void int_test_cdiv(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_fdiv_r(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_tdiv(isl_int expected, isl_int lhs, isl_int rhs)
struct @89 int_unary_tests[]
static void int_test_gcd(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_mul(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_sub(isl_int expected, isl_int lhs, isl_int rhs)
#define ARRAY_SIZE(array)
static void int_test_fdiv(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_cmps(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_abs(isl_int expected, isl_int arg)
void(* fn)(isl_int, isl_int)
static void int_test_sum(isl_int sum, isl_int term1, isl_int term2)
static void invoke_alternate_representations_2args(char *arg1, char *arg2, void(*fn)(isl_int, isl_int))
static void int_test_abs_cmp(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_divisible(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_neg(isl_int expected, isl_int arg)
static void int_test_add(isl_int expected, isl_int lhs, isl_int rhs)
static void int_test_cmp(int exp, isl_int lhs, isl_int rhs)
static void invoke_alternate_representations_3args(char *arg1, char *arg2, char *arg3, void(*fn)(isl_int, isl_int, isl_int))
struct @90 int_binary_tests[]