ESBMC
Efficient SMT-based Context-Bounded Model Checker
Loading...
Searching...
No Matches
mp_arith.h
Go to the documentation of this file.
1#ifndef CPROVER_MP_ARITH_H
2#define CPROVER_MP_ARITH_H
3
4#include <big-int/bigint.hh>
5#include <ostream>
6#include <string>
7
8std::ostream &operator<<(std::ostream &, const BigInt &);
9BigInt operator>>(const BigInt &, const BigInt &);
10BigInt operator<<(const BigInt &, const BigInt &);
11
12const std::string integer2string(const BigInt &, unsigned base = 10);
13const BigInt string2integer(const std::string &, unsigned base = 10);
14const std::string integer2binary(const BigInt &, std::size_t width);
15const BigInt binary2integer(const std::string &, bool is_signed);
16
17#endif // CPROVER_UTIL_MP_ARITH_H
static const twodig_t base
Definition bigint.cpp:28
Definition bigint.hh:58
std::ostream & operator<<(std::ostream &, const BigInt &)
Definition mp_arith.cpp:30
BigInt operator>>(const BigInt &, const BigInt &)
Definition mp_arith.cpp:9
const BigInt binary2integer(const std::string &, bool is_signed)
convert binary string representation to BigInt
Definition mp_arith.cpp:100
const BigInt string2integer(const std::string &, unsigned base=10)
Definition mp_arith.cpp:39
const std::string integer2binary(const BigInt &, std::size_t width)
Definition mp_arith.cpp:49
const std::string integer2string(const BigInt &, unsigned base=10)
Definition mp_arith.cpp:86