wala / ML

Eclipse Public License 2.0
23 stars 17 forks source link

Order of modules matters #168

Open khatchad opened 3 months ago

khatchad commented 3 months ago

Consider the two input files below:

  1. https://github.com/wala/ML/blob/404a34f5034a2647c512ae96a021a153f7abccd6/com.ibm.wala.cast.python.test/data/multi1.py
  2. https://github.com/wala/ML/blob/404a34f5034a2647c512ae96a021a153f7abccd6/com.ibm.wala.cast.python.test/data/multi2.py

Note that 1 uses 2. Thus, you must pass 2 to the engine before passing 1.

In other words, you cannot swap the two arguments below as still have the test pass:

https://github.com/wala/ML/blob/404a34f5034a2647c512ae96a021a153f7abccd6/com.ibm.wala.cast.python.test/source/com/ibm/wala/cast/python/test/TestMulti.java#L36