Skip to content

Commit 0ae9ca6

Browse files
committed
-g: set default candidate queue capacity to 50 (for each worker thread)
1 parent 942a579 commit 0ae9ca6

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

README.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,10 @@ <h4 id="usage">Usage</h4>
426426
-d: default system ; ignore all other arguments except '-e'
427427

428428
Composable:
429-
-g &lt;limit or -1&gt; [-u] [-q &lt;limit&gt;] [-l &lt;limit or -1&gt;] [-k &lt;limit or -1&gt;] [-b] [-v] [-s]
429+
-g &lt;limit or -1&gt; [-u] [-q &lt;limit or -1&gt;] [-l &lt;limit or -1&gt;] [-k &lt;limit or -1&gt;] [-b] [-v] [-s]
430430
Generate proof files ; at ./data/[&lt;hash&gt;/]/dProofs-withConclusions/ when '-s' unspecified ; otherwise at ./data/[&lt;hash&gt;/]/dProofs-withoutConclusions/
431431
-u: unfiltered (significantly faster, but generates redundant proofs)
432-
-q: limit number of proof candidate strings queued per worker thread (may lower memory requirements for systems with low acceptance rates)
432+
-q: limit number of proof candidate strings queued per worker thread (may lower memory requirements for systems with low acceptance rates) ; default: 50
433433
-l: limit symbolic length of generated conclusions to at most the given number ; works only in extracted environments ; recommended to use in combination with '-q' to save memory
434434
-k: similar to '-l' ; limit symbolic length of consequents in generated conclusions, i.e. antecedents in conditionals are not limited (but non-conditionals are limited in full length)
435435
-b: brief parsing ; refer to conclusion strings for D-proof processing and use them for rule evaluation (collects faster, but requires more memory) ; used only when '-v' unspecified

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ Some more – and very special – proof systems are illustrated [further down b
5151
-d: default system ; ignore all other arguments except '-e'
5252

5353
Composable:
54-
-g <limit or -1> [-u] [-q <limit>] [-l <limit or -1>] [-k <limit or -1>] [-b] [-v] [-s]
54+
-g <limit or -1> [-u] [-q <limit or -1>] [-l <limit or -1>] [-k <limit or -1>] [-b] [-v] [-s]
5555
Generate proof files ; at ./data/[<hash>/]/dProofs-withConclusions/ when '-s' unspecified ; otherwise at ./data/[<hash>/]/dProofs-withoutConclusions/
5656
-u: unfiltered (significantly faster, but generates redundant proofs)
57-
-q: limit number of proof candidate strings queued per worker thread (may lower memory requirements for systems with low acceptance rates)
57+
-q: limit number of proof candidate strings queued per worker thread (may lower memory requirements for systems with low acceptance rates) ; default: 50
5858
-l: limit symbolic length of generated conclusions to at most the given number ; works only in extracted environments ; recommended to use in combination with '-q' to save memory
5959
-k: similar to '-l' ; limit symbolic length of consequents in generated conclusions, i.e. antecedents in conditionals are not limited (but non-conditionals are limited in full length)
6060
-b: brief parsing ; refer to conclusion strings for D-proof processing and use them for rule evaluation (collects faster, but requires more memory) ; used only when '-v' unspecified

logic/DlProofEnumerator.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,12 @@ void DlProofEnumerator::generateDProofRepresentativeFiles(uint32_t limit, bool r
16311631
chrono::time_point<chrono::steady_clock> startTime;
16321632
if (useConclusionStrings || useConclusionTrees)
16331633
withConclusions = true; // need conclusions in these modes
1634+
size_t defaultQC = 50;
1635+
if (candidateQueueCapacities) {
1636+
if (*candidateQueueCapacities == SIZE_MAX)
1637+
candidateQueueCapacities = nullptr;
1638+
} else
1639+
candidateQueueCapacities = &defaultQC;
16341640

16351641
// 1. Load representative D-proof strings.
16361642
auto myInfo = [&]() -> string {

main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ static const map<Task, string>& cmdInfo() {
6363
" -e: specify extracted system with the given identifier\n"
6464
" -d: default system ; ignore all other arguments except '-e'\n";
6565
_[Task::Generate] =
66-
" -g <limit or -1> [-u] [-q <limit>] [-l <limit or -1>] [-k <limit or -1>] [-b] [-v] [-s]\n"
66+
" -g <limit or -1> [-u] [-q <limit or -1>] [-l <limit or -1>] [-k <limit or -1>] [-b] [-v] [-s]\n"
6767
" Generate proof files ; at ./data/[<hash>/]/dProofs-withConclusions/ when '-s' unspecified ; otherwise at ./data/[<hash>/]/dProofs-withoutConclusions/\n"
6868
" -u: unfiltered (significantly faster, but generates redundant proofs)\n"
69-
" -q: limit number of proof candidate strings queued per worker thread (may lower memory requirements for systems with low acceptance rates)\n"
69+
" -q: limit number of proof candidate strings queued per worker thread (may lower memory requirements for systems with low acceptance rates) ; default: 50\n"
7070
" -l: limit symbolic length of generated conclusions to at most the given number ; works only in extracted environments ; recommended to use in combination with '-q' to save memory\n"
7171
" -k: similar to '-l' ; limit symbolic length of consequents in generated conclusions, i.e. antecedents in conditionals are not limited (but non-conditionals are limited in full length)\n"
7272
" -b: brief parsing ; refer to conclusion strings for D-proof processing and use them for rule evaluation (collects faster, but requires more memory) ; used only when '-v' unspecified\n"

0 commit comments

Comments
 (0)