def test_vfp_vector(): # gen_instrs(10) options.parseOptions() ctx = options.getInitContext(getFSM, getRBlock) output = options.getOption("output") exit_b = getVFPExitBlock() testgen.genRandomTest(ctx, output, exitblock=exit_b)
def test(): options.parseOptions() ctx = options.getInitContext(rb.getRBlock) ctx[options.CTX.ISA] = False ropts = {} inst = genThumbIT(None, ropts, ctx) print inst
def test(): options.parseOptions() ctx = options.getInitContext(getRBlock) test = getRBlock('rit', 5) blocks = test.makeRandomBlock(ctx) ig.genBlockInstrs(blocks, ctx) print test print blocks, len(blocks)
def main(): options.parseOptions() #init random seed opt_seed = options.getOption('seed') if opt_seed: random.seed(opt_seed) else: random.seed() ctx = options.getInitContext(rb.getRBlock) tname = options.getOption('output') genTest(ctx, tname) buildTest(tname)