File: testusage.c

package info (click to toggle)
kissat 4.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,068 kB
  • sloc: ansic: 39,201; sh: 1,226; makefile: 91
file content (131 lines) | stat: -rw-r--r-- 3,425 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#include "../src/file.h"

#include "test.h"

void tissat_schedule_usage (void) {
#define APP tissat_schedule_application

  APP (0, "-h");
  APP (0, "--help");
  APP (0, "--banner");
  APP (0, "--id");
  APP (0, "--compiler");
  APP (0, "--version");

#ifndef NOPTIONS

#ifdef EMBEDDED
  APP (0, "--embedded");
#endif
  APP (0, "--range");

  if (tissat_found_test_directory) {
    APP (20, "--color ../test/cnf/add8.cnf");
    APP (20, "--colors ../test/cnf/add8.cnf");
    APP (20, "--colors ../test/cnf/add8.cnf");
    APP (20, "--colours ../test/cnf/add8.cnf");

    APP (20, "--no-color ../test/cnf/add8.cnf");
    APP (20, "--no-colors ../test/cnf/add8.cnf");
    APP (20, "--no-colors ../test/cnf/add8.cnf");
    APP (20, "--no-colours ../test/cnf/add8.cnf");

    APP (20, "../test/cnf/add8.cnf --no-simplify");

    if (kissat_file_readable ("../test/cnf/add32.cnf"))
      APP (20, "../test/cnf/add32.cnf --no-compact");

    APP (20, "../test/cnf/add8.cnf --no-probe");
    APP (20, "../test/cnf/add8.cnf --no-substitute");

    APP (20, "../test/cnf/add8.cnf --no-eliminate");

    APP (20, "../test/cnf/add8.cnf --stable=2");
    APP (20, "../test/cnf/add8.cnf --no-stable");

    APP (20, "../test/cnf/add8.cnf --probeinit=0 --no-vivify");

    APP (20, "../test/cnf/add8.cnf --eliminateinit=0 --no-extract");
    APP (20, "../test/cnf/add8.cnf --eliminateinit=0 --no-ifthenelse");
    APP (20, "../test/cnf/add8.cnf --eliminateinit=0 --no-equivalences");
    APP (20, "../test/cnf/add8.cnf --eliminateinit=0 --no-ands");

#ifndef QUIET
    APP (0, "--walkinitially --conflicts=3000 --probeinit=0 "
            "--eliminateinit=0 ../test/cnf/hard.cnf --profile=4");
    APP (0, "../test/cnf/hard.cnf --walkinitially -v -v -v "
            "--colors --conflicts=1e4");
#endif

    APP (0, "--decisions=10 ../test/cnf/hard.cnf --no-reduce");
    APP (0, "--decisions=10 ../test/cnf/hard.cnf --no-rephase");
    APP (0, "--decisions=10 ../test/cnf/hard.cnf --no-restart");
    APP (0, "--decisions=10 ../test/cnf/hard.cnf "
            "--reluctantint=200 --reluctantlim=100 --stable=2");
    APP (0, "--decisions=1000 ../test/cnf/hard.cnf "
            "--no-reluctant --stable=2");
  }

#else

#ifdef SAT
  if (tissat_found_test_directory)
    APP (20, "../test/cnf/add8.cnf --sat");
#elif defined(UNSAT)
  if (tissat_found_test_directory)
    APP (20, "../test/cnf/add8.cnf --unsat");
#else
  if (tissat_found_test_directory)
    APP (20, "../test/cnf/add8.cnf --default");
#endif

#endif

#ifdef NOPTIONS
#define LIMITED_OPTIONS ""
#else
#define LIMITED_OPTIONS " --rephaseinit=10 --rephaseint=10"
#endif

  if (tissat_found_test_directory) {
    APP (0, "--conflicts=6e3 ../test/cnf/hard.cnf" LIMITED_OPTIONS);
    APP (0, "--decisions=8e3 ../test/cnf/hard.cnf" LIMITED_OPTIONS);
    APP (0, "--conflicts=7e3 --decisions=7e3 "
            "../test/cnf/hard.cnf" LIMITED_OPTIONS);
  }

  APP (1, "--help -n");
  APP (1, "--version -n");
  APP (1, "-n --version");
  APP (1, "-n -h");

#ifdef QUIET
  APP (1, "-q");
  APP (1, "-s");
  APP (1, "-v");

#endif

#ifndef LOGGING
  APP (1, "-l");
#endif

#if !defined(QUIET) && defined(NOPTIONS)
  APP (1, "-l");
  APP (1, "-q");
  APP (1, "-s");
  APP (1, "-v");
#endif

#ifdef NOPTIONS
  APP (1, "--statistics");
#endif

  APP (1, "--invalid");
  APP (1, "-X");

  APP (1, "three command-line arguments");
  APP (1, "/dev/null /dev/null /dev/null");

#undef APP
}