import generator
from ctypes import CDLL
import numpy as np

# Initializes the harness and sets it up for work
harness = CDLL("harness/harness.so")

while True:
    t = generator.generate()
    harness.register_testcase(t)
    try:
        exec(t, {'np':np})
    except:
        # If the exec fails, then we should not store
        continue
    generator.register(t)

import generator
from ctypes import CDLL
import numpy as np

# Initializes the harness and sets it up for work
harness = CDLL("harness/harness.so")

while True:
    t = generator.generate()
    harness.register_testcase(bytes(t, 'ascii'))
    try:
        exec(t, {'np':np})
    except:
        # If the exec fails, then we should not store
        continue
    generator.register(t)

Send char string instead of widechar string
Send char string instead of widechar string

  import generator
  from ctypes import CDLL
  import numpy as np
  
  # Initializes the harness and sets it up for work
  harness = CDLL("harness/harness.so")
  
  while True:
      t = generator.generate()
-     harness.register_testcase(t)
+     harness.register_testcase(bytes(t, 'ascii'))
      try:
          exec(t, {'np':np})
      except:
          # If the exec fails, then we should not store
          continue
      generator.register(t)
  
Send char string instead of widechar string
## Code Before:
import generator
from ctypes import CDLL
import numpy as np

# Initializes the harness and sets it up for work
harness = CDLL("harness/harness.so")

while True:
    t = generator.generate()
    harness.register_testcase(t)
    try:
        exec(t, {'np':np})
    except:
        # If the exec fails, then we should not store
        continue
    generator.register(t)

## Instruction:
Send char string instead of widechar string
## Code After:
import generator
from ctypes import CDLL
import numpy as np

# Initializes the harness and sets it up for work
harness = CDLL("harness/harness.so")

while True:
    t = generator.generate()
    harness.register_testcase(bytes(t, 'ascii'))
    try:
        exec(t, {'np':np})
    except:
        # If the exec fails, then we should not store
        continue
    generator.register(t)
