/* PSPP - a program for statistical analysis.
- Copyright (C) 2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009, 2010, 2011, 2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <config.h>
-#include <libpspp/model-checker.h>
+#include "libpspp/model-checker.h"
#include <limits.h>
#include <signal.h>
#include <string.h>
#include <sys/time.h>
-#include <libpspp/argv-parser.h>
-#include <libpspp/bit-vector.h>
-#include <libpspp/compiler.h>
-#include <libpspp/deque.h>
-#include <libpspp/misc.h>
-#include <libpspp/str.h>
+#include "libpspp/argv-parser.h"
+#include "libpspp/bit-vector.h"
+#include "libpspp/compiler.h"
+#include "libpspp/deque.h"
+#include "libpspp/misc.h"
+#include "libpspp/str.h"
-#include "error.h"
-#include "minmax.h"
-#include "xalloc.h"
+#include "gl/error.h"
+#include "gl/minmax.h"
+#include "gl/xalloc.h"
\f
/* Initializes PATH as an empty path. */
void
for (i = 0; i < mc_path_get_length (path); i++)
{
if (i > 0)
- ds_put_char (string, ' ');
+ ds_put_byte (string, ' ');
ds_put_format (string, "%d", mc_path_get_operation (path, i));
}
}
mc_options_set_strategy (options, MC_RANDOM);
else
error (1, 0,
- "strategy must be \"broad\", \"deep\", or \"random\"");
+ "strategy must be `broad', `deep', or `random'");
break;
case OPT_MAX_DEPTH:
else if (!strcmp (optarg, "random"))
mc_options_set_queue_limit_strategy (options, MC_DROP_RANDOM);
else
- error (1, 0, "--queue-drop argument must be \"newest\", "
- "\"oldest\", or \"random\"");
+ error (1, 0, "--queue-drop argument must be `newest' "
+ "`oldest' or `random'");
break;
case OPT_SEED:
/* Free memory. */
mc_path_destroy (&mc->path);
ds_destroy (&mc->path_string);
- free (mc->options);
+ mc_options_destroy (mc->options);
free (mc->queue);
free (mc->hash);
}