--- /dev/null
+#ifndef _LEO_LABELLER_UTILS_H
+#define _LEO_LABELLER_UTILS_H
+
+#define DEBUG(dbg_sec, dbg_lvl, msg, ...) if (dbg_sec >= dbg_lvl) printf(msg, ##__VA_ARGS__)
+
+enum verbosity
+{
+ VERBOSITY_NONE,
+ VERBOSITY_GENERAL,
+ VERBOSITY_POPULATION,
+ VERBOSITY_INDIVIDUAL,
+ VERBOSITY_PLACEMENT,
+ VERBOSITY_ALL,
+};
+
+int max2(int a, int b);
+int min2(int a, int b);
+int max4(int a, int b, int c, int d);
+int min4(int a, int b, int c, int d);
+
+int randint(int min, int max);
+double randdouble(void);
+int flip(int a, int b);
+
+double convert_to_deg(double rotate_rad);
+double convert_to_rad(double rotate_deg);
+
+struct placement **filter(struct placement **list, bool **pred_ptr);
+
+#endif