#include <vector>
#include <list>
#include <unordered_map>
+#include <cmath>
using namespace std;
#define UNUSED __attribute__((unused))
#define FORMAT_CHECK(x,y,z) __attribute__((format(x,y,z)))
+static inline bool is_zero(double z)
+{
+ return fabs(z) < 0.001;
+}
+
+static inline bool is_equal(double x, double y)
+{
+ return is_zero(x-y);
+}
+
#include "pdf-tools.h"
/*** Representation of commands ***/