Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000480 | mercury | Bug | public | 2019-08-05 17:09 | 2020-04-15 12:58 |
Reporter | wangp | ||||
---|---|---|---|---|---|
Assigned To | zs | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000480: regression in cse_detection.m | ||||
Description | The attached test case fails to compile. % mmc -C cse_detection_regression.m cse_detection_regression.m:013: Error: invalid determinism for `to_bool'(in) = cse_detection_regression.m:013: out: cse_detection_regression.m:013: the primary mode of a function cannot be cse_detection_regression.m:013: `nondet'. cse_detection_regression.m:013: In `to_bool'(in) = out: cse_detection_regression.m:013: error: implicit determinism declaration not cse_detection_regression.m:013: satisfied. cse_detection_regression.m:013: Declared `det', inferred `nondet'. cse_detection_regression.m:022: Unification with `maybe.yes(V_8)' can fail. cse_detection_regression.m:024: Disjunction has multiple clauses with cse_detection_regression.m:024: solutions. cse_detection_regression.m:025: Unification with `maybe.no' can fail. For more information, recompile with `-E'. I bisected the problem to this change: commit 2466524308930c380483a90c7d767a74e7c8507b Author: Zoltan Somogyi <zoltan.somogyi@runbox.com> Date: Sun Jun 30 20:16:07 2019 +0200 Fix cse_detection.m's interaction with uniqueness. This fixes github issue 0000064. compiler/cse_detection.m: When pulling a unification X = f(Y1, ..., Yn) out of an arm of a disjunction, switch or if-then-else, require the instantiation state of X to be free of unique or mostly_unique components. Put the requirements on X's inst into a single predicate. Add a mechanism to make debugging similar issues easier. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | cse_detection_regression.m (503) 2019-08-05 17:09 https://bugs.mercurylang.org/file_download.php?file_id=288&type=bug bug480b.m (470) 2019-08-19 13:48 https://bugs.mercurylang.org/file_download.php?file_id=290&type=bug |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2019-08-05 17:09 | wangp | New Issue | |||
2019-08-05 17:09 | wangp | File Added: cse_detection_regression.m | |||
2019-08-05 18:29 | zs | Assigned To | => zs | ||
2019-08-05 18:29 | zs | Status | new => assigned | ||
2019-08-05 21:11 | zs | Note Added: 0001042 | |||
2019-08-19 13:48 | wangp | File Added: bug480b.m | |||
2019-08-19 13:48 | wangp | Note Added: 0001043 | |||
2019-08-19 19:07 | zs | Note Added: 0001044 | |||
2019-08-20 10:35 | wangp | Note Added: 0001045 | |||
2020-04-15 12:58 | zs | Status | assigned => resolved | ||
2020-04-15 12:58 | zs | Resolution | open => fixed | ||
2020-04-15 12:58 | zs | Note Added: 0001080 |