size 100 baseAddr 1000 headerSize 0 policy BEST listOrder ADDRSORT coalesce False Specify the return values and free list. Leave unused free list elements blank.
seed 12345 size 100 baseAddr 1000 headerSize 0 alignment -1 policy BEST listOrder ADDRSORT coalesce False numOps 10 range 10 percentAlloc 50 allocList compute True ptr[0] = Alloc(1) returned 1000 (searched 1 elements) Free List [ Size 1 ]: [ addr:1001 sz:99 ] Free(ptr[0]) returned 0 Free List [ Size 2 ]: [ addr:1000 sz:1 ][ addr:1001 sz:99 ] ptr[1] = Alloc(2) returned 1001 (searched 2 elements) Free List [ Size 2 ]: [ addr:1000 sz:1 ][ addr:1003 sz:97 ] Free(ptr[1]) returned 0 Free List [ Size 3 ]: [ addr:1000 sz:1 ][ addr:1001 sz:2 ][ addr:1003 sz:97 ] ptr[2] = Alloc(5) returned 1003 (searched 3 elements) Free List [ Size 3 ]: [ addr:1000 sz:1 ][ addr:1001 sz:2 ][ addr:1008 sz:92 ] Free(ptr[2]) returned 0 Free List [ Size 4 ]: [ addr:1000 sz:1 ][ addr:1001 sz:2 ][ addr:1003 sz:5 ][ addr:1008 sz:92 ] ptr[3] = Alloc(10) returned 1008 (searched 4 elements) Free List [ Size 4 ]: [ addr:1000 sz:1 ][ addr:1001 sz:2 ][ addr:1003 sz:5 ][ addr:1018 sz:82 ] ptr[4] = Alloc(10) returned 1018 (searched 4 elements) Free List [ Size 4 ]: [ addr:1000 sz:1 ][ addr:1001 sz:2 ][ addr:1003 sz:5 ][ addr:1028 sz:72 ] ptr[5] = Alloc(6) returned 1028 (searched 4 elements) Free List [ Size 4 ]: [ addr:1000 sz:1 ][ addr:1001 sz:2 ][ addr:1003 sz:5 ][ addr:1034 sz:66 ] ptr[6] = Alloc(8) returned 1034 (searched 4 elements) Free List [ Size 4 ]: [ addr:1000 sz:1 ][ addr:1001 sz:2 ][ addr:1003 sz:5 ][ addr:1042 sz:58 ]