#pragma once #include #include #include using ResultSet = std::set>; template void extract_vars_from_reg(std::set& worklist, SAPFOR::Argument* reg, Iterator instr, Iterator first_instr); template static void processArgument(std::set& worklist, SAPFOR::Argument* arg, Iterator instr, Iterator first_instr); static void lookup_for_vars(ResultSet& result_set, std::set& worklist, SAPFOR::Instruction* instr, SAPFOR::BasicBlock* bblock, const std::map>& fullIR); ResultSet findParameters(const std::map>& fullIR, const std::map, std::pair>& declaredArrays);