/* QMC: simplification tool (by using the Quine - McClusky process) Copyright (C) 2000 Thomas Pollak This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Auf Deutsch: QMC: Vereinfachungsprogramm fuer logische Terme nach Quine - McClusky Copyright (C) 2000 Thomas Pollak Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen der GNU General Public License, wie von der Free Software Foundation herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 der Lizenz oder jeder spaeteren Version. Die Veroeffentlichung dieses Programms erfolgt in der Hoffnung, dass es Ihnen von Nutzen sein wird, aber OHNE JEDE GEWAEHRLEISTUNG - sogar ohne die implizite Gewaehrleistung der MARKTREIFE oder der EIGNUNG FUER EINEN BESTIMMTEN ZWECK. Details finden Sie in der GNU General Public License. Sie sollten eine Kopie der GNU General Public License zusammen mit diesem Programm erhalten haben. Falls nicht, schreiben Sie an die Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* file: compare.cc - engine file begin: 03/2000 email: thomas@pollaknet.at web: http://qmc.pollaknet.at */ //Headers #include #include //#include using namespace std; //Debug - switch //#define DEBUG //#define DEBUG2 /* compare (engine) */ //new sub function (temporary solution) void* resize(BOOL *old_array, unsigned short int size, unsigned short int size_add) { unsigned short int cnt; BOOL *new_array=NULL; new_array = new BOOL[size+size_add]; for(cnt=0;cnt disj_expr, final, disj_temp, disj_swap; //local variables bool *check = NULL, prgm_error = 0; unsigned char index=0, dindex = 0, diff, h=0; unsigned short i=0, j=0, ready = 0, t=0; //iso-fix check = new bool[high]; #ifdef DEBUG cerr << endl << endl << "compare.cc [compare]: STARTING FUNCTION"; cerr << " num_vars=" << (unsigned short)num_vars << "; current comb's " << high; cerr << "; running test..."; for(i=0;i