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

-t doesn't appear to be working? #10

Open
drautb opened this issue Nov 7, 2018 · 3 comments
Open

-t doesn't appear to be working? #10

drautb opened this issue Nov 7, 2018 · 3 comments

Comments

@drautb
Copy link

drautb commented Nov 7, 2018

On a CNF with a large number of solutions, the -t flag does not appear to be respected?

For example:

➜  ~ sharpSAT -t 5 test.cnf 
Solving test.cnf
variables (all/used/free): 	24157/24157/0
clauses (all/long/binary/unit): 117992/107702/4802/5488

Preprocessing .. DONE
variables (all/used/free): 	9114/9114/0
clauses (all/long/binary/unit): 30429/20776/9653/0

time elapsed: 60.8239s
conflict clauses (all / bin / unit) 	20760/4434/0
failed literals found by implicit BCP 	 142729
implicit BCP miss rate 	 99.5291%
cache size 171MB
components (stored / hits) 		155330/202902
avg. variable count (stored / hits) 	290.042/108.931
cache miss rate 15.7594%
^C
➜  ~ 

It runs for over 60s before I kill it, even though I had passed -t 5 as an argument.

@ZaydH
Copy link

ZaydH commented Nov 7, 2018

If you would be willing to share your test.cnf file, I can take a look at the issue for you. I have made extensive modifications to my own build of sharpSAT (called SPUR). I am pretty sure the timer works in my mods if you try it.

@drautb
Copy link
Author

drautb commented Nov 8, 2018

Sure, here's the CNF.

test.cnf.zip

@ZaydH
Copy link

ZaydH commented Nov 10, 2018

@drautb I submitted a pull request. However, I am not optimistic of it getting roped in as it seems the project is no longer active. You can get the fix at my fork of the repo.

If you run into an issue, let me know.

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