avanhatt / wasmtime

Standalone JIT-style runtime for WebAssembly, using Cranelift
https://wasmtime.dev/
Apache License 2.0
0 stars 1 forks source link

cranelift/isle/veri: handle negative constants #80

Closed mmcloughlin closed 11 months ago

mmcloughlin commented 11 months ago

Currently the solver outputs for example bv-1 for negative constant values, which is invalid SMT and causes an error.

This PR updates the bv method in the solver to produce bvneg of the positive constant in this case.