 Most criminals thus receive a lesser conviction, through the tazir code.A tazir crime is a crime in Sharia law that receives a discretionary sentence by a judge.A deterrent crime is a tazir crime that has a punishment in Iran's Penal Code (mostly based on pre-Revolutionary French civil law).