LLVMFuzzerTestOneInput:
   42|    281|extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   43|       |
   44|    281|  if (!size)
  ------------------
  |  Branch (44:7): [True: 0, False: 281]
  ------------------
   45|      0|    return 0;
   46|       |
   47|    281|  FuzzedDataProvider stream(data, size);
   48|    281|  hash_state *hs;
   49|    281|  if (init(&hs))
  ------------------
  |  |   28|    281|#define init CONCAT_TYPE(_init)
  |  |  ------------------
  |  |  |  |   26|    281|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   33|    281|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   32|    281|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (49:7): [True: 0, False: 281]
  ------------------
   50|      0|    return 0;
   51|       |
   52|  1.26k|  while (stream.remaining_bytes()) {
  ------------------
  |  Branch (52:10): [True: 1.12k, False: 141]
  ------------------
   53|  1.12k|    size_t num_bytes = stream.ConsumeIntegral<size_t>();
   54|  1.12k|    std::vector<uint8_t> buffer = stream.ConsumeBytes<uint8_t>(num_bytes);
   55|       |
   56|  1.12k|    if (update(hs, buffer.data(), buffer.size()))
  ------------------
  |  |   29|  1.12k|#define update CONCAT_TYPE(_update)
  |  |  ------------------
  |  |  |  |   26|  1.12k|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   33|  1.12k|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   32|  1.12k|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (56:9): [True: 140, False: 985]
  ------------------
   57|    140|      goto error;
   58|  1.12k|  }
   59|       |
   60|    141|  uint8_t result[DIGEST_SIZE];
   61|       |
   62|    141|#ifndef DIGEST_THIRD_PARAM
   63|    141|  digest(hs, result);
  ------------------
  |  |   30|    141|#define digest CONCAT_TYPE(_digest)
  |  |  ------------------
  |  |  |  |   26|    141|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   33|    141|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   32|    141|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   64|       |#else
   65|       |  digest(hs, result, DIGEST_SIZE);
   66|       |#endif
   67|       |
   68|    281|error:
   69|    281|  destroy(hs);
  ------------------
  |  |   31|    281|#define destroy CONCAT_TYPE(_destroy)
  |  |  ------------------
  |  |  |  |   26|    281|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   33|    281|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   32|    281|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   70|    281|  return 0;
   71|    141|}

_Z8MD5_initPP12t_hash_state:
  178|    281|{
  179|    281|    hash_state *hs;
  180|       |
  181|    281|    if (NULL == mdState) {
  ------------------
  |  Branch (181:9): [True: 0, False: 281]
  ------------------
  182|      0|        return ERR_NULL;
  ------------------
  |  |    5|      0|#define ERR_NULL                1
  ------------------
  183|      0|    }
  184|       |
  185|    281|    *mdState = hs = (hash_state*) calloc(1, sizeof(hash_state));
  186|    281|    if (NULL == hs)
  ------------------
  |  Branch (186:9): [True: 0, False: 281]
  ------------------
  187|      0|        return ERR_MEMORY;
  ------------------
  |  |    6|      0|#define ERR_MEMORY              2
  ------------------
  188|       |
  189|    281|    hs->curlen = 0;
  190|    281|    hs->totbits = 0;
  191|       |
  192|       |    /** Initial intermediate hash value **/
  193|    281|    hs->h[0] = 0x67452301;
  194|    281|    hs->h[1] = 0xefcdab89;
  195|    281|    hs->h[2] = 0x98badcfe;
  196|    281|    hs->h[3] = 0x10325476;
  197|       |
  198|    281|    return 0;
  199|    281|}
_Z11MD5_destroyP12t_hash_state:
  202|    281|{
  203|    281|    free(mdState);
  204|    281|    return 0;
  205|    281|}
