summaryrefslogtreecommitdiff
path: root/src/gen_lib/sail2_string.lem
diff options
context:
space:
mode:
authorThomas Bauereiss2019-11-19 16:07:33 +0000
committerThomas Bauereiss2019-11-21 14:04:32 +0000
commiteb0e17f219949bf704c0dfe658326665fb17dd27 (patch)
tree4755f076b32bf6c7eb8511c99375cf315a0091ca /src/gen_lib/sail2_string.lem
parent8b9e89831df9227e1ac380573d36972449ddc408 (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/gen_lib/sail2_string.lem')
0 files changed, 0 insertions, 0 deletions