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

about jalangi2 #4

Open
zhangbowei opened this issue Dec 27, 2017 · 0 comments
Open

about jalangi2 #4

zhangbowei opened this issue Dec 27, 2017 · 0 comments

Comments

@zhangbowei
Copy link

why I use 2 to run out is ''?

import sj
import sys

analyses = ['../src/js/sample_analyses/inconsistentType/InconsistentTypeEngine.js','']
# analyses = ['../src/js/sample_analyses/ChainedAnalyses.js',
#  '../src/js/sample_analyses/dlint/Utils.js',
#  '../src/js/sample_analyses/dlint/FunCalledWithMoreArguments.js',
#  '../src/js/sample_analyses/dlint/CompareFunctionWithPrimitives.js',
#  '../src/js/sample_analyses/dlint/UndefinedOffset.js',
#  '../src/js/sample_analyses/dlint/CheckNaN.js',
#  '../src/js/sample_analyses/dlint/ConcatUndefinedToString.js',
#  '../src/js/sample_analyses/dlint/ShadowProtoProperty.js']

analysesStr = ' --analysis '+(' --analysis '.join(analyses))

sj.create_and_cd_jalangi_tmp()
# file = '../tests/dlint/dlint1';
file = '../tests/inconsistentType/inconsistent_r1_beliefs_';
sj.execute_np(sj.INSTRUMENTATION_SCRIPT+' --inlineIID --inlineSource '+file+'.js')
out = sj.execute_return_np(sj.ANALYSIS_SCRIPT+ analysesStr+' ' + file+ '_jalangi_.js')
# out = sj.execute_return_np(sj.ANALYSIS_SCRIPT+ analysesStr+'/Users/ZhangBowei/Code/js/jalangi2/tests/inconsistentType/inconsistent_paper_beliefs_.js')
# out = sj.execute_return_np(sj.ANALYSIS_SCRIPT+ analysesStr+'/Users/ZhangBowei/Code/js/jalangi2/tests/inconsistentType/inconsistent_paper_beliefs_.js')
print(out) #output: out is ''
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

1 participant