Clang 14.0.0+ introduce a relative lookup table optimization that produces code that subtracts two pointers from different allocation regions, which is something that crucible-llvm is ill equipped to reason about. For lack of a viable alternative, we work around this issue by "undoing" this optimization before translating the code to Crucible. For the full details, see the new Note [Undoing LLVM's relative table lookup conversion pass] in Lang.Crucible.LLVM.Globals.
Clang 14.0.0+ introduce a relative lookup table optimization that produces code that subtracts two pointers from different allocation regions, which is something that
crucible-llvm
is ill equipped to reason about. For lack of a viable alternative, we work around this issue by "undoing" this optimization before translating the code to Crucible. For the full details, see the newNote [Undoing LLVM's relative table lookup conversion pass]
inLang.Crucible.LLVM.Globals
.Fixes #1174.