diff options
| author | Thomas Bauereiss | 2019-11-19 16:07:33 +0000 |
|---|---|---|
| committer | Thomas Bauereiss | 2019-11-21 14:04:32 +0000 |
| commit | eb0e17f219949bf704c0dfe658326665fb17dd27 (patch) | |
| tree | 4755f076b32bf6c7eb8511c99375cf315a0091ca /src/initial_check.ml | |
| parent | 8b9e89831df9227e1ac380573d36972449ddc408 (diff) | |
Mono: Use more environment information when adding bitvector casts
When considering whether to add a cast, now also consider the updated
environment within an if branch / match clause to compare against the
outer environment. This picks up not only constraints on type variables
added by an if condition or pattern guard (e.g. "if (size == 16) ..."),
but also constraints depending on those (e.g. in "bits('width)" where
"'width == 'size * 8"). Fixes a type error observed when generating Lem
for sail-arm (in aget__Mem).
Diffstat (limited to 'src/initial_check.ml')
0 files changed, 0 insertions, 0 deletions
