summaryrefslogtreecommitdiff
path: root/src/options/strings_modes.h
blob: 7823ea8c7492c2b122b7b4c587d52d0feddda9ee (plain)
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
/*********************                                                        */
/*! \file strings_modes.h
 ** \verbatim
 ** Top contributors (to current version):
 **   Andres Noetzli
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2009-2019 by the authors listed in the file AUTHORS
 ** in the top-level source directory) and their institutional affiliations.
 ** All rights reserved.  See the file COPYING in the top-level source
 ** directory for licensing information.\endverbatim
 **
 ** \brief Modes for the string solver.
 **/

#include "cvc4_private.h"

#ifndef CVC4__THEORY__STRINGS__STRINGS_MODES_H
#define CVC4__THEORY__STRINGS__STRINGS_MODES_H

#include <iosfwd>

namespace CVC4 {
namespace theory {
namespace strings {

/** Enumeration of string processing loop modes */
enum ProcessLoopMode
{
  /** Perform full loop processing. */
  FULL,

  /** Omit normal loop breaking. */
  SIMPLE,

  /** Abort if normal loop breaking is required. */
  SIMPLE_ABORT,

  /** Omit loop processing. */
  NONE,

  /** Abort if looping word equations are encountered. */
  ABORT
};  // enum ProcessLoopMode

/** Enumeration of regular expression intersection modes */
enum RegExpInterMode
{
  /** Compute intersections for all regular expressions. */
  RE_INTER_ALL,

  /**
   * Compute intersections only for regular expressions without re.allchar
   * and re.range.
   */
  RE_INTER_CONSTANT,

  /**
   * Compute intersections only between regular expressions where one side does
   * not contain re.allchar and re.range.
   */
  RE_INTER_ONE_CONSTANT,

  /** Do not compute intersections of regular expressions. */
  RE_INTER_NONE,
};  // enum RegExpInterMode

}  // namespace strings
}  // namespace theory

std::ostream& operator<<(std::ostream& out,
                         theory::strings::ProcessLoopMode mode);

std::ostream& operator<<(std::ostream& out,
                         theory::strings::RegExpInterMode mode);

}  // namespace CVC4

#endif /* CVC4__THEORY__STRINGS__STRINGS_MODES_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback