Skip to content
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Commit b514f13

Browse files
sohahmmuesly
authored andcommitted
fixing some benchmraks for java ranger
1 parent 485ed39 commit b514f13

File tree

8 files changed

+9
-443
lines changed

8 files changed

+9
-443
lines changed

java/java-ranger-regression/alarm/Alarm_prop7.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

java/java-ranger-regression/alarm/Alarm_prop8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ input_files:
55
- prop8_True/
66
properties:
77
- property_file: ../../properties/assert.prp
8-
expected_verdict: false
8+
expected_verdict: true

java/java-ranger-regression/alarm/prop2_True/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public static void main(String[] args) {
222222
rtu_const_in.Max_Paused_Duration = Max_Paused_Duration;
223223
rtu_const_in.Max_Idle_Duration = Max_Idle_Duration;
224224
rtu_const_in.Tolerance_Max = Tolerance_Max;
225-
225+
226226
rtu_const_in.Tolerance_Min = Tolerance_Min;
227227
rtu_const_in.Log_Interval = Log_Interval;
228228
rtu_const_in.System_Test_Interval = System_Test_Interval;
@@ -416,8 +416,8 @@ public static void main(String[] args) {
416416
// this assertion should pass
417417

418418
//Prop2: air_in_line_implies_grt_L3_alarm
419-
checkCondition = (rtu_TLM_MODE_IN.System_On && rtu_SENSOR_IN.Air_In_Line);
420-
checkOutput = (rty_ALARM_OUT.Highest_Level_Alarm >= 3);
419+
checkCondition = (rtu_tlm_mode_in.System_On && rtu_sensor_in.Air_In_Line);
420+
checkOutput = (rty_alarm_out.Highest_Level_Alarm >= 3);
421421
assert (!checkCondition || checkOutput);
422422

423423
}

java/java-ranger-regression/alarm/prop3_True/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import org.sosy_lab.sv_benchmarks.Verifier;
22

3-
public class Main_T3 {
3+
public class Main {
44

55
public static void main(String[] args) {
66
ALARM_Functional alarm = new ALARM_Functional();

java/java-ranger-regression/alarm/prop5_True/Main.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static void main(String[] args) {
5555
int Flow_Rate_Low = Verifier.nondetInt();
5656

5757
//Symbolic input of Device_Senso // this assertion should pass
58-
r_Inputs
58+
5959
int Flow_Rate = Verifier.nondetInt();
6060
boolean Flow_Rate_Not_Stable = Verifier.nondetBoolean();
6161
boolean Air_In_Line = Verifier.nondetBoolean();
@@ -223,7 +223,7 @@ public static void main(String[] args) {
223223
rtu_const_in.Max_Paused_Duration = Max_Paused_Duration;
224224
rtu_const_in.Max_Idle_Duration = Max_Idle_Duration;
225225
rtu_const_in.Tolerance_Max = Tolerance_Max;
226-
226+
227227
rtu_const_in.Tolerance_Min = Tolerance_Min;
228228
rtu_const_in.Log_Interval = Log_Interval;
229229
rtu_const_in.System_Test_Interval = System_Test_Interval;

java/java-ranger-regression/alarm/prop6_True/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public static void main(String[] args) {
271271
rty_alarm_out.Log_Message_ID = Log_Message_ID5;
272272

273273
B_ALARM_Functional_c_T localB = new B_ALARM_Functional_c_T();
274-
DW_ALARM_Funcrtu_op_cmd_intional_f_T localDW = new DW_ALARM_Functional_f_T();
274+
DW_ALARM_Functional_f_T localDW = new DW_ALARM_Functional_f_T();
275275

276276
alarm.ALARM_Functional_Init(localB, localDW);
277277

java/java-ranger-regression/alarm/prop7_True/Main.java

Lines changed: 0 additions & 426 deletions
This file was deleted.

java/java-ranger-regression/infusion/prop5_True/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static void main(String[] args) {
236236
checkCondition = (rtu_TLM_MODE_IN.System_On && (rtu_ALARM_IN.Highest_Level_Alarm == 2));
237237
checkOutput =
238238
((rty_IM_OUT.Current_System_Mode == 1) || (rty_IM_OUT.Current_System_Mode == 2) || (rty_IM_OUT.Current_System_Mode == 6) || (rty_IM_OUT.Current_System_Mode == 7) || (rty_IM_OUT.Current_System_Mode == 8));
239-
assert (!checkCondition || checkOutput);*/
239+
assert (!checkCondition || checkOutput);
240240

241241
}
242242

0 commit comments

Comments
 (0)