diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2009-07-16 20:03:29 +0200 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2009-07-16 20:03:29 +0200 |
commit | 64e09ae0d4ab16682b8a4bbbf6ae524d67cd521a (patch) | |
tree | 8d40fda8bcc99944578ff6164c6c9d651a41359c /isl_sample.c | |
parent | 61eefa8fe09982393c83beb48b487509c4135b13 (diff) | |
download | isl-64e09ae0d4ab16682b8a4bbbf6ae524d67cd521a.tar.gz isl-64e09ae0d4ab16682b8a4bbbf6ae524d67cd521a.tar.bz2 isl-64e09ae0d4ab16682b8a4bbbf6ae524d67cd521a.zip |
isl_tab: drop isl_ctx argument where not absolutely required
Diffstat (limited to 'isl_sample.c')
-rw-r--r-- | isl_sample.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/isl_sample.c b/isl_sample.c index a9feb64d..153b1490 100644 --- a/isl_sample.c +++ b/isl_sample.c @@ -280,13 +280,13 @@ static enum isl_lp_result basic_set_range(struct isl_basic_set *bset, return isl_lp_empty; tab = isl_tab_from_basic_set(bset); - res = isl_tab_min(bset->ctx, tab, f, denom, min, NULL, 0); + res = isl_tab_min(tab, f, denom, min, NULL, 0); if (res != isl_lp_ok) goto done; - if (isl_tab_sample_is_integer(bset->ctx, tab)) { + if (isl_tab_sample_is_integer(tab)) { isl_vec_free(bset->sample); - bset->sample = isl_tab_get_sample_value(bset->ctx, tab); + bset->sample = isl_tab_get_sample_value(tab); if (!bset->sample) goto error; isl_int_set(*max, *min); @@ -295,22 +295,22 @@ static enum isl_lp_result basic_set_range(struct isl_basic_set *bset, dim = isl_basic_set_total_dim(bset); isl_seq_neg(f, f, 1 + dim); - res = isl_tab_min(bset->ctx, tab, f, denom, max, NULL, 0); + res = isl_tab_min(tab, f, denom, max, NULL, 0); isl_seq_neg(f, f, 1 + dim); isl_int_neg(*max, *max); - if (isl_tab_sample_is_integer(bset->ctx, tab)) { + if (isl_tab_sample_is_integer(tab)) { isl_vec_free(bset->sample); - bset->sample = isl_tab_get_sample_value(bset->ctx, tab); + bset->sample = isl_tab_get_sample_value(tab); if (!bset->sample) goto error; } done: - isl_tab_free(bset->ctx, tab); + isl_tab_free(tab); return res; error: - isl_tab_free(bset->ctx, tab); + isl_tab_free(tab); return isl_lp_error; } @@ -558,8 +558,8 @@ static struct isl_vec *rational_sample(struct isl_basic_set *bset) return NULL; tab = isl_tab_from_basic_set(bset); - sample = isl_tab_get_sample_value(bset->ctx, tab); - isl_tab_free(bset->ctx, tab); + sample = isl_tab_get_sample_value(tab); + isl_tab_free(tab); isl_basic_set_free(bset); |