exploit brake_pads(a)=
	preconditions:
		quality:a,brake_months>=6;
		quality:a,brake_vio=false;
	postconditions:
		update quality:a,brake_vio=true;
		update quality:a,compliance_vio=true;
.

exploit exhaust_pipes(a)=
	preconditions:
		quality:a,exhaust_months>=12;
		quality:a,exhaust_vio=false;
	postconditions:
		update quality:a,compliance_vio=true;
		update quality:a,exhaust_vio=true;
.

exploit ac_filter(a)=
	preconditions:
		quality:a,ac_odometer>=120000;
		quality:a,ac_vio=false;
	postconditions:
		insert quality:a,is_critical=true;
		update quality:a,compliance_vio=true;
		update quality:a,ac_vio=true;
.

exploit vacuum_pump(a)=
	preconditions:
		quality:a,vacuum_odometer>=120000;
		quality:a,engine=diesel;
		quality:a,vacuum_vio=false;
	postconditions:
		insert quality:a,is_critical=true;
		update quality:a,compliance_vio=true;
		update quality:a,vacuum_vio=true;
.

exploit brake_service(a)=
	preconditions:
		quality:a,brake_months>=0;
	postconditions:
		update quality:a,brake_months=0;
		update quality:a,brake_vio=false;
.


exploit exhaust_service(a)=
	preconditions:
		quality:a,exhaust_months>=0;
	postconditions:
		update quality:a,exhaust_months=0;
		update quality:a,exhaust_vio=false;
.

exploit ac_service(a)=
	preconditions:
		quality:a,ac_odometer>=0;
	postconditions:
		update quality:a,ac_odometer=0;
		update quality:a,ac_vio=false;
.

exploit vacuum_service(a)=
	preconditions:
		quality:a,vacuum_odometer>=0;
	postconditions:
		update quality:a,vacuum_odometer=0;
		update quality:a,vacuum_vio=false;
.

time group exploit time_advance(a)=
	preconditions:
		quality:a,TIME_ADVANCE_STEP<13;
		quality:a,brake_months=0;
		quality:a,exhaust_months=0;
		quality:a,ac_odometer=0;
		quality:a,vacuum_odometer=0;
	postconditions:		
		update quality:a,brake_months+=1;
		update quality:a,vacuum_odometer+=10000;
		update quality:a,ac_odometer+=10000;
		update quality:a,exhaust_months+=1;
		update quality:a,TIME_ADVANCE_STEP+=1;
.
