Skip to content

Commit 675237a

Browse files
committed
spaces
1 parent 2034821 commit 675237a

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

src/msolve/iofiles.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static int32_t get_nvars(const char *fn)
380380
char * line = NULL;
381381
char * line2 = NULL;
382382
size_t len;
383-
nvars_t nvars = -1;
383+
nvars_t nvars = -1;
384384

385385
/* number of variables is read from first line, it is 1 + (number of commata) */
386386
if (getline(&line, &len, fh) != -1)
@@ -612,11 +612,11 @@ static void remove_trailing_delim(char *line, ssize_t *len, char delim) {
612612
}
613613
}
614614

615-
static void get_nterms_and_all_nterms(FILE *fh,
615+
static void get_nterms_and_all_nterms(FILE *fh,
616616
int max_line_size, data_gens_ff_t *gens,
617617
int32_t *nr_gens, nelts_t *nterms, nelts_t *all_nterms){
618618

619-
char *line = NULL;
619+
char *line = NULL;
620620
size_t size;
621621
ssize_t len;
622622
for (int32_t i = 0; i < *nr_gens; i++) {
@@ -873,7 +873,7 @@ static void get_coeffs_and_exponents_ff32(FILE *fh, nelts_t all_nterms,
873873
size_t size;
874874
ssize_t len;
875875

876-
char *line = NULL;
876+
char *line = NULL;
877877
if(getline(&line, &size, fh) !=-1){
878878
}
879879
if(getline(&line, &size, fh) !=-1){
@@ -909,7 +909,7 @@ static void get_coeffs_and_exponents_mpz(FILE *fh, nelts_t all_nterms,
909909
size_t size;
910910
ssize_t len;
911911

912-
char *line = NULL;
912+
char *line = NULL;
913913
if(getline(&line, &size, fh) !=-1){
914914
}
915915
if(getline(&line, &size, fh) !=-1){

src/msolve/lifting-gb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ int64_t export_groebner_qq(
19481948
int err = 0;
19491949

19501950
gb_modpoly_t *modgbsp = malloc(sizeof(gb_modpoly_t));
1951-
modgbsp =
1951+
modgbsp =
19521952
core_groebner_qq(modgbsp, bs, msd, md, &err, field_char,
19531953
2/* if set to 1, only the LM of the Gbs are correct */);
19541954
if (err) {

src/neogb/f4.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void free_f4_julia_result_data(
8080
int64_t len = 0;
8181
for (i = 0; i < ngens; ++i) {
8282
len += (int64_t)lens[i];
83-
}
83+
}
8484

8585
(*freep)(lens);
8686
lens = NULL;
@@ -407,7 +407,7 @@ static int32_t initialize_f4(
407407
*lbsp = bs;
408408
*matp = mat;
409409
*lmdp = md;
410-
410+
411411
return done;
412412
}
413413

@@ -690,7 +690,7 @@ bs_t *core_f4(
690690
/* let's start the f4 rounds, we are done when no more spairs
691691
are left in the pairset or if we found a constant in the basis. */
692692
print_round_information_header(stdout, md);
693-
693+
694694
/* reset error */
695695
*errp = 0;
696696
while (!done) {

src/neogb/f4sat.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static inline int is_pure_power(
4343
const len_t ebl = ht->ebl;
4444
const len_t evl = ht->evl;
4545
const len_t nv = ht->nv;
46-
46+
4747
for (i = 1; i < ebl; ++i) {
4848
if (ev[i] == 0) {
4949
ctr++;
@@ -69,7 +69,7 @@ static inline int is_zero_dimensional(
6969
len_t i;
7070

7171
len_t ctr = 0;
72-
72+
7373
const len_t nv = ht->nv;
7474
const len_t lml = bs->lml;
7575

@@ -78,7 +78,7 @@ static inline int is_zero_dimensional(
7878
ctr ++;
7979
}
8080
}
81-
81+
8282
if (ctr == nv) {
8383
return 1;
8484
}
@@ -122,7 +122,7 @@ static int is_already_saturated(
122122
memcpy(lmps, bs->lmps, (unsigned long)lml * sizeof(bl_t));
123123
int8_t *red = (int8_t *)malloc((unsigned long)bs->sz * sizeof(int8_t));
124124
memcpy(red, bs->red, (unsigned long)bs->sz * sizeof(int8_t));
125-
125+
126126
ps_t *ps = st->ps;
127127

128128
cf32_t *cf = (cf32_t *)malloc(
@@ -139,7 +139,7 @@ static int is_already_saturated(
139139
bs->hm[bs->ld] = hm;
140140

141141
update_basis_f4(ps, bs, bht, st, 1);
142-
142+
143143
/* suppress infolevel printing in the test step */
144144
int32_t infolevel = st->info_level;
145145
st->info_level = 0;

src/neogb/io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void import_input_data(
407407
}
408408
/* maybe some input elements are invalid, so reset ngens here */
409409
ngens = ctr;
410-
410+
411411
/* set total degree of input polynomials */
412412
deg_t deg = 0;
413413
if (st->nev) {
@@ -1119,7 +1119,7 @@ int32_t check_and_set_meta_data_trace(
11191119
return check_and_set_meta_data(st, lens, exps, cfs, invalid_gens,
11201120
field_char, mon_order, elim_block_len, nr_vars, nr_gens,
11211121
nr_nf, ht_size, nr_threads, max_nr_pairs, reset_hash_table,
1122-
la_option, use_signatures, reduce_gb, pbm_file, truncate_lifting,
1122+
la_option, use_signatures, reduce_gb, pbm_file, truncate_lifting,
11231123
info_level);
11241124
}
11251125

src/neogb/nf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ int64_t export_nf(
162162
return 1;
163163
}
164164
if (success == 0) {
165-
printf(stderr,"Bad input data, stopped computation.\n");
165+
fprintf(stderr,"Bad input data, stopped computation.\n");
166166
exit(1);
167167
}
168168
if (bs_is_gb == 1) {
@@ -176,7 +176,7 @@ int64_t export_nf(
176176
bs = core_gba(bs, md, &err, md->fc);
177177

178178
if (err) {
179-
printf("Problem with F4, stopped computation.\n");
179+
fprintf(stderr,"Problem with F4, stopped computation.\n");
180180
exit(1);
181181
}
182182
}
@@ -195,7 +195,7 @@ int64_t export_nf(
195195
tbr = core_nf(tbr, md, mul, bs, &err);
196196

197197
if (err) {
198-
printf("Problem with normalform, stopped computation.\n");
198+
fprintf(stderr,"Problem with normalform, stopped computation.\n");
199199
exit(1);
200200
}
201201

0 commit comments

Comments
 (0)