int SIM_instruction_speculative(instruction_id_t ii);
This function check whether an instruction will execute or has executed using speculative input, i.e. the instruction may give incorrect result if committed. Speculative input can be used to model branch and value prediction, see SIM_instruction_write_input_reg and SIM_instruction_write_output_reg for a description on how to write speculative data.
ii is the id of the instruction to check,