cudd
3.0.0
The University of Colorado Decision Diagram Package
|
Simple test program of the st library. More...
Data Structures | |
struct | mys |
Just some struct type. More... | |
Typedefs | |
typedef struct mys | mys_t |
Just some struct type. | |
Functions | |
int | main (void) |
Main program. More... | |
static int | testString (void) |
Tests a table that stores C strings. More... | |
static int | testStruct (void) |
Tests a table that maps user-defined structs to uintptr_t. More... | |
static int | testUintPtr (void) |
Tests a table that maps values of type uintptr_t to strings. More... | |
static int | testInt (void) |
Tests a table that maps ints to ints. More... | |
static int | testArg (void) |
Tests a table of arrays of ints. More... | |
static int | mys_cmp (void const *key1, void const *key2) |
Compares two items of type mys_t. More... | |
static int | mys_hash (void const *key, int size) |
Hashes one item of type mys_t. More... | |
static enum st_retval | mys_accm (void *key, void *value, void *arg) |
Accumulates the values associated to items of type mys_t. More... | |
static int | array_cmp (void const *key1, void const *key2, void const *arg) |
Compares two arrays of ints. More... | |
static int | array_hash (void const *key, int modulus, void const *arg) |
Hashes one array of ints. More... | |
Simple test program of the st library.
Copyright (c) 2015, Regents of the University of Colorado
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the University of Colorado nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
static |
Compares two arrays of ints.
The length of the two arrays is in arg
.
|
static |
Hashes one array of ints.
int main | ( | void | ) |
Main program.
Uses TAP (Test Anything Protocol) to report results.
|
static |
Accumulates the values associated to items of type mys_t.
|
static |
Compares two items of type mys_t.
|
static |
Hashes one item of type mys_t.
|
static |
Tests a table of arrays of ints.
|
static |
Tests a table that maps ints to ints.
|
static |
Tests a table that stores C strings.
|
static |
Tests a table that maps user-defined structs to uintptr_t.
|
static |
Tests a table that maps values of type uintptr_t to strings.