Comments (5)
I suppose we could just add a new ErrorConstant
value, and cause it to raise an error during translation
(probably in liftConstant
). That would probably be sufficient also to correctly deal with the inrange
constant GEP case from #57.
from crucible.
Or, we could run transConstExpr
in the ExceptT
monad and call reportError
on failure rather than calling fail
in the generator monad.
from crucible.
I like the ExceptT
approach. Then I think there's just one call site that would need to react to failure and generate code to raise an error:
from crucible.
Yeah, that seems right.
from crucible.
Do you have a small test case that exhibits the issue? I could take a quick stab at doing this, should be pretty easy.
from crucible.
Related Issues (20)
- go: `crucible.Fresh*` should take a variable name as an argument
- llvm: Remove the LLVM declaration from `LLVMOverride` HOT 3
- `crucible-mir`: Report line number when MIR `Assert` fails
- `crucible-mir`: Translation error on `repr(transparent)` enum
- `crux_mir`: Iterating over 0-length `Vec` fails with `tried to subtract pointers into different arrays` HOT 6
- `crux-mir`: Restore `--no-model-internal-atomics`
- crucible-syntax: Remove `ACFG` HOT 4
- `crux-mir`: Automate generation of `translate_libs.sh` script
- `crux-mir` CI: Build libs for `wasm32-unknown-unknown`
- Add overrides for `fma` and friends
- `crucible`: online solver backend does not always gracefully handle the solver process being killed
- CI: Cache `cargo` build artifacts when building `mir-json`
- Merge crucible-pcode
- Don't `panic` in `AssumptionStack.popFrame` HOT 1
- `crucible-llvm`: Support string tables with Clang 14.0.0 + optimizations HOT 6
- `crux-mir` nightly Docker build failure (`no space left on device`)
- `crucible-llvm`: Implement `llvm.vector.reduce.*` intrinsics (added in LLVM 12)
- `crucible_mir`: Add overrides for `is_null` HOT 1
- `crucible-mir`: Re-implement overrides for `get_unchecked` slice indexing HOT 1
- `popFrameUnchecked` changes cause regression in SAW AWS-LC proof HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crucible.