src/sn_{network,stage}.[ch]: Implement sn_network_unify().
[sort-networks.git] / src / sn-info.c
index 7d0b2f6..e2bc9c9 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * collectd - src/sn-info.c
+ * libsortnetwork - src/sn-info.c
  * Copyright (C) 2010  Florian octo Forster
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -112,11 +112,13 @@ int main (int argc, char **argv)
       "  Normalized:  %4s\n"
       "  Sorts:    %7s\n"
       "  Rating:      %4i\n"
+      "  Hash:  0x%08"PRIx32"\n"
       "\n",
       comparators_num,
       (normalized ? "yes" : "no"),
       ((inputs_num > 16) ? "unknown" : (sorts ? "yes" : "no")),
-      (stages_num_compressed * inputs_num) + comparators_num);
+      (stages_num_compressed * inputs_num) + comparators_num,
+      sn_network_get_hashval (n));
 
   exit (EXIT_SUCCESS);
 } /* int main */