A prime field. Use SolverFor('QF_FF') for incremental field solving.
Definition at line 12776 of file z3py.py.
Try to cast `val` as an element of sort `self`.
This method is used in Z3Py to convert Python objects such as integers,
floats, longs and strings into Z3 expressions.
>>> x = Int('x')
>>> RealSort().cast(x)
ToReal(x)
Reimplemented from SortRef.
Definition at line 12781 of file z3py.py.
12781 def cast(self, value):
12782 if is_expr(value):
12783 if not self.eq(value.sort()):
12784 raise Z3Exception("finite-field sort mismatch")
12785 return value
12786 return FiniteFieldVal(value, self)
12787
12788