FILENAME = input.txtHASHTABLE SIZE = 528===HASHTABLE CONTENT===
HASHTABLE PRIME SIZE = 2
<EMPTY_SYMBOL> count is 0
<END_OF_STRING> count is 0
===END===
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
===WORD===
qwerty
===END===
INSERTING...
SEARCHING...
word = qwerty; offset = 0; hash = 1
PROBE OF ELEMENT WORD = "<END_OF_STRING>" WITH INDEX = 1 AND KEY = "qwerty"
word = qwerty; offset = 1; hash = 0
PROBE OF ELEMENT WORD = "<EMPTY_SYMBOL>" WITH INDEX = 0 AND KEY = "qwerty"
SEARCHING...
word = <EMPTY_SYMBOL>; offset = 0; hash = 1
PROBE OF ELEMENT WORD = "<END_OF_STRING>" WITH INDEX = 1 AND KEY = "<EMPTY_SYMBOL>"
word = <EMPTY_SYMBOL>; offset = 1; hash = 0
FOUND ELEMENT WORD = "<EMPTY_SYMBOL>" WITH INDEX = 0 AND COUNT = 0
NEW ELEMENT WORD = "qwerty" FOUND WITH INDEX = 0
OUTPUT INDEX = 0
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
===WORD===
qwerty
===END===
INSERTING...
SEARCHING...
word = qwerty; offset = 0; hash = 1
PROBE OF ELEMENT WORD = "<END_OF_STRING>" WITH INDEX = 1 AND KEY = "qwerty"
word = qwerty; offset = 1; hash = 0
FOUND ELEMENT WORD = "qwerty" WITH INDEX = 0 AND COUNT = 1
STEP 1. FOUND AT INDEX = 0. NOT INSERTED.
OUTPUT INDEX = 0
OUTPUT.RESULT = FALSE. INCREASING COUNT...
COUNT BEFORE = 1
COUNT AFTER = 2
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
===WORD===
qwerty
===END===
INSERTING...
SEARCHING...
word = qwerty; offset = 0; hash = 1
PROBE OF ELEMENT WORD = "<END_OF_STRING>" WITH INDEX = 1 AND KEY = "qwerty"
word = qwerty; offset = 1; hash = 0
FOUND ELEMENT WORD = "qwerty" WITH INDEX = 0 AND COUNT = 2
STEP 1. FOUND AT INDEX = 0. NOT INSERTED.
OUTPUT INDEX = 0
OUTPUT.RESULT = FALSE. INCREASING COUNT...
COUNT BEFORE = 2
COUNT AFTER = 3
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
===WORD===
ytrewq
===END===
INSERTING...
SEARCHING...
word = ytrewq; offset = 0; hash = 0
PROBE OF ELEMENT WORD = "qwerty" WITH INDEX = 0 AND KEY = "ytrewq"
word = ytrewq; offset = 1; hash = 1
PROBE OF ELEMENT WORD = "<END_OF_STRING>" WITH INDEX = 1 AND KEY = "ytrewq"
SEARCHING...
word = <EMPTY_SYMBOL>; offset = 0; hash = 1
PROBE OF ELEMENT WORD = "<END_OF_STRING>" WITH INDEX = 1 AND KEY = "<EMPTY_SYMBOL>"
word = <EMPTY_SYMBOL>; offset = 1; hash = 0
PROBE OF ELEMENT WORD = "qwerty" WITH INDEX = 0 AND KEY = "<EMPTY_SYMBOL>"
STEP 2. EMPTY ELEMENT NOT FOUND.
INCREASING HASHTABLE USING 1 ROUNDS...
===HASHTABLE CONTENT BEFORE RESIZEMENT===
HASHTABLE PRIME SIZE = 2
qwerty count is 3
<END_OF_STRING> count is 0
===END===
NEW PRIME SIZE = 3
FINDING EMPTY ELEMENT...
FINDING PLACE FOR WORD = "qwerty" WITH COUNT = 3
word = qwerty; offset = 0; hash = 1
TEMP TABLE WORD = "<EMPTY_SYMBOL>" AT INDEX = 1
POSTED WORD = "qwerty" WITH INDEX = 1 AND COUNT = 3 INTO TEMP TABLE
===OLD HASHTABLE CONTENT===
HASHTABLE PRIME SIZE = 2
qwerty count is 3
<END_OF_STRING> count is 0
===END===
===TEMPORARY HASHTABLE CONTENT===
HASHTABLE PRIME SIZE = 3
ZUUU count is 3
<END_OF_STRING> count is 0
count is 0
===END===
COPIED INTO NEW MEMORY LOCATION
===NEW HASHTABLE CONTENT===
HASHTABLE PRIME SIZE = 3
<EMPTY_SYMBOL> count is 0
qwerty count is 3
<END_OF_STRING> count is 0
===END===
SEARCHING...
word = <EMPTY_SYMBOL>; offset = 0; hash = 1
PROBE OF ELEMENT WORD = "<END_OF_STRING>" WITH INDEX = 1 AND KEY = "<EMPTY_SYMBOL>"
word = <EMPTY_SYMBOL>; offset = 1; hash = 0
PROBE OF ELEMENT WORD = "ZUUU" WITH INDEX = 0 AND KEY = "<EMPTY_SYMBOL>"
NEW ELEMENT WORD = "ytrewq" FOUND WITH INDEX = 0
OUTPUT INDEX = 0
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
FILLING...
===WORD===
qazwsx
===END===
INSERTING...
SEARCHING...
word = qazwsx; offset = 0; hash = 1
PROBE OF ELEMENT WORD = "<END_OF_STRING>" WITH INDEX = 1 AND KEY = "qazwsx"
word = qazwsx; offset = 1; hash = 0
PROBE OF ELEMENT WORD = "ytrewq" WITH INDEX = 0 AND KEY = "qazwsx"
SEARCHING...
word = <EMPTY_SYMBOL>; offset = 0; hash = 1
PROBE OF ELEMENT WORD = "<END_OF_STRING>" WITH INDEX = 1 AND KEY = "<EMPTY_SYMBOL>"
word = <EMPTY_SYMBOL>; offset = 1; hash = 0
PROBE OF ELEMENT WORD = "ytrewq" WITH INDEX = 0 AND KEY = "<EMPTY_SYMBOL>"
STEP 2. EMPTY ELEMENT NOT FOUND.
INCREASING HASHTABLE USING 1 ROUNDS...
===HASHTABLE CONTENT BEFORE RESIZEMENT===
HASHTABLE PRIME SIZE = 2
ytrewq count is 1
<END_OF_STRING> count is 0
===END===
NEW PRIME SIZE = 3
FINDING EMPTY ELEMENT...
FINDING PLACE FOR WORD = "ytrewq" WITH COUNT = 1
word = ytrewq; offset = 0; hash = 0
TEMP TABLE WORD = "<EMPTY_SYMBOL>" AT INDEX = 0
POSTED WORD = "ytrewq" WITH INDEX = 0 AND COUNT = 1 INTO TEMP TABLE
===OLD HASHTABLE CONTENT===
HASHTABLE PRIME SIZE = 2
ytrewq count is 1
<END_OF_STRING> count is 0
===END===
free(): double free detected in tcache 2
Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737351468864) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737351468864) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737351468864) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737351468864, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff7db9476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff7d9f7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff7e006f6 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7f52b8c "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#6 0x00007ffff7e17d7c in malloc_printerr (str=str@entry=0x7ffff7f55710 "free(): double free detected in tcache 2") at ./malloc/malloc.c:5664
#7 0x00007ffff7e1a12b in _int_free (av=0x7ffff7f90c80 <main_arena>, p=0x55555555a880, have_lock=1) at ./malloc/malloc.c:4473
#8 0x00007ffff7e1bc5b in _int_realloc (av=av@entry=0x7ffff7f90c80 <main_arena>, oldp=oldp@entry=0x55555555a880, oldsize=oldsize@entry=544, nb=nb@entry=800)
at ./malloc/malloc.c:4900
#9 0x00007ffff7e1c989 in __GI___libc_realloc (oldmem=0x55555555a890, bytes=792) at ./malloc/malloc.c:3485
#10 0x0000555555555fb9 in hashtable_size_increase (hashtable=0x55555555a890, rounds=0, hashtable_prime_size=2) at main.c:226
#11 0x0000555555556242 in hashtable_element_insert (hashtable=0x55555555a890, new_element=..., hashtable_prime_size=2) at main.c:287
#12 0x0000555555556507 in hashtable_elements_fill (textfile=0x55555555a2a0, hashtable=0x55555555a890, hashtable_prime_size=2) at main.c:345
#13 0x00005555555568f2 in main (params_count=2, params=0x7fffffffde28) at main.c:421
(gdb) frame 9
#9 0x00007ffff7e1c989 in __GI___libc_realloc (oldmem=0x55555555a890, bytes=792) at ./malloc/malloc.c:3485
3485 ./malloc/malloc.c: No such file or directory.
(gdb) frame 10
#10 0x0000555555555fb9 in hashtable_size_increase (hashtable=0x55555555a890, rounds=0, hashtable_prime_size=2) at main.c:226