1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
on-restart-benchmarks/tests/spec/unit/regression/test_equality_of_indirect_annotations.mzn
Jip J. Dekker fad1b07018 Squashed 'software/minizinc/' content from commit 4f10c8205
git-subtree-dir: software/minizinc
git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
2021-06-16 14:06:46 +10:00

20 lines
664 B
MiniZinc

/***
!Test
strict: true
expected: !Result
status: SATISFIED
***/
% Equality of annotation expression was failing if the annotation was an input argument (behind some indirection)
ann: some_ann;
ann: another_ann;
function bool: is_some_ann(ann: input_ann) =
input_ann == some_ann;
constraint is_some_ann(some_ann);
% constraint trace("some_ann == some_ann \(some_ann == some_ann)\n"); % true :)
% constraint trace("some_ann == another_ann \(some_ann == another_ann)\n"); % false :)
% constraint trace("is_some_ann(some_ann) \(is_some_ann(some_ann))\n"); % was false :(
% constraint trace("is_some_ann(another_ann) \(is_some_ann(another_ann))\n"); % false :)