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

Segfault when searching on paramater and concatenating search annotations #842

Closed
CervEdin opened this issue Sep 2, 2024 · 1 comment
Closed
Labels
bug resolved Issue is resolved and the feature or fix will be part of next release

Comments

@CervEdin
Copy link

CervEdin commented Sep 2, 2024

Related to this
I tried something like this

par int: x = 1;
var 0..: y;

function array[int] of ann: dummy_search() =
[ int_search([x], input_order, indomain_min) ];

solve :: seq_search(
  dummy_search() ++
  [ int_search([y], input_order, indomain_min) ]
) satisfy;

which results in a segfault.

Only seems to happen if x is a par, because this works as expected

var 0..: x;
var 0..: y;

function array[int] of ann: dummy_search() =
[ int_search([x], input_order, indomain_min) ];

solve :: seq_search(
  dummy_search() ++
  [ int_search([y], input_order, indomain_min) ]
) satisfy;
@CervEdin CervEdin changed the title Segfault Segfault when searching on paramater and concatenating search annotations Sep 2, 2024
@CervEdin
Copy link
Author

CervEdin commented Sep 2, 2024

similarly, this was not an issue

par 0..: x = 1;
var 0..: y;

solve :: seq_search(
  [ int_search([x], input_order, indomain_min) ] ++
  [ int_search([y], input_order, indomain_min) ]
) satisfy;

@cyderize cyderize added the bug label Sep 18, 2024
@cyderize cyderize added the resolved Issue is resolved and the feature or fix will be part of next release label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug resolved Issue is resolved and the feature or fix will be part of next release
Projects
None yet
Development

No branches or pull requests

2 participants