]> mj.ucw.cz Git - leo.git/blob - lab-utils.h
Labelling: Bugfixes in get_closure
[leo.git] / lab-utils.h
1 #ifndef _LEO_LABELLER_UTILS_H
2 #define _LEO_LABELLER_UTILS_H
3
4 #define DEBUG(dbg_sec, dbg_lvl, msg, ...) if (dbg_sec >= dbg_lvl) printf(msg, ##__VA_ARGS__)
5
6 enum verbosity
7 {
8   VERBOSITY_NONE,
9   VERBOSITY_GENERAL,
10   VERBOSITY_POPULATION,
11   VERBOSITY_INDIVIDUAL,
12   VERBOSITY_PLACEMENT,
13   VERBOSITY_ALL,
14 };
15
16 int max2(int a, int b);
17 int min2(int a, int b);
18 int max4(int a, int b, int c, int d);
19 int min4(int a, int b, int c, int d);
20
21 int randint(int min, int max);
22 double randdouble(void);
23 int flip(int a, int b);
24
25 double convert_to_deg(double rotate_rad);
26 double convert_to_rad(double rotate_deg);
27
28 struct placement **filter(struct placement **list, bool **pred_ptr);
29
30 #endif