Smt
smt
NonFuncSMTType: TypeAlias = BoolType | BitVectorType
module-attribute
NonFuncSMTTypeConstr = irdl_to_attr_constraint(NonFuncSMTType)
module-attribute
SMTType: TypeAlias = NonFuncSMTType | FuncType
module-attribute
SMTTypeConstr = irdl_to_attr_constraint(SMTType)
module-attribute
SMT = Dialect('smt', [DeclareFunOp, ApplyFuncOp, ConstantBoolOp, NotOp, AndOp, OrOp, XOrOp, ImpliesOp, DistinctOp, EqOp, IteOp, ExistsOp, ForallOp, YieldOp, AssertOp, BvConstantOp, BVNegOp, BVNotOp, BVAndOp, BVOrOp, BVXOrOp, BVAddOp, BVMulOp, BVUDivOp, BVSDivOp, BVURemOp, BVSRemOp, BVSModOp, BVShlOp, BVLShrOp, BVAShrOp], [BoolType, BitVectorType, FuncType, BitVectorAttr])
module-attribute
BoolType
dataclass
Bases: ParametrizedAttribute, TypeAttribute
A boolean.
Source code in xdsl/dialects/smt.py
49 50 51 52 53 | |
name = 'smt.bool'
class-attribute
instance-attribute
BitVectorType
Bases: ParametrizedAttribute, TypeAttribute
This type represents the (_ BitVec width) sort as described in the SMT bitvector theory. The bit-width must be strictly greater than zero.
Source code in xdsl/dialects/smt.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
name = 'smt.bv'
class-attribute
instance-attribute
width: IntAttr
instance-attribute
__init__(width: int | IntAttr)
Source code in xdsl/dialects/smt.py
67 68 69 70 | |
parse_parameters(parser: AttrParser) -> Sequence[Attribute]
classmethod
Source code in xdsl/dialects/smt.py
72 73 74 75 76 77 | |
print_parameters(printer: Printer) -> None
Source code in xdsl/dialects/smt.py
79 80 | |
verify() -> None
Source code in xdsl/dialects/smt.py
82 83 84 85 86 87 88 | |
value_range() -> tuple[int, int]
The range of values that this bitvector can represent. The maximum value is exclusive.
Source code in xdsl/dialects/smt.py
90 91 92 93 94 95 | |
FuncType
Bases: ParametrizedAttribute, TypeAttribute
A function type.
Source code in xdsl/dialects/smt.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
name = 'smt.func'
class-attribute
instance-attribute
domain_types: ArrayAttr[NonFuncSMTType]
instance-attribute
The types of the function arguments.
range_type: NonFuncSMTType
instance-attribute
The type of the function result.
__init__(domain_types: Sequence[NonFuncSMTType], range_type: NonFuncSMTType)
Source code in xdsl/dialects/smt.py
114 115 116 117 | |
parse_parameters(parser: AttrParser) -> Sequence[Attribute]
classmethod
Source code in xdsl/dialects/smt.py
119 120 121 122 123 124 125 126 127 | |
print_parameters(printer: Printer) -> None
Source code in xdsl/dialects/smt.py
129 130 131 132 133 134 | |
constr(domain: RangeConstraint[NonFuncSMTType], range: AttrConstraint[NonFuncSMTType]) -> AttrConstraint[FuncType]
staticmethod
Source code in xdsl/dialects/smt.py
136 137 138 139 140 141 | |
BitVectorAttr
Bases: TypedAttribute
Source code in xdsl/dialects/smt.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | |
name = 'smt.bv'
class-attribute
instance-attribute
value: IntAttr
instance-attribute
type: BitVectorType
instance-attribute
__init__(value: int | IntAttr, type: BitVectorType | int)
Source code in xdsl/dialects/smt.py
155 156 157 158 159 160 | |
verify() -> None
Source code in xdsl/dialects/smt.py
162 163 164 165 166 167 168 169 | |
constr(type: AttrConstraint[BitVectorType]) -> AttrConstraint[BitVectorAttr]
staticmethod
Source code in xdsl/dialects/smt.py
171 172 173 174 175 176 177 178 179 180 181 | |
get_type_index() -> int
classmethod
Source code in xdsl/dialects/smt.py
183 184 185 | |
parse_parameters(parser: AttrParser) -> Sequence[Attribute]
classmethod
Source code in xdsl/dialects/smt.py
187 188 189 190 191 192 193 | |
print_parameters(printer: Printer) -> None
Source code in xdsl/dialects/smt.py
195 196 | |
parse_with_type(parser: AttrParser, type: Attribute) -> TypedAttribute
staticmethod
Source code in xdsl/dialects/smt.py
198 199 200 201 202 203 204 205 | |
print_without_type(printer: Printer) -> None
Source code in xdsl/dialects/smt.py
207 208 | |
DeclareFunOp
Bases: IRDLOperation
This operation declares a symbolic value just as the declare-const and declare-fun statements in SMT-LIB 2.7. The result type determines the SMT sort of the symbolic value. The returned value can then be used to refer to the symbolic value instead of using the identifier like in SMT-LIB.
The optionally provided string will be used as a prefix for the newly generated identifier (useful for easier readability when exporting to SMT-LIB). Each declare will always provide a unique new symbolic value even if the identifier strings are the same.
Source code in xdsl/dialects/smt.py
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | |
name = 'smt.declare_fun'
class-attribute
instance-attribute
name_prefix = opt_prop_def(StringAttr, prop_name='namePrefix')
class-attribute
instance-attribute
result = result_def(SMTType)
class-attribute
instance-attribute
assembly_format = '($namePrefix^)? attr-dict `:` type($result)'
class-attribute
instance-attribute
__init__(result_type: SMTType, name_prefix: StringAttr | str | None = None)
Source code in xdsl/dialects/smt.py
232 233 234 235 236 237 238 239 | |
ApplyFuncOp
Bases: IRDLOperation
This operation performs a function application as described in the SMT-LIB 2.7 standard. It is part of the SMT-LIB core theory.
Source code in xdsl/dialects/smt.py
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |
name = 'smt.apply_func'
class-attribute
instance-attribute
DOMAIN: ClassVar = RangeVarConstraint('DOMAIN', RangeOf(NonFuncSMTTypeConstr))
class-attribute
instance-attribute
RANGE: ClassVar = VarConstraint('RANGE', NonFuncSMTTypeConstr)
class-attribute
instance-attribute
func = operand_def(FuncType.constr(DOMAIN, RANGE))
class-attribute
instance-attribute
args = var_operand_def(DOMAIN)
class-attribute
instance-attribute
result = result_def(RANGE)
class-attribute
instance-attribute
assembly_format = '$func `(` $args `)` attr-dict `:` type($func)'
class-attribute
instance-attribute
__init__(func: SSAValue[FuncType], *args: SSAValue)
Source code in xdsl/dialects/smt.py
261 262 263 264 | |
ConstantBoolOp
Bases: IRDLOperation, ConstantLikeInterface
This operation represents a constant boolean value. The semantics are equivalent to the ‘true’ and ‘false’ keywords in the Core theory of the SMT-LIB Standard 2.7.
Source code in xdsl/dialects/smt.py
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | |
name = 'smt.constant'
class-attribute
instance-attribute
value_attr = prop_def(BoolAttr, prop_name='value')
class-attribute
instance-attribute
result = result_def(BoolType())
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
assembly_format = 'qualified($value) attr-dict'
class-attribute
instance-attribute
value: bool
property
__init__(value: bool)
Source code in xdsl/dialects/smt.py
284 285 286 | |
get_constant_value() -> Attribute
Source code in xdsl/dialects/smt.py
292 293 | |
NotOp
Bases: IRDLOperation
This operation performs a boolean negation. The semantics are equivalent to the ’not’ operator in the Core theory of the SMT-LIB Standard 2.7.
Source code in xdsl/dialects/smt.py
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | |
name = 'smt.not'
class-attribute
instance-attribute
input = operand_def(BoolType)
class-attribute
instance-attribute
result = result_def(BoolType)
class-attribute
instance-attribute
assembly_format = '$input attr-dict'
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
__init__(input: SSAValue)
Source code in xdsl/dialects/smt.py
312 313 | |
VariadicBoolOp
Bases: IRDLOperation
A variadic operation on boolean. It has a variadic number of operands, but requires at least two.
Source code in xdsl/dialects/smt.py
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 | |
inputs = var_operand_def(RangeOf(base(BoolType)).of_length(AtLeast(2)))
class-attribute
instance-attribute
result = result_def(BoolType())
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
assembly_format = '$inputs attr-dict'
class-attribute
instance-attribute
__init__(*operands: SSAValue)
Source code in xdsl/dialects/smt.py
329 330 | |
AndOp
dataclass
Bases: VariadicBoolOp
This operation performs a boolean conjunction. The semantics are equivalent to the ‘and’ operator in the Core theory of the SMT-LIB Standard 2.7.
It supports a variadic number of operands, but requires at least two.
Source code in xdsl/dialects/smt.py
333 334 335 336 337 338 339 340 341 342 | |
name = 'smt.and'
class-attribute
instance-attribute
OrOp
dataclass
Bases: VariadicBoolOp
This operation performs a boolean disjunction. The semantics are equivalent to the ‘or’ operator in the Core theory of the SMT-LIB Standard 2.7.
It supports a variadic number of operands, but requires at least two.
Source code in xdsl/dialects/smt.py
345 346 347 348 349 350 351 352 353 354 | |
name = 'smt.or'
class-attribute
instance-attribute
XOrOp
dataclass
Bases: VariadicBoolOp
This operation performs a boolean exclusive or. The semantics are equivalent to the ‘xor’ operator in the Core theory of the SMT-LIB Standard 2.7.
It supports a variadic number of operands, but requires at least two.
Source code in xdsl/dialects/smt.py
357 358 359 360 361 362 363 364 365 366 | |
name = 'smt.xor'
class-attribute
instance-attribute
ImpliesOp
Bases: IRDLOperation
This operation performs a boolean implication. The semantics are equivalent
to the => operator in the Core theory of the SMT-LIB Standard 2.7.
Source code in xdsl/dialects/smt.py
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 | |
name = 'smt.implies'
class-attribute
instance-attribute
lhs = operand_def(BoolType)
class-attribute
instance-attribute
rhs = operand_def(BoolType)
class-attribute
instance-attribute
result = result_def(BoolType)
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
assembly_format = '$lhs `,` $rhs attr-dict'
class-attribute
instance-attribute
__init__(lhs: SSAValue, rhs: SSAValue)
Source code in xdsl/dialects/smt.py
386 387 | |
VariadicPredicateOp
Bases: IRDLOperation, ABC
A predicate with a variadic number (but at least 2) operands.
Source code in xdsl/dialects/smt.py
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 | |
T: ClassVar = VarConstraint('T', NonFuncSMTTypeConstr)
class-attribute
instance-attribute
inputs = var_operand_def(RangeOf(T).of_length(AtLeast(2)))
class-attribute
instance-attribute
result = result_def(BoolType())
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
parse(parser: Parser) -> Self
classmethod
Source code in xdsl/dialects/smt.py
440 441 442 443 444 445 | |
print(printer: Printer)
Source code in xdsl/dialects/smt.py
447 448 449 450 | |
__init__(*operands: SSAValue)
Source code in xdsl/dialects/smt.py
452 453 | |
DistinctOp
dataclass
Bases: VariadicPredicateOp
This operation compares the operands and returns true iff all operands are not
identical to any of the other operands. The semantics are equivalent to the
distinct operator defined in the SMT-LIB Standard 2.7 in the Core theory.
Any SMT sort/type is allowed for the operands and it supports a variadic
number of operands, but requires at least two. This is because the distinct
operator is annotated with :pairwise which means that distinct a b c d is
equivalent to
and (distinct a b) (distinct a c) (distinct a d)
(distinct b c) (distinct b d) (distinct c d)
Source code in xdsl/dialects/smt.py
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | |
name = 'smt.distinct'
class-attribute
instance-attribute
EqOp
dataclass
Bases: VariadicPredicateOp
This operation compares the operands and returns true iff all operands are
identical. The semantics are equivalent to the = operator defined in the
SMT-LIB Standard 2.7 in the Core theory.
Any SMT sort/type is allowed for the operands and it supports a variadic number of
operands, but requires at least two. This is because the = operator is annotated
with :chainable which means that = a b c d is equivalent to
and (= a b) (= b c) (= c d) where and is annotated :left-assoc, i.e., it can
be further rewritten to and (and (= a b) (= b c)) (= c d).
Source code in xdsl/dialects/smt.py
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 | |
name = 'smt.eq'
class-attribute
instance-attribute
IteOp
Bases: IRDLOperation
This operation returns its second operand or its third operand depending on whether its first operand is true or not. The semantics are equivalent to the ite operator defined in the Core theory of the SMT-LIB 2.7 standard.
Source code in xdsl/dialects/smt.py
494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 | |
name = 'smt.ite'
class-attribute
instance-attribute
T: ClassVar = VarConstraint('T', NonFuncSMTTypeConstr)
class-attribute
instance-attribute
cond = operand_def(BoolType)
class-attribute
instance-attribute
then_value = operand_def(T)
class-attribute
instance-attribute
else_value = operand_def(T)
class-attribute
instance-attribute
result = result_def(T)
class-attribute
instance-attribute
assembly_format = '$cond `,` $then_value `,` $else_value attr-dict `:` type($result)'
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
__init__(cond: SSAValue, then_value: SSAValue, else_value: SSAValue)
Source code in xdsl/dialects/smt.py
518 519 520 521 522 | |
QuantifierOp
Bases: IRDLOperation, ABC
Source code in xdsl/dialects/smt.py
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 | |
result = result_def(BoolType)
class-attribute
instance-attribute
body = region_def('single_block')
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
assembly_format = 'attr-dict-with-keyword $body'
class-attribute
instance-attribute
returned_value: SSAValue[BoolType]
property
The value returned by the quantifier. This is the value that is passed
to the smt.yield terminator of the operation region.
This function will asserts if the region is not correctly terminated by
an smt.yield operation with a single boolean operand.
__init__(body: Region) -> None
Source code in xdsl/dialects/smt.py
533 534 | |
verify_() -> None
Source code in xdsl/dialects/smt.py
536 537 538 539 540 541 542 543 | |
ExistsOp
dataclass
Bases: QuantifierOp
This operation represents the exists quantifier as described in the SMT-LIB 2.7
standard. It is part of the language itself rather than a theory or logic.
Source code in xdsl/dialects/smt.py
558 559 560 561 562 563 564 565 | |
name = 'smt.exists'
class-attribute
instance-attribute
ForallOp
dataclass
Bases: QuantifierOp
This operation represents the forall quantifier as described in the SMT-LIB 2.7
standard. It is part of the language itself rather than a theory or logic.
Source code in xdsl/dialects/smt.py
568 569 570 571 572 573 574 575 | |
name = 'smt.forall'
class-attribute
instance-attribute
YieldOp
Bases: IRDLOperation
Source code in xdsl/dialects/smt.py
578 579 580 581 582 583 584 585 586 587 588 589 | |
name = 'smt.yield'
class-attribute
instance-attribute
values = var_operand_def(NonFuncSMTType)
class-attribute
instance-attribute
assembly_format = '($values^ `:` type($values))? attr-dict'
class-attribute
instance-attribute
traits = traits_def(IsTerminator(), HasParent(ExistsOp, ForallOp))
class-attribute
instance-attribute
__init__(*values: SSAValue)
Source code in xdsl/dialects/smt.py
588 589 | |
AssertOp
Bases: IRDLOperation
Assert that a boolean expression holds.
Source code in xdsl/dialects/smt.py
592 593 594 595 596 597 598 599 600 601 602 603 | |
name = 'smt.assert'
class-attribute
instance-attribute
input = operand_def(BoolType)
class-attribute
instance-attribute
assembly_format = '$input attr-dict'
class-attribute
instance-attribute
__init__(input: SSAValue)
Source code in xdsl/dialects/smt.py
602 603 | |
BvConstantOp
Bases: IRDLOperation, ConstantLikeInterface
This operation produces an SSA value equal to the bitvector constant specified by the ‘value’ attribute.
Source code in xdsl/dialects/smt.py
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 | |
name = 'smt.bv.constant'
class-attribute
instance-attribute
T: ClassVar = VarConstraint('T', base(BitVectorType))
class-attribute
instance-attribute
value = prop_def(BitVectorAttr.constr(T))
class-attribute
instance-attribute
result = result_def(T)
class-attribute
instance-attribute
assembly_format = 'qualified($value) attr-dict'
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
__init__(value: BitVectorAttr | int, type: int | BitVectorType | None = None)
__init__(value: BitVectorAttr) -> None
__init__(value: int, type: BitVectorType | int) -> None
Create a new BvConstantOp from a value and a bitvector width.
Source code in xdsl/dialects/smt.py
630 631 632 633 634 635 636 637 638 639 640 641 | |
get_constant_value() -> Attribute
Source code in xdsl/dialects/smt.py
643 644 | |
UnaryBVOp
Bases: IRDLOperation, ABC
A unary bitvector operation. It has one operand and one result of the same bitvector type.
Source code in xdsl/dialects/smt.py
647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 | |
T: ClassVar = VarConstraint('T', base(BitVectorType))
class-attribute
instance-attribute
input = operand_def(T)
class-attribute
instance-attribute
result = result_def(T)
class-attribute
instance-attribute
assembly_format = '$input attr-dict `:` type($result)'
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
__init__(input: SSAValue[BitVectorType])
Source code in xdsl/dialects/smt.py
662 663 | |
BVNotOp
dataclass
Bases: UnaryBVOp
A unary bitwise not operation for bitvectors. It corresponds to the 'not' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
666 667 668 669 670 671 672 673 | |
name = 'smt.bv.not'
class-attribute
instance-attribute
BVNegOp
dataclass
Bases: UnaryBVOp
A unary negation operation for bitvectors. It corresponds to the 'neg' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
676 677 678 679 680 681 682 683 | |
name = 'smt.bv.neg'
class-attribute
instance-attribute
BinaryBVOp
Bases: IRDLOperation, ABC
A binary bitvector operation. It has two operands and one result of the same bitvector type.
Source code in xdsl/dialects/smt.py
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 | |
T: ClassVar = VarConstraint('T', base(BitVectorType))
class-attribute
instance-attribute
lhs = operand_def(T)
class-attribute
instance-attribute
rhs = operand_def(T)
class-attribute
instance-attribute
result = result_def(T)
class-attribute
instance-attribute
assembly_format = '$lhs `,` $rhs attr-dict `:` type($result)'
class-attribute
instance-attribute
traits = traits_def(Pure())
class-attribute
instance-attribute
__init__(lhs: SSAValue[BitVectorType], rhs: SSAValue[BitVectorType])
Source code in xdsl/dialects/smt.py
702 703 | |
BVAndOp
dataclass
Bases: BinaryBVOp
A bitwise AND operation for bitvectors. It corresponds to the 'bvand' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
706 707 708 709 710 711 712 713 | |
name = 'smt.bv.and'
class-attribute
instance-attribute
BVOrOp
dataclass
Bases: BinaryBVOp
A bitwise OR operation for bitvectors. It corresponds to the 'bvor' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
716 717 718 719 720 721 722 723 | |
name = 'smt.bv.or'
class-attribute
instance-attribute
BVXOrOp
dataclass
Bases: BinaryBVOp
A bitwise XOR operation for bitvectors. It corresponds to the 'bvxor' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
726 727 728 729 730 731 732 733 | |
name = 'smt.bv.xor'
class-attribute
instance-attribute
BVAddOp
dataclass
Bases: BinaryBVOp
An addition operation for bitvectors. It corresponds to the 'bvadd' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
736 737 738 739 740 741 742 743 | |
name = 'smt.bv.add'
class-attribute
instance-attribute
BVMulOp
dataclass
Bases: BinaryBVOp
A multiplication operation for bitvectors. It corresponds to the 'bvmul' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
746 747 748 749 750 751 752 753 | |
name = 'smt.bv.mul'
class-attribute
instance-attribute
BVUDivOp
dataclass
Bases: BinaryBVOp
An unsigned division operation (rounded towards zero) for bitvectors. It corresponds to the 'bvudiv' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
756 757 758 759 760 761 762 763 | |
name = 'smt.bv.udiv'
class-attribute
instance-attribute
BVSDivOp
dataclass
Bases: BinaryBVOp
A two's complement signed division operation (rounded towards zero) for bitvectors. It corresponds to the 'bvsdiv' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
766 767 768 769 770 771 772 773 | |
name = 'smt.bv.sdiv'
class-attribute
instance-attribute
BVURemOp
dataclass
Bases: BinaryBVOp
An unsigned remainder for bitvectors. It corresponds to the 'bvurem' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
776 777 778 779 780 781 782 783 | |
name = 'smt.bv.urem'
class-attribute
instance-attribute
BVSRemOp
dataclass
Bases: BinaryBVOp
A two's complement signed remainder (sign follows dividend) for bitvectors. It corresponds to the 'bvsrem' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
786 787 788 789 790 791 792 793 | |
name = 'smt.bv.srem'
class-attribute
instance-attribute
BVSModOp
dataclass
Bases: BinaryBVOp
A two's complement signed remainder (sign follows divisor) for bitvectors. It corresponds to the 'bvsmod' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
796 797 798 799 800 801 802 803 | |
name = 'smt.bv.smod'
class-attribute
instance-attribute
BVShlOp
dataclass
Bases: BinaryBVOp
A shift left for bitvectors. It corresponds to the 'bvshl' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
806 807 808 809 810 811 812 813 | |
name = 'smt.bv.shl'
class-attribute
instance-attribute
BVLShrOp
dataclass
Bases: BinaryBVOp
A logical shift right for bitvectors. It corresponds to the 'bvlshr' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
816 817 818 819 820 821 822 823 | |
name = 'smt.bv.lshr'
class-attribute
instance-attribute
BVAShrOp
dataclass
Bases: BinaryBVOp
An arithmetic shift right for bitvectors. It corresponds to the 'bvashr' operation in SMT-LIB.
Source code in xdsl/dialects/smt.py
826 827 828 829 830 831 832 833 | |