Debian Codegraph @

tests/spec/unit/regression/test_equality_of_indirect_annotations.mzn

raw
1 /***
2 !Test
3 strict: true
4 expected: !Result
5 status: SATISFIED
6 ***/
7
8 % Equality of annotation expression was failing if the annotation was an input argument (behind some indirection)
9 ann: some_ann;
10 ann: another_ann;
11 function bool: is_some_ann(ann: input_ann) =
12 input_ann == some_ann;
13
14 constraint is_some_ann(some_ann);
15
16 % constraint trace("some_ann == some_ann \(some_ann == some_ann)\n"); % true :)
17 % constraint trace("some_ann == another_ann \(some_ann == another_ann)\n"); % false :)
18 % constraint trace("is_some_ann(some_ann) \(is_some_ann(some_ann))\n"); % was false :(
19 % constraint trace("is_some_ann(another_ann) \(is_some_ann(another_ann))\n"); % false :)