_Z10MD5_updateP12t_hash_statePKhm:
  208|  1.12k|{
  209|  1.12k|    unsigned curlen;
  210|       |
  211|  1.12k|    if (NULL == hs || NULL == buf) {
  ------------------
  |  Branch (211:9): [True: 0, False: 1.12k]
  |  Branch (211:23): [True: 140, False: 985]
  ------------------
  212|    140|        return ERR_NULL;
  ------------------
  |  |    5|    140|#define ERR_NULL                1
  ------------------
  213|    140|    }
  214|       |
  215|       |    /*
  216|       |     * Read the position in buf[] only once, and check it: if several
  217|       |     * threads used the object at once (not supported), the state could
  218|       |     * be inconsistent, but buf[] must never overflow.
  219|       |     */
  220|    985|    curlen = hs->curlen;
  221|    985|    if (curlen >= BLOCK_SIZE) {
  ------------------
  |  |   64|    985|#define BLOCK_SIZE 64
  ------------------
  |  Branch (221:9): [True: 0, False: 985]
  ------------------
  222|      0|        return ERR_STATE;
  ------------------
  |  |   26|      0|#define ERR_STATE               20
  ------------------
  223|      0|    }
  224|       |
  225|   281k|    while (len>0) {
  ------------------
  |  Branch (225:12): [True: 280k, False: 985]
  ------------------
  226|   280k|        unsigned left, btc;
  227|       |
  228|   280k|        left = BLOCK_SIZE - curlen;
  ------------------
  |  |   64|   280k|#define BLOCK_SIZE 64
  ------------------
  229|   280k|        btc = (unsigned)MIN(left, len);
  ------------------
  |  |   29|   280k|#define MIN(a,b) ((a)<(b)?(a):(b))
  |  |  ------------------
  |  |  |  Branch (29:19): [True: 279k, False: 985]
  |  |  ------------------
  ------------------
  230|   280k|        memcpy(&hs->buf[curlen], buf, btc);
  231|   280k|        buf += btc;
  232|   280k|        curlen += btc;
  233|   280k|        len -= btc;
  234|       |
  235|   280k|        if (curlen == BLOCK_SIZE) {
  ------------------
  |  |   64|   280k|#define BLOCK_SIZE 64
  ------------------
  |  Branch (235:13): [True: 279k, False: 953]
  ------------------
  236|   279k|            md5_compress(hs);
  237|   279k|            curlen = 0;
  238|   279k|            if (add_bits(hs, BLOCK_SIZE*8)) {
  ------------------
  |  |   64|   279k|#define BLOCK_SIZE 64
  ------------------
  |  Branch (238:17): [True: 0, False: 279k]
  ------------------
  239|      0|                hs->curlen = 0;
  240|      0|                return ERR_MAX_DATA;
  ------------------
  |  |   14|      0|#define ERR_MAX_DATA            10
  ------------------
  241|      0|            }
  242|   279k|        }
  243|   280k|    }
  244|       |
  245|    985|    hs->curlen = curlen;
  246|    985|    return 0;
  247|    985|}
_Z10MD5_digestPK12t_hash_statePh:
  295|    141|{
  296|    141|    hash_state temp;
  297|       |
  298|    141|    if (NULL == mdState) {
  ------------------
  |  Branch (298:9): [True: 0, False: 141]
  ------------------
  299|      0|        return ERR_NULL;
  ------------------
  |  |    5|      0|#define ERR_NULL                1
  ------------------
  300|      0|    }
  301|       |
  302|    141|    temp = *mdState;
  303|    141|    return md5_finalize(&temp, digest);
  ------------------
  |  |   30|    141|#define digest CONCAT_TYPE(_digest)
  |  |  ------------------
  |  |  |  |   26|    141|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   33|    141|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   32|    141|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  304|    141|}
pcd_hash_fuzzer.cc:_ZL12md5_compressP12t_hash_state:
   83|   279k|{
   84|   279k|    uint32_t a, b, c, d;
   85|   279k|    uint32_t x[16];
   86|   279k|    int i;
   87|       |
   88|       |    /** Words flow in in little-endian mode **/
   89|  4.75M|    for (i=0; i<16; i++) {
  ------------------
  |  Branch (89:15): [True: 4.47M, False: 279k]
  ------------------
   90|  4.47M|        x[i] = LOAD_U32_LITTLE(&hs->buf[i*4]);
  ------------------
  |  |   69|  4.47M|#define LOAD_U32_LITTLE(p) load_u8to32_little(p)
  ------------------
   91|  4.47M|    }
   92|       |
   93|   279k|    a = hs->h[0];
   94|   279k|    b = hs->h[1];
   95|   279k|    c = hs->h[2];
   96|   279k|    d = hs->h[3];
   97|       |  
   98|       |	/* Round 1 */
   99|   279k|  	FF (a, b, c, d, x[ 0], S11, 0xd76aa478); /* 1 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  100|   279k|  	FF (d, a, b, c, x[ 1], S12, 0xe8c7b756); /* 2 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  101|   279k| 	FF (c, d, a, b, x[ 2], S13, 0x242070db); /* 3 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  102|   279k|  	FF (b, c, d, a, x[ 3], S14, 0xc1bdceee); /* 4 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  103|   279k|  	FF (a, b, c, d, x[ 4], S11, 0xf57c0faf); /* 5 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  104|   279k|  	FF (d, a, b, c, x[ 5], S12, 0x4787c62a); /* 6 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  105|   279k|  	FF (c, d, a, b, x[ 6], S13, 0xa8304613); /* 7 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  106|   279k|  	FF (b, c, d, a, x[ 7], S14, 0xfd469501); /* 8 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  107|   279k|  	FF (a, b, c, d, x[ 8], S11, 0x698098d8); /* 9 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  108|   279k|  	FF (d, a, b, c, x[ 9], S12, 0x8b44f7af); /* 10 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  109|   279k|  	FF (c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  110|   279k|  	FF (b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  111|   279k|  	FF (a, b, c, d, x[12], S11, 0x6b901122); /* 13 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  112|   279k|  	FF (d, a, b, c, x[13], S12, 0xfd987193); /* 14 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  113|   279k|  	FF (c, d, a, b, x[14], S13, 0xa679438e); /* 15 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  114|   279k|  	FF (b, c, d, a, x[15], S14, 0x49b40821); /* 16 */
  ------------------
  |  |   23|   279k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   24|   279k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   16|   279k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   25|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   26|   279k| (a) += (b); \
  |  |   27|   279k| }
  ------------------
  115|       |
  116|       | 	/* Round 2 */
  117|   279k|  	GG (a, b, c, d, x[ 1], S21, 0xf61e2562); /* 17 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  118|   279k|  	GG (d, a, b, c, x[ 6], S22, 0xc040b340); /* 18 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  119|   279k|  	GG (c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  120|   279k|  	GG (b, c, d, a, x[ 0], S24, 0xe9b6c7aa); /* 20 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  121|   279k|  	GG (a, b, c, d, x[ 5], S21, 0xd62f105d); /* 21 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  122|   279k|  	GG (d, a, b, c, x[10], S22,  0x2441453); /* 22 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  123|   279k|  	GG (c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  124|   279k|  	GG (b, c, d, a, x[ 4], S24, 0xe7d3fbc8); /* 24 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  125|   279k|  	GG (a, b, c, d, x[ 9], S21, 0x21e1cde6); /* 25 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  126|   279k|  	GG (d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  127|   279k|  	GG (c, d, a, b, x[ 3], S23, 0xf4d50d87); /* 27 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  128|   279k|  	GG (b, c, d, a, x[ 8], S24, 0x455a14ed); /* 28 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  129|   279k|  	GG (a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  130|   279k|  	GG (d, a, b, c, x[ 2], S22, 0xfcefa3f8); /* 30 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  131|   279k|  	GG (c, d, a, b, x[ 7], S23, 0x676f02d9); /* 31 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  132|   279k|  	GG (b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */
  ------------------
  |  |   29|   279k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   30|   279k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   17|   279k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   31|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   32|   279k| (a) += (b); \
  |  |   33|   279k| }
  ------------------
  133|       |
  134|       |  	/* Round 3 */
  135|   279k|  	HH (a, b, c, d, x[ 5], S31, 0xfffa3942); /* 33 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  136|   279k|  	HH (d, a, b, c, x[ 8], S32, 0x8771f681); /* 34 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  137|   279k|  	HH (c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  138|   279k|  	HH (b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  139|   279k|  	HH (a, b, c, d, x[ 1], S31, 0xa4beea44); /* 37 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  140|   279k|  	HH (d, a, b, c, x[ 4], S32, 0x4bdecfa9); /* 38 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  141|   279k|  	HH (c, d, a, b, x[ 7], S33, 0xf6bb4b60); /* 39 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  142|   279k|  	HH (b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  143|   279k|  	HH (a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  144|   279k|  	HH (d, a, b, c, x[ 0], S32, 0xeaa127fa); /* 42 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  145|   279k|  	HH (c, d, a, b, x[ 3], S33, 0xd4ef3085); /* 43 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  146|   279k|  	HH (b, c, d, a, x[ 6], S34,  0x4881d05); /* 44 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  147|   279k|  	HH (a, b, c, d, x[ 9], S31, 0xd9d4d039); /* 45 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  148|   279k|  	HH (d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  149|   279k|  	HH (c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  150|   279k|  	HH (b, c, d, a, x[ 2], S34, 0xc4ac5665); /* 48 */
  ------------------
  |  |   35|   279k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   36|   279k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   18|   279k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   37|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   38|   279k| (a) += (b); \
  |  |   39|   279k| }
  ------------------
  151|       |
  152|       |  	/* Round 4 */
  153|   279k|  	II (a, b, c, d, x[ 0], S41, 0xf4292244); /* 49 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  154|   279k|  	II (d, a, b, c, x[ 7], S42, 0x432aff97); /* 50 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  155|   279k|  	II (c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  156|   279k|  	II (b, c, d, a, x[ 5], S44, 0xfc93a039); /* 52 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  157|   279k|  	II (a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  158|   279k|  	II (d, a, b, c, x[ 3], S42, 0x8f0ccc92); /* 54 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  159|   279k|  	II (c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  160|   279k|  	II (b, c, d, a, x[ 1], S44, 0x85845dd1); /* 56 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  161|   279k|  	II (a, b, c, d, x[ 8], S41, 0x6fa87e4f); /* 57 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  162|   279k|  	II (d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  163|   279k|  	II (c, d, a, b, x[ 6], S43, 0xa3014314); /* 59 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  164|   279k|  	II (b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  165|   279k|  	II (a, b, c, d, x[ 4], S41, 0xf7537e82); /* 61 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  166|   279k|  	II (d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  167|   279k|  	II (c, d, a, b, x[ 2], S43, 0x2ad7d2bb); /* 63 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  168|   279k|  	II (b, c, d, a, x[ 9], S44, 0xeb86d391); /* 64 */
  ------------------
  |  |   41|   279k|#define II(a, b, c, d, x, s, ac) { \
  |  |   42|   279k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   19|   279k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   43|   279k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   21|   279k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   44|   279k| (a) += (b); \
  |  |   45|   279k| }
  ------------------
  169|       |
  170|       |    /** compute new intermediate hash **/
  171|   279k|    hs->h[0] += a;
  172|   279k|    hs->h[1] += b;
  173|   279k|    hs->h[2] += c;
  174|   279k|    hs->h[3] += d;
  175|   279k|}
pcd_hash_fuzzer.cc:_ZL8add_bitsP12t_hash_statej:
   76|   279k|{
   77|       |    /** Maximum message length for MD5 is 2**64 bits **/
   78|   279k|    hs->totbits += bits;
   79|   279k|    return (hs->totbits < bits) ? ERR_MAX_DATA : 0;
  ------------------
  |  |   14|      0|#define ERR_MAX_DATA            10
  ------------------
  |  Branch (79:12): [True: 0, False: 279k]
  ------------------
   80|   279k|}
pcd_hash_fuzzer.cc:_ZL12md5_finalizeP12t_hash_statePh:
  250|    141|{
  251|    141|    unsigned left, i;
  252|       |
  253|       |    /* hs is a private copy, but it may come from an inconsistent state */
  254|    141|    if (hs->curlen >= BLOCK_SIZE) {
  ------------------
  |  |   64|    141|#define BLOCK_SIZE 64
  ------------------
  |  Branch (254:9): [True: 0, False: 141]
  ------------------
  255|      0|        return ERR_STATE;
  ------------------
  |  |   26|      0|#define ERR_STATE               20
  ------------------
  256|      0|    }
  257|       |
  258|       |    /* remaining length of the message */
  259|    141|    if (add_bits(hs, hs->curlen*8)) {
  ------------------
  |  Branch (259:9): [True: 0, False: 141]
  ------------------
  260|      0|        return ERR_MAX_DATA;
  ------------------
  |  |   14|      0|#define ERR_MAX_DATA            10
  ------------------
  261|      0|    }
  262|       |
  263|       |    /* append the '1' bit */
  264|       |    /* buf[] is guaranteed to have at least 1 byte free */
  265|    141|    hs->buf[hs->curlen++] = 0x80;
  266|       |
  267|       |    /** if there are less then 64 bits lef, just pad with zeroes and compress **/
  268|    141|    left = BLOCK_SIZE - hs->curlen;
  ------------------
  |  |   64|    141|#define BLOCK_SIZE 64
  ------------------
  269|    141|    if (left < 8) {
  ------------------
  |  Branch (269:9): [True: 56, False: 85]
  ------------------
  270|     56|        memset(&hs->buf[hs->curlen], 0, left);
  271|     56|        md5_compress(hs);
  272|     56|        hs->curlen = 0;
  273|     56|    }
  274|       |
  275|       |    /**
  276|       |     * pad with zeroes and close the block with the bit length
  277|       |     * encoded as 64-bit integer little endian.
  278|       |     **/
  279|    141|    left = BLOCK_SIZE - hs->curlen;
  ------------------
  |  |   64|    141|#define BLOCK_SIZE 64
  ------------------
  280|    141|    memset(&hs->buf[hs->curlen], 0, left);
  281|    141|    STORE_U64_LITTLE(&hs->buf[BLOCK_SIZE-8], hs->totbits);
  ------------------
  |  |  158|    141|#define STORE_U64_LITTLE(p, w) u64to8_little((p), &(w))
  ------------------
  282|       |
  283|       |    /** compress one last time **/
  284|    141|    md5_compress(hs);
  285|       |
  286|       |    /** create final hash **/
  287|    705|    for (i=0; i<4; i++) {
  ------------------
  |  Branch (287:15): [True: 564, False: 141]
  ------------------
  288|    564|        STORE_U32_LITTLE(&hash[i*4], hs->h[i]);
  ------------------
  |  |   72|    564|#define STORE_U32_LITTLE(p, w) u32to8_little((p), &(w))
  ------------------
  289|    564|    }
  290|       |
  291|    141|    return 0;
  292|    141|}

pcd_hash_fuzzer.cc:_ZL18load_u8to32_littlePKh:
   54|  4.47M|{
   55|  4.47M|    uint32_t w;
   56|       |
   57|  4.47M|    u8to32_little(&w, p);
   58|  4.47M|    return w;
   59|  4.47M|}
pcd_hash_fuzzer.cc:_ZL13u8to32_littlePjPKh:
   24|  4.47M|{
   25|       |#ifdef PYCRYPTO_LITTLE_ENDIAN
   26|       |    memcpy(w, p, 4);
   27|       |#else
   28|  4.47M|    *w = (uint32_t)p[0] | (uint32_t)p[1]<<8 | (uint32_t)p[2]<<16 | (uint32_t)p[3]<<24;
   29|  4.47M|#endif
   30|  4.47M|}
pcd_hash_fuzzer.cc:_ZL13u64to8_littlePhPKm:
   76|    141|{
   77|       |#ifdef PYCRYPTO_LITTLE_ENDIAN
   78|       |    memcpy(p, w, 8);
   79|       |#else
   80|    141|    p[0] = (uint8_t)*w;
   81|    141|    p[1] = (uint8_t)(*w >> 8);
   82|    141|    p[2] = (uint8_t)(*w >> 16);
   83|    141|    p[3] = (uint8_t)(*w >> 24);
   84|    141|    p[4] = (uint8_t)(*w >> 32);
   85|    141|    p[5] = (uint8_t)(*w >> 40);
   86|    141|    p[6] = (uint8_t)(*w >> 48);
   87|    141|    p[7] = (uint8_t)(*w >> 56);
   88|    141|#endif
   89|    141|}
pcd_hash_fuzzer.cc:_ZL13u32to8_littlePhPKj:
   12|    564|{
   13|       |#ifdef PYCRYPTO_LITTLE_ENDIAN
   14|       |    memcpy(p, w, 4);
   15|       |#else
   16|    564|    p[0] = (uint8_t)*w;
   17|    564|    p[1] = (uint8_t)(*w >> 8);
   18|    564|    p[2] = (uint8_t)(*w >> 16);
   19|    564|    p[3] = (uint8_t)(*w >> 24);
   20|    564|#endif
   21|    564|}

