LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
OverflowSemantics.h File Reference
#include "llzk/Dialect/Cast/IR/Enums.h"
#include "llzk/Util/Field.h"
#include <llvm/ADT/DynamicAPInt.h>
#include <optional>
Include dependency graph for OverflowSemantics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  llzk
namespace  llzk::cast

Functions

std::optional< llvm::DynamicAPInt > llzk::cast::applyIntToFeltOverflow (const llvm::DynamicAPInt &value, const Field &field, OverflowSemantics overflow)
 Apply overflow semantics for an integer-to-felt conversion.
std::optional< llvm::DynamicAPInt > llzk::cast::applyFeltToIndexOverflow (const llvm::DynamicAPInt &value, unsigned indexBitWidth, OverflowSemantics overflow)
 Apply overflow semantics for a felt-to-index conversion.