Debian Codegraph @

FaCT++.Python/lib/Kernel/globaldef.h

raw symbols SCIP
1 /* This file is part of the FaCT++ DL reasoner
2 Copyright (C) 2003-2015 Dmitry Tsarkov and The University of Manchester
3 Copyright (C) 2015-2017 Dmitry Tsarkov
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef GLOBALDEF_H
21 #define GLOBALDEF_H
22
23 // global definitions for FaCT++ Reasoning Kernel
24
25 // define unused attribute for parameters and (un)likely macro for conditions
26 #if defined(__GNUC__) && (__GNUC__ >= 4)
27 # define ATTR_UNUSED __attribute__((unused))
28 # define likely(cond) __builtin_expect((cond),1)
29 # define unlikely(cond) __builtin_expect((cond),0)
30 #else
31 # define ATTR_UNUSED
32 # define likely(cond) (cond)
33 # define unlikely(cond) (cond)
34 #endif
35
36 // uncomment this to have a DAG usage statistics printed
37 //#define RKG_PRINT_DAG_USAGE
38
39 // uncomment this to have sorted ontology reasoning
40 #define RKG_USE_SORTED_REASONING
41
42 // set the default value of USE_LOGGING
43
44 #ifndef USE_LOGGING
45 # define USE_LOGGING 0
46 #endif
47
48 //#define ENABLE_CHECKING
49
50 // set to 1 to allow dynamic backjumping
51 #ifndef RKG_USE_DYNAMIC_BACKJUMPING
52 # define RKG_USE_DYNAMIC_BACKJUMPING 0
53 #endif
54
55 // set to 1 to update role's R&D from super-roles
56 #ifndef RKG_UPDATE_RND_FROM_SUPERROLES
57 # define RKG_UPDATE_RND_FROM_SUPERROLES 0
58 #endif
59
60 // uncomment this to allow simple rules processing
61 //#define RKG_USE_SIMPLE_RULES
62
63 // set to 1 to support fairness constraints
64 #ifndef RKG_USE_FAIRNESS
65 # define RKG_USE_FAIRNESS 0
66 #endif
67
68 // uncomment the following line if IR is defined as a list of elements in node label
69 #define RKG_IR_IN_NODE_LABEL
70
71 // this value is used in classes Reasoner, CGraph and RareSaveStack
72 constexpr unsigned int InitBranchingLevelValue = 1;
73
74 #endif