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

possible bug? #13

Open
soonho-tri opened this issue Mar 31, 2017 · 2 comments
Open

possible bug? #13

soonho-tri opened this issue Mar 31, 2017 · 2 comments

Comments

@soonho-tri
Copy link
Member

Could you check the following compiler warnings? It might indicate real bugs.

Arif asked me to check how to install SReach on Gauss machine, so I gave a shot and found those messages.

/usr0/home/soonhok/work/sreach/src/statSMT_para.cpp: In member function ‘virtual void Lai::doTest(long unsigned int, long unsigned int)’:
/usr0/home/soonhok/work/sreach/src/statSMT_para.cpp:452:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
     else  w = 1/t; g = 0.5*(2*log(w) + log(log(w)) - log(4*pi) - 3*exp(-0.016*sqrt(w)));
     ^~~~
/usr0/home/soonhok/work/sreach/src/statSMT_para.cpp:452:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
     else  w = 1/t; g = 0.5*(2*log(w) + log(log(w)) - log(4*pi) - 3*exp(-0.016*sqrt(w)));
                    ^
/usr0/home/soonhok/work/sreach/src/statSMT_sq.cpp: In member function ‘virtual void Lai::doTest(long unsigned int, long unsigned int)’:
/usr0/home/soonhok/work/sreach/src/statSMT_sq.cpp:448:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
     else  w = 1/t; g = 0.5*(2*log(w) + log(log(w)) - log(4*pi) - 3*exp(-0.016*sqrt(w)));
     ^~~~
/usr0/home/soonhok/work/sreach/src/statSMT_sq.cpp:448:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
     else  w = 1/t; g = 0.5*(2*log(w) + log(log(w)) - log(4*pi) - 3*exp(-0.016*sqrt(w)));
@rachelwang
Copy link
Member

rachelwang commented Mar 31, 2017 via email

@soonho-tri
Copy link
Member Author

AFAIK, @mdaislam006 just installed SReach on Gauss.

I am not sure whether you are using the most recent version of SReach.

I was using dreal/sreach. I think it's not the latest and the one in rachelwang/sreach is the latest? If that's the case, I'll close this issue.

If you have the above problem for both versions, please let me know. I will look into it right after I come back from the PI meeting.

Please take your time and check things. If needed, please update this repository (dreal/sreach).

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