Issue264

Title expose translator options to command line
Priority wish Status resolved
Superseder Nosy List gabi, jendrik, malte
Assigned To gabi Keywords translator
Optional summary

Created on 2011-08-15.11:48:34 by malte, last changed by gabi.

Messages
msg4027 (view) Author: gabi Date: 2015-02-24.10:24:12
Merged. Thank you Jendrik!
msg4026 (view) Author: jendrik Date: 2015-02-24.00:25:32
Now that we have support for the "internal" scripts, do you think we can merge 
this, Gabi?
msg3994 (view) Author: gabi Date: 2015-01-05.16:59:42
Apart from two really minor things, the code looks good so far but still lacks
support for the "internal" scripts. This should be easy to change.
msg3913 (view) Author: jendrik Date: 2014-12-12.14:51:11
I split the issue of DEBUG flags off into issue498.

The code for the other flags is done in a first version and Gabi agreed to review 
it.
msg3910 (view) Author: malte Date: 2014-12-12.14:14:12
These are intentionally per-module variables. You usually only want debug output
for one module at a time (the one you're debugging ;-)), so separate options
like "--debug-fact-groups", "--debug-simplify" and "--debug-translate" would
make more sense than a general "--debug".

An alternative solution would be to use a configurable logging mechanism with
subloggers for this. This wouldn't be difficult to set up with the
infrastructure that Python has and would immediately give us some nice
additional benefits. For example, it would immediately give us a "debug flag"
for each module that doesn't currently have one, without cluttering the option
space.
msg3908 (view) Author: jendrik Date: 2014-12-12.12:27:03
I have started working on this. One question is whether we want the DEBUGs 
module- or translator-wide. At the moment translate.py, simplify.py and 
fact_groups.py define DEBUG.
msg1639 (view) Author: malte Date: 2011-08-15.11:48:34
The translator has a bunch of options that can only be set by modifying the code
right now (flags in translate.py; MAX_CANDIDATES and MAX_TIME in
invariant_finder.py). These should be exposed to the command line.

While we do this, we should also document what the preferred way to disable
invariant synthesis is (right now, it is setting MAX_CANDIDATES to 0.)
History
Date User Action Args
2015-02-24 10:24:12gabisetstatus: reviewing -> resolved
messages: + msg4027
2015-02-24 00:25:32jendriksetstatus: in-progress -> reviewing
assignedto: jendrik -> gabi
messages: + msg4026
2015-01-05 16:59:42gabisetstatus: reviewing -> in-progress
assignedto: gabi -> jendrik
messages: + msg3994
2015-01-05 15:30:28jendriksetstatus: chatting -> reviewing
assignedto: jendrik -> gabi
2014-12-12 14:51:11jendriksetnosy: + gabi
messages: + msg3913
2014-12-12 14:14:12maltesetmessages: + msg3910
2014-12-12 12:27:03jendriksetassignedto: jendrik
messages: + msg3908
2014-12-12 10:44:38jendriksetnosy: + jendrik
2014-10-04 20:03:29maltesetkeyword: + translator
2011-08-15 11:48:34maltecreate