From 5ec2f8b7b0a8b78aac9d4111b6f71e96e7e3518a Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 23 Feb 2016 15:58:08 +0100 Subject: [PATCH] * python/buddy.i: Add a hash function for BDDs. --- python/buddy.i | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/buddy.i b/python/buddy.i index a87097961..638a733a0 100644 --- a/python/buddy.i +++ b/python/buddy.i @@ -1,5 +1,5 @@ // -*- coding: utf-8 -*- -// Copyright (C) 2010, 2011, 2012, 2014 Laboratoire de Recherche et +// Copyright (C) 2010, 2011, 2012, 2014, 2016 Laboratoire de Recherche et // Développement de l'EPITA. // Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6), // département Systèmes Répartis Coopératifs (SRC), Université Pierre @@ -236,6 +236,7 @@ extern const bdd bddtrue; bool __ge__(bdd* b) { return self->id() >= b->id(); } bool __gt__(bdd* b) { return self->id() > b->id(); } + size_t __hash__() { return self->id(); } std::string __str__(void)