Method: Crokus::RandomGen#run

Defined in:
lib/crokus/cfg_random_gen.rb

#run(params) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/crokus/cfg_random_gen.rb', line 23

def run params
  puts "[+] running random C code generation"
  puts " |-->[+] reading parameters file '#{params}'"
  @params=YAML.load(File.read(params))
  init_cfg
  init_random_generators
  create_inputs
  create_outputs
  create_variables
  create_internal_arrays
  create_output_assigns
  create_cfg
  gen_dot # to see the structure, before hacking the content
  populate_all
  generate_c
  print_infos
end