-
Notifications
You must be signed in to change notification settings - Fork 22
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
more subsequence glitches #395
Comments
This is blocking several different attempts to write an improved nonogram spec, using collections of sequences and the Concretely, I have a One option would be if the In the Another option would be if Conjure/SR supported syntax along the following lines:
or even just
Right now there seems to be no way to transform a given matrix of sequences in any nontrivial way, because we have no syntax to define a matrix of sequences with lengths that depend on some input, not even if the new matrix of sequences are all the same length as the old one. Further, trying to use the attributes of a matrix of sequences in specifying the type of a new variable results in errors. It would even be useful if we had a way of saying "copy the type of this variable to this other variable", such as a Summary:
(Pretty please?) |
Hi @ott2 - It's been a while a realise. I am trying to reproduce this but it seems with current Conjure the first two models work. For reference, the following is the E' I get for the first one.
|
I'm seeing SR dimension mismatch errors for the first two. This is with SR bundled with Conjure, as of a few days ago: |
I edited the test case to run each example (with m=3). For me 1 and 3 runs without any problems, but 2 hits the SR bug* you see. It would be good if you can report please, yes. We should remember to edit this test case to run conjure solve on example 1 as well, once the bug* is fixed. [*] Unless I am missing something... |
Still seeing the same errors with the first two.
and
issue-conjure-395.param:
issue-conjure-395a.essence:
issue-conjure-395b.essence:
The third spec yields the solution (as expected):
versions: For reference, here are the eprime files also: |
Oh I see now. I must have made a mistake when I copied the files over. You'll see if you look at the files in the test directory. I'll fix the test cases. This should be raised with SR regardless. |
Fixed now, we are in the same place. The commit above (d8d81ee) fixes the copy/paste error. |
Which SR files should I be using? I need a param file to go with 395a and 395b above. |
The param file above is fine (issue-conjure-395.param), it just contains
|
Well that was easy to diagnose. Indexing a matrix with a matrix is only (currently) implemented when the inner matrix is the only index. I'll see what I can do. |
Are the two eprime files attached here out of date? |
Pete, the versions were as above in the comment; SR was the one that Oz shipped and quite recent at the time. I don't have access right now to a newer environment to test. @ozgurakgun can you perhaps reproduce -- might be more a Conjure glitch than an SR one? |
@ozgurakgun @pwn1 while I recompile my toolchain using a recent clang (this will take some days) so that I can natively compile conjure again, could either of you quickly check whether the latest conjure/SR combo now deals with these cases correctly? |
(Recording this from email.)
The following fails:
as does this:
but this one is fine:
I would expect the semantics of all three to be roughly equivalent.
The text was updated successfully, but these errors were encountered: