/usr/include/cvc3/expr_hash.h is in libcvc3-dev 2.4.1-5.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | /*****************************************************************************/
/*!
* \file expr_hash.h
* \brief Definition of the API to expression package. See class Expr for details.
*
* Author: Clark Barrett
*
* Created: Tue Nov 26 00:27:40 2002
*
* <hr>
*
* License to use, copy, modify, sell and/or distribute this software
* and its documentation for any purpose is hereby granted without
* royalty, subject to the terms and conditions defined in the \ref
* LICENSE file provided with this distribution.
*
* <hr>
*
* Define std::hash<Expr> and std::hash<std::string> for hash_map and
* hash_set over Expr class.
*/
/*****************************************************************************/
#ifndef _cvc3__expr_h_
#include "expr.h"
#endif
#ifndef _cvc3__include__expr_hash_h_
#define _cvc3__include__expr_hash_h_
#include "hash_fun.h"
namespace Hash
{
template<> struct hash<CVC3::Expr>
{
size_t operator()(const CVC3::Expr& e) const { return e.hash(); }
};
template<> class hash<std::string> {
private:
hash<const char*> h;
public:
size_t operator()(const std::string& s) const {
return h(s.c_str());
}
};
}
#endif
|