circt/test/Dialect/SMT
fzi-hielscher 13ea7a51d7
[SMT] Minor width related fixes for BitVectorAttr (#6900)
Some minor changes to the construction of BitVector attributes in the SMT dialect:
- Fix parsing of smt.bv.constant #smt.bv<-1> : !smt.bv<1> which currently trips the width check due to odsParser.parseInteger creating an unnecessarily wide APInt. The new logic is copy-pasted from the FIRRTL ConstantOp parser. See #6794.
- Change the type of the attribute builder's value argument from unsigned to uint64_t matching the signature of the APInt constructor, to allow values up to 64 bits and avoid architecture dependent behavior.
- Prevent left-shifts wider than (or equal to) the shifted operand's number of bits in the width checking logic to avoid undefined behavior.
2024-04-05 14:51:12 +02:00
..
array-errors.mlir [SMT] Add basic array operations (#6827) 2024-03-15 00:29:29 +01:00
array.mlir [SMT] Add basic array operations (#6827) 2024-03-15 00:29:29 +01:00
basic.mlir [SMT] Add function application operation, function and uninterpreted sort types (#6847) 2024-03-22 17:13:18 +01:00
bitvector-errors.mlir [SMT] Add concat, extract, repeat operations (#6813) 2024-03-17 17:03:12 +01:00
bitvectors.mlir [SMT] Minor width related fixes for BitVectorAttr (#6900) 2024-04-05 14:51:12 +02:00
core-errors.mlir [SMT] Add function application operation, function and uninterpreted sort types (#6847) 2024-03-22 17:13:18 +01:00
cse-test.mlir [SMT] Add function application operation, function and uninterpreted sort types (#6847) 2024-03-22 17:13:18 +01:00
integers.mlir [SMT] Add integer constant and arithmetic operations (#6838) 2024-03-18 10:12:39 +01:00