1. A semiconductor device, comprising: a reconfigurable logic circuit that includes a plurality of resistance change elements; a logical configuration of the reconfigurable logic circuit being decided depending on whether each of the plurality of resistance change elements is in a first resistance state or in a second resistance state whose resistance value is lower than a resistance value of the first resistance state; a resistance value monitor circuit that includes a resistance change element pre-programmed to the first resistance state; the resistance value monitor circuit detecting whether or not the pre-programmed resistance change element retains the first resistance state; and a controller that, in case it is detected that the resistance change element provided in the resistance value monitor circuit does not retain the first resistance state, applies a voltage used in programming from the second resistance state to the first resistance state to a resistance change element retaining the first resistance states, out of the plurality of resistance change elements provided in the reconfigurable logic circuit.