<commit_before>package venus.simulator.impls

import venus.riscv.Instruction
import venus.riscv.InstructionField
import venus.simulator.SimulatorState
import venus.simulator.InstructionImplementation

object SWImpl : InstructionImplementation {
    override operator fun invoke(inst: Instruction, state: SimulatorState) {
        val rs1: Int = inst.getField(InstructionField.RS1)
        val rs2: Int = inst.getField(InstructionField.RS2)
        val imm: Int = constructStoreImmediate(inst)
        println("M[${state.getReg(rs1)} + ${imm}] = ${state.getReg(rs2)}")
        state.mem.storeWord(state.getReg(rs1) + imm, state.getReg(rs2))
        state.pc += inst.length
    }
}<commit_msg>Remove debug line<commit_after>package venus.simulator.impls

import venus.riscv.Instruction
import venus.riscv.InstructionField
import venus.simulator.SimulatorState
import venus.simulator.InstructionImplementation

object SWImpl : InstructionImplementation {
    override operator fun invoke(inst: Instruction, state: SimulatorState) {
        val rs1: Int = inst.getField(InstructionField.RS1)
        val rs2: Int = inst.getField(InstructionField.RS2)
        val imm: Int = constructStoreImmediate(inst)
        state.mem.storeWord(state.getReg(rs1) + imm, state.getReg(rs2))
        state.pc += inst.length
    }
}
{'fraction_non_alphanumeric': 0.10144927536231885, 'fraction_numerical': 0.010678871090770405, 'mean_word_length': 4.248, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2222530', 'n_tokens_mistral': 400, 'n_tokens_neox': 407, 'n_words': 79}