Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The --noequality flag doesn't work #109

Open
billy-mosse opened this issue Oct 23, 2017 · 1 comment
Open

The --noequality flag doesn't work #109

billy-mosse opened this issue Oct 23, 2017 · 1 comment

Comments

@billy-mosse
Copy link

Daikon Version: 5.5.14
O.S.: Ubuntu 16.04.1

When I run the StackAr java example, if I include the --noequality flag, it doesn't get recognized.

Code (standing in the daikon folder):

cd examples/java-examples/StackAr
javac -g DataStructures/*.java
java -cp "../../../daikon.jar:." daikon.DynComp DataStructures.StackArTester

java -cp .:$CLASSPATH daikon.Chicory \
     --comparability-file=StackArTester.decls-DynComp \
     DataStructures.StackArTester

java daikon.Daikon --noequality StackArTester.dtrace.gz

Output:

daikon.Daikon: unrecognized option '--noequality'
Daikon version 5.5.x, released January 5, 2017; http://plse.cs.washington.edu/daikon.
Daikon invariant detector, copyright 1998-2016
Uses the Java port of GNU getopt, copyright (c) 1998 Aaron M. Renn
Usage:
    java daikon.Daikon [flags...] files...
  Each file is a declaration file or a data trace file; the file type
  is determined by the file name (containing ".decls" or ".dtrace").
  For a list of flags, see the Daikon manual, which appears in the 
  Daikon distribution and also at http://plse.cs.washington.edu/daikon/.

An observation is that when I replace --noequality by --nohierarchy (another flag), it works.
Another observation is that I don't see the flag in Daikon.java either.

I see this switch: public static final String no_dataflow_hierarchy_SWITCH = "nohierarchy";
but not one for noequality. I do see the following boolean:

public static boolean use_equality_optimization = true;

which I set to false manually so I can continue working.

Cheers! Tell me if you need more info.
Billy

@markro49
Copy link
Contributor

As you noted, the documentation is out of date. The next version of daikon will both document and expose the use_identity_optimization switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants