| 1840 | } |
| 1841 | |
| 1842 | expr expr::zext(unsigned amount) const { |
| 1843 | if (amount == 0) |
| 1844 | return *this; |
| 1845 | return mkUInt(0, amount).concat(*this); |
| 1846 | } |
| 1847 | |
| 1848 | expr expr::trunc(unsigned tobw) const { |
| 1849 | return extract(tobw-1, 0); |
no test coverage detected