X-Git-Url: https://git.octo.it/?p=sort-networks.git;a=blobdiff_plain;f=src%2Fsn-count-markov.c;h=db010f59270acc5e1d1adb46de101b81fa397458;hp=2535bd8ef07f84e2e6eb819fbbd2d90f2bb15540;hb=24d0c0bebf6105eed41e87113dc7cdc137400f55;hpb=bb4fb03595cf7334acae6b9d6770115de4b0e731 diff --git a/src/sn-count-markov.c b/src/sn-count-markov.c index 2535bd8..db010f5 100644 --- a/src/sn-count-markov.c +++ b/src/sn-count-markov.c @@ -111,7 +111,10 @@ static int account_network (const sn_network_t *n, uint64_t iteration) /* {{{ */ return (EINVAL); if (iteration == 0) - printf ("# iteration cyclelength\n"); + { + printf ("# prev_iter this_iter cyclelength hashval\n"); + fflush (stdout); + } key = sn_network_get_hashval (n); key_ptr = &key; @@ -120,10 +123,15 @@ static int account_network (const sn_network_t *n, uint64_t iteration) /* {{{ */ if (value_ptr != NULL) { uint64_t cycle_length = iteration - (*value_ptr); - printf ("%"PRIu64" %"PRIu64"\n", iteration, cycle_length); + printf ("%"PRIu64" %"PRIu64" %"PRIu64" 0x%016"PRIx64"\n", + (*value_ptr), iteration, cycle_length, key); + fflush (stdout); cycles_num++; *value_ptr = iteration; + + sn_random_init (); + return (0); }