| 1 |
; EXPECT: unsat |
| 2 |
;; slow conversion |
| 3 |
; DISABLE-TESTER: alethe |
| 4 |
(set-logic QF_UFLIRA) |
| 5 |
(declare-sort FArray 2) |
| 6 |
|
| 7 |
|
| 8 |
;------------------------------------------------------------------------------- |
| 9 |
; Constants : |
| 10 |
;------------------------------------------------------------------------------- |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
;------------------------------------------------------------------------------- |
| 15 |
; State variables : |
| 16 |
;------------------------------------------------------------------------------- |
| 17 |
|
| 18 |
(declare-fun top.usr.onOff (Int) Bool) |
| 19 |
(declare-fun top.usr.decelSet (Int) Bool) |
| 20 |
(declare-fun top.usr.accelResume (Int) Bool) |
| 21 |
(declare-fun top.usr.cancel (Int) Bool) |
| 22 |
(declare-fun top.usr.brakePedal (Int) Bool) |
| 23 |
(declare-fun top.usr.carGear (Int) Int) |
| 24 |
(declare-fun top.usr.carSpeed (Int) Real) |
| 25 |
(declare-fun top.usr.validInputs (Int) Bool) |
| 26 |
(declare-fun top.usr.OK (Int) Bool) |
| 27 |
(declare-fun top.res.init_flag (Int) Bool) |
| 28 |
(declare-fun top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___ (Int) Bool) |
| 29 |
(declare-fun top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep (Int) Bool) |
| 30 |
(declare-fun top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root (Int) Int) |
| 31 |
(declare-fun top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out (Int) Int) |
| 32 |
(declare-fun top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out (Int) Int) |
| 33 |
(declare-fun top.res.subrange_1 (Int) Bool) |
| 34 |
(declare-fun top.res.subrange_2 (Int) Bool) |
| 35 |
(declare-fun top.res.subrange_3 (Int) Bool) |
| 36 |
(declare-fun top.res.subrange_4 (Int) Bool) |
| 37 |
(declare-fun top.res.subrange_5 (Int) Bool) |
| 38 |
(set-info :system "Logical transition system generated by Kind2") |
| 39 |
(set-info :input "sandbox/cruise_controller_01.lus") |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
;------------------------------------------------------------------------------- |
| 44 |
; Function symbols : |
| 45 |
;------------------------------------------------------------------------------- |
| 46 |
|
| 47 |
(define-fun __node_init_top_0 |
| 48 |
((top.usr.onOff@0 Bool) |
| 49 |
(top.usr.decelSet@0 Bool) |
| 50 |
(top.usr.accelResume@0 Bool) |
| 51 |
(top.usr.cancel@0 Bool) |
| 52 |
(top.usr.brakePedal@0 Bool) |
| 53 |
(top.usr.carGear@0 Int) |
| 54 |
(top.usr.carSpeed@0 Real) |
| 55 |
(top.usr.validInputs@0 Bool) |
| 56 |
(top.usr.OK@0 Bool) |
| 57 |
(top.res.init_flag@0 Bool) |
| 58 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___@0 Bool) |
| 59 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep@0 Bool) |
| 60 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root@0 Int) |
| 61 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@0 Int) |
| 62 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@0 Int) |
| 63 |
(top.res.subrange_1@0 Bool) |
| 64 |
(top.res.subrange_2@0 Bool) |
| 65 |
(top.res.subrange_3@0 Bool) |
| 66 |
(top.res.subrange_4@0 Bool) |
| 67 |
(top.res.subrange_5@0 Bool)) Bool |
| 68 |
(let |
| 69 |
((X1 false)) |
| 70 |
(let |
| 71 |
((X2 |
| 72 |
(and |
| 73 |
(and |
| 74 |
(and (and (not top.usr.cancel@0) (not top.usr.brakePedal@0)) (ite (= top.usr.carGear@0 3) true false)) |
| 75 |
(ite (>= top.usr.carSpeed@0 15.0) true false)) |
| 76 |
top.usr.validInputs@0))) |
| 77 |
(let |
| 78 |
((X3 false)) |
| 79 |
(let |
| 80 |
((X4 0)) |
| 81 |
(let |
| 82 |
((X5 (ite (not top.usr.onOff@0) 0 1))) |
| 83 |
(let |
| 84 |
((X6 (and (and (>= X4 2) (<= X4 8)) (not (ite (not (= X5 0)) true false))))) |
| 85 |
(let |
| 86 |
((X7 (ite X6 (ite (and (>= X4 2) (<= X4 8)) 0 X4) X4))) |
| 87 |
(let |
| 88 |
((X8 (ite X6 (ite (not (= X7 1)) 1 X7) X7))) |
| 89 |
(let |
| 90 |
((X9 (and (= X8 1) (and (ite (not (= X5 0)) true false) (not X6))))) |
| 91 |
(let |
| 92 |
((X10 (ite X9 (ite (= X8 1) 0 X8) X8))) |
| 93 |
(let |
| 94 |
((X11 (ite (not (and (>= X10 2) (<= X10 8))) 2 X10))) |
| 95 |
(let |
| 96 |
((X12 (and (not (and (>= X10 2) (<= X10 8))) (and (>= X11 2) (<= X11 8))))) |
| 97 |
(let |
| 98 |
((X13 (ite X12 (ite (not (= X11 7)) 7 X11) X11))) |
| 99 |
(let |
| 100 |
((X14 (ite X9 X13 X10))) |
| 101 |
(let |
| 102 |
((X15 (ite (not X2) 0 1))) |
| 103 |
(let |
| 104 |
((X16 (and (and (>= X14 3) (<= X14 6)) (not (ite (not (= X15 0)) true false))))) |
| 105 |
(let |
| 106 |
((X17 (ite X16 (ite (and (>= X14 3) (<= X14 6)) 2 X14) X14))) |
| 107 |
(let |
| 108 |
((X18 (ite X16 (ite (not (= X17 8)) 8 X17) X17))) |
| 109 |
(let |
| 110 |
((X19 (ite (not X1) 0 1))) |
| 111 |
(let |
| 112 |
((X20 |
| 113 |
(and |
| 114 |
(= X18 8) |
| 115 |
(and |
| 116 |
(and |
| 117 |
(ite (not (= (ite (not (= X19 1)) 0 1) 0)) true false) |
| 118 |
(ite (not (= (ite (not (= X15 1)) 0 1) 0)) true false)) |
| 119 |
(not X16))))) |
| 120 |
(let |
| 121 |
((X21 (ite X20 (ite (= X18 8) 2 X18) X18))) |
| 122 |
(let |
| 123 |
((X22 (ite (not (and (>= X21 3) (<= X21 6))) 3 X21))) |
| 124 |
(let |
| 125 |
((X23 (and (not (and (>= X21 3) (<= X21 6))) (and (>= X22 3) (<= X22 6))))) |
| 126 |
(let |
| 127 |
((X24 (ite X23 (ite (not (= X22 4)) 4 X22) X22))) |
| 128 |
(let |
| 129 |
((X25 (ite X20 X24 X21))) |
| 130 |
(let |
| 131 |
((X26 (or X20 X16))) |
| 132 |
(let |
| 133 |
((X27 |
| 134 |
(and |
| 135 |
(= X25 8) |
| 136 |
(and |
| 137 |
(and |
| 138 |
(ite (not (= (ite (not (= (ite (not X3) 0 1) 1)) 0 1) 0)) true false) |
| 139 |
(ite (not (= (ite (not (= X15 1)) 0 1) 0)) true false)) |
| 140 |
(not X26))))) |
| 141 |
(let |
| 142 |
((X28 (ite X27 (ite (= X25 8) 2 X25) X25))) |
| 143 |
(let |
| 144 |
((X29 (ite (not (and (>= X28 3) (<= X28 6))) 3 X28))) |
| 145 |
(let |
| 146 |
((X30 (and (not (and (>= X28 3) (<= X28 6))) (and (>= X29 3) (<= X29 6))))) |
| 147 |
(let |
| 148 |
((X31 (ite X30 (ite (not (= X29 4)) 4 X29) X29))) |
| 149 |
(let |
| 150 |
((X32 (ite X27 X31 X28))) |
| 151 |
(let |
| 152 |
((X33 (or X27 X26))) |
| 153 |
(let |
| 154 |
((X34 |
| 155 |
(and |
| 156 |
(= X32 7) |
| 157 |
(and |
| 158 |
(and |
| 159 |
(ite (not (= (ite (not (= X19 1)) 0 1) 0)) true false) |
| 160 |
(ite (not (= (ite (not (= X15 1)) 0 1) 0)) true false)) |
| 161 |
(not X33))))) |
| 162 |
(let |
| 163 |
((X35 (ite X34 (ite (= X32 7) 2 X32) X32))) |
| 164 |
(let |
| 165 |
((X36 (ite (not (and (>= X35 3) (<= X35 6))) 3 X35))) |
| 166 |
(let |
| 167 |
((X37 (and (not (and (>= X35 3) (<= X35 6))) (and (>= X36 3) (<= X36 6))))) |
| 168 |
(let |
| 169 |
((X38 (ite X37 (ite (not (= X36 4)) 4 X36) X36))) |
| 170 |
(let |
| 171 |
((X39 (or (= X38 4) (or (= X38 5) (= X38 6))))) |
| 172 |
(let |
| 173 |
((X40 (ite (not (= X4 1)) 1 X4))) |
| 174 |
(let |
| 175 |
((X41 (or X9 X6))) |
| 176 |
(let |
| 177 |
((X42 (ite X34 X38 X35))) |
| 178 |
(let |
| 179 |
((X43 (or X34 X33))) |
| 180 |
(let |
| 181 |
((X44 (and (= X42 4) (= X19 1)))) |
| 182 |
(let |
| 183 |
((X45 (ite X44 (ite (= X42 4) 3 X42) X42))) |
| 184 |
(let |
| 185 |
((X46 (ite X44 (ite (not (= X45 4)) 4 X45) X45))) |
| 186 |
(let |
| 187 |
((X47 |
| 188 |
(ite |
| 189 |
(not |
| 190 |
(ite |
| 191 |
(= |
| 192 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@0 |
| 193 |
20) |
| 194 |
true |
| 195 |
false)) |
| 196 |
0 |
| 197 |
1))) |
| 198 |
(let |
| 199 |
((X48 (and (= X46 4) (and (= X47 1) (not X44))))) |
| 200 |
(let |
| 201 |
((X49 (ite X48 (ite (= X46 4) 3 X46) X46))) |
| 202 |
(let |
| 203 |
((X50 (ite X48 (ite (not (= X49 5)) 5 X49) X49))) |
| 204 |
(let |
| 205 |
((X51 (or X48 X44))) |
| 206 |
(let |
| 207 |
((X52 |
| 208 |
(ite |
| 209 |
(not |
| 210 |
(ite |
| 211 |
(= |
| 212 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@0 |
| 213 |
20) |
| 214 |
true |
| 215 |
false)) |
| 216 |
0 |
| 217 |
1))) |
| 218 |
(let |
| 219 |
((X53 (and (= X50 4) (and (= X52 1) (not X51))))) |
| 220 |
(let |
| 221 |
((X54 (ite X53 (ite (= X50 4) 3 X50) X50))) |
| 222 |
(let |
| 223 |
((X55 (ite X53 (ite (not (= X54 6)) 6 X54) X54))) |
| 224 |
(let |
| 225 |
((X56 (or X53 X51))) |
| 226 |
(let |
| 227 |
((X57 (and (= X55 6) (and (= X52 0) (not X56))))) |
| 228 |
(let |
| 229 |
((X58 (ite X57 (ite (= X55 6) 3 X55) X55))) |
| 230 |
(let |
| 231 |
((X59 (ite X57 (ite (not (= X58 4)) 4 X58) X58))) |
| 232 |
(let |
| 233 |
((X60 (or X57 X56))) |
| 234 |
(let |
| 235 |
((X61 (and (= X59 5) (and (= X47 0) (not X60))))) |
| 236 |
(let |
| 237 |
((X62 (ite X61 (ite (= X59 5) 3 X59) X59))) |
| 238 |
(let |
| 239 |
((X63 (ite X61 (ite (not (= X62 4)) 4 X62) X62))) |
| 240 |
(and |
| 241 |
(= top.usr.OK@0 X39) |
| 242 |
(= |
| 243 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@0 |
| 244 |
(ite |
| 245 |
(<= |
| 246 |
(ite |
| 247 |
(>= 0 (ite top.usr.decelSet@0 1 0)) |
| 248 |
0 |
| 249 |
(ite top.usr.decelSet@0 1 0)) |
| 250 |
20) |
| 251 |
(ite |
| 252 |
(>= 0 (ite top.usr.decelSet@0 1 0)) |
| 253 |
0 |
| 254 |
(ite top.usr.decelSet@0 1 0)) |
| 255 |
20)) |
| 256 |
(= |
| 257 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@0 |
| 258 |
(ite |
| 259 |
(<= |
| 260 |
(ite |
| 261 |
(>= 0 (ite top.usr.accelResume@0 1 0)) |
| 262 |
0 |
| 263 |
(ite top.usr.accelResume@0 1 0)) |
| 264 |
20) |
| 265 |
(ite |
| 266 |
(>= 0 (ite top.usr.accelResume@0 1 0)) |
| 267 |
0 |
| 268 |
(ite top.usr.accelResume@0 1 0)) |
| 269 |
20)) |
| 270 |
(= |
| 271 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep@0 |
| 272 |
true) |
| 273 |
(= |
| 274 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___@0 |
| 275 |
true) |
| 276 |
(= |
| 277 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root@0 |
| 278 |
(ite |
| 279 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___@0 |
| 280 |
(ite |
| 281 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep@0 |
| 282 |
X40 |
| 283 |
(ite |
| 284 |
(and (not X41) (and (>= X14 2) (<= X14 8))) |
| 285 |
(ite |
| 286 |
(and (not X43) (and (>= X42 3) (<= X42 6))) |
| 287 |
X63 |
| 288 |
X42) |
| 289 |
X14)) |
| 290 |
X4)) |
| 291 |
(= top.res.subrange_1@0 (and (<= 0 X5) (<= X5 1))) |
| 292 |
(= top.res.subrange_2@0 (and (<= 0 X52) (<= X52 1))) |
| 293 |
(= top.res.subrange_3@0 (and (<= 0 X19) (<= X19 1))) |
| 294 |
(= top.res.subrange_4@0 (and (<= 0 X47) (<= X47 1))) |
| 295 |
(= top.res.subrange_5@0 (and (<= 0 X15) (<= X15 1))) |
| 296 |
top.res.init_flag@0))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) |
| 297 |
|
| 298 |
(define-fun __node_trans_top_0 |
| 299 |
((top.usr.onOff@1 Bool) |
| 300 |
(top.usr.decelSet@1 Bool) |
| 301 |
(top.usr.accelResume@1 Bool) |
| 302 |
(top.usr.cancel@1 Bool) |
| 303 |
(top.usr.brakePedal@1 Bool) |
| 304 |
(top.usr.carGear@1 Int) |
| 305 |
(top.usr.carSpeed@1 Real) |
| 306 |
(top.usr.validInputs@1 Bool) |
| 307 |
(top.usr.OK@1 Bool) |
| 308 |
(top.res.init_flag@1 Bool) |
| 309 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___@1 Bool) |
| 310 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep@1 Bool) |
| 311 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root@1 Int) |
| 312 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@1 Int) |
| 313 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@1 Int) |
| 314 |
(top.res.subrange_1@1 Bool) |
| 315 |
(top.res.subrange_2@1 Bool) |
| 316 |
(top.res.subrange_3@1 Bool) |
| 317 |
(top.res.subrange_4@1 Bool) |
| 318 |
(top.res.subrange_5@1 Bool) |
| 319 |
(top.usr.onOff@0 Bool) |
| 320 |
(top.usr.decelSet@0 Bool) |
| 321 |
(top.usr.accelResume@0 Bool) |
| 322 |
(top.usr.cancel@0 Bool) |
| 323 |
(top.usr.brakePedal@0 Bool) |
| 324 |
(top.usr.carGear@0 Int) |
| 325 |
(top.usr.carSpeed@0 Real) |
| 326 |
(top.usr.validInputs@0 Bool) |
| 327 |
(top.usr.OK@0 Bool) |
| 328 |
(top.res.init_flag@0 Bool) |
| 329 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___@0 Bool) |
| 330 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep@0 Bool) |
| 331 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root@0 Int) |
| 332 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@0 Int) |
| 333 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@0 Int) |
| 334 |
(top.res.subrange_1@0 Bool) |
| 335 |
(top.res.subrange_2@0 Bool) |
| 336 |
(top.res.subrange_3@0 Bool) |
| 337 |
(top.res.subrange_4@0 Bool) |
| 338 |
(top.res.subrange_5@0 Bool)) Bool |
| 339 |
(let |
| 340 |
((X1 (and (not top.usr.decelSet@0) top.usr.decelSet@1))) |
| 341 |
(let |
| 342 |
((X2 |
| 343 |
(and |
| 344 |
(and |
| 345 |
(and (and (not top.usr.cancel@1) (not top.usr.brakePedal@1)) (ite (= top.usr.carGear@1 3) true false)) |
| 346 |
(ite (>= top.usr.carSpeed@1 15.0) true false)) |
| 347 |
top.usr.validInputs@1))) |
| 348 |
(let |
| 349 |
((X3 (and (not top.usr.accelResume@0) top.usr.accelResume@1))) |
| 350 |
(let |
| 351 |
((X4 top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root@0)) |
| 352 |
(let |
| 353 |
((X5 (ite (not top.usr.onOff@1) 0 1))) |
| 354 |
(let |
| 355 |
((X6 (and (and (>= X4 2) (<= X4 8)) (not (ite (not (= X5 0)) true false))))) |
| 356 |
(let |
| 357 |
((X7 (ite X6 (ite (and (>= X4 2) (<= X4 8)) 0 X4) X4))) |
| 358 |
(let |
| 359 |
((X8 (ite X6 (ite (not (= X7 1)) 1 X7) X7))) |
| 360 |
(let |
| 361 |
((X9 (and (= X8 1) (and (ite (not (= X5 0)) true false) (not X6))))) |
| 362 |
(let |
| 363 |
((X10 (ite X9 (ite (= X8 1) 0 X8) X8))) |
| 364 |
(let |
| 365 |
((X11 (ite (not (and (>= X10 2) (<= X10 8))) 2 X10))) |
| 366 |
(let |
| 367 |
((X12 (and (not (and (>= X10 2) (<= X10 8))) (and (>= X11 2) (<= X11 8))))) |
| 368 |
(let |
| 369 |
((X13 (ite X12 (ite (not (= X11 7)) 7 X11) X11))) |
| 370 |
(let |
| 371 |
((X14 (ite X9 X13 X10))) |
| 372 |
(let |
| 373 |
((X15 (ite (not X2) 0 1))) |
| 374 |
(let |
| 375 |
((X16 (and (and (>= X14 3) (<= X14 6)) (not (ite (not (= X15 0)) true false))))) |
| 376 |
(let |
| 377 |
((X17 (ite X16 (ite (and (>= X14 3) (<= X14 6)) 2 X14) X14))) |
| 378 |
(let |
| 379 |
((X18 (ite X16 (ite (not (= X17 8)) 8 X17) X17))) |
| 380 |
(let |
| 381 |
((X19 (ite (not X1) 0 1))) |
| 382 |
(let |
| 383 |
((X20 |
| 384 |
(and |
| 385 |
(= X18 8) |
| 386 |
(and |
| 387 |
(and |
| 388 |
(ite (not (= (ite (not (= X19 1)) 0 1) 0)) true false) |
| 389 |
(ite (not (= (ite (not (= X15 1)) 0 1) 0)) true false)) |
| 390 |
(not X16))))) |
| 391 |
(let |
| 392 |
((X21 (ite X20 (ite (= X18 8) 2 X18) X18))) |
| 393 |
(let |
| 394 |
((X22 (ite (not (and (>= X21 3) (<= X21 6))) 3 X21))) |
| 395 |
(let |
| 396 |
((X23 (and (not (and (>= X21 3) (<= X21 6))) (and (>= X22 3) (<= X22 6))))) |
| 397 |
(let |
| 398 |
((X24 (ite X23 (ite (not (= X22 4)) 4 X22) X22))) |
| 399 |
(let |
| 400 |
((X25 (ite X20 X24 X21))) |
| 401 |
(let |
| 402 |
((X26 (or X20 X16))) |
| 403 |
(let |
| 404 |
((X27 |
| 405 |
(and |
| 406 |
(= X25 8) |
| 407 |
(and |
| 408 |
(and |
| 409 |
(ite (not (= (ite (not (= (ite (not X3) 0 1) 1)) 0 1) 0)) true false) |
| 410 |
(ite (not (= (ite (not (= X15 1)) 0 1) 0)) true false)) |
| 411 |
(not X26))))) |
| 412 |
(let |
| 413 |
((X28 (ite X27 (ite (= X25 8) 2 X25) X25))) |
| 414 |
(let |
| 415 |
((X29 (ite (not (and (>= X28 3) (<= X28 6))) 3 X28))) |
| 416 |
(let |
| 417 |
((X30 (and (not (and (>= X28 3) (<= X28 6))) (and (>= X29 3) (<= X29 6))))) |
| 418 |
(let |
| 419 |
((X31 (ite X30 (ite (not (= X29 4)) 4 X29) X29))) |
| 420 |
(let |
| 421 |
((X32 (ite X27 X31 X28))) |
| 422 |
(let |
| 423 |
((X33 (or X27 X26))) |
| 424 |
(let |
| 425 |
((X34 |
| 426 |
(and |
| 427 |
(= X32 7) |
| 428 |
(and |
| 429 |
(and |
| 430 |
(ite (not (= (ite (not (= X19 1)) 0 1) 0)) true false) |
| 431 |
(ite (not (= (ite (not (= X15 1)) 0 1) 0)) true false)) |
| 432 |
(not X33))))) |
| 433 |
(let |
| 434 |
((X35 (ite X34 (ite (= X32 7) 2 X32) X32))) |
| 435 |
(let |
| 436 |
((X36 (ite (not (and (>= X35 3) (<= X35 6))) 3 X35))) |
| 437 |
(let |
| 438 |
((X37 (and (not (and (>= X35 3) (<= X35 6))) (and (>= X36 3) (<= X36 6))))) |
| 439 |
(let |
| 440 |
((X38 (ite X37 (ite (not (= X36 4)) 4 X36) X36))) |
| 441 |
(let |
| 442 |
((X39 (or (= X38 4) (or (= X38 5) (= X38 6))))) |
| 443 |
(let |
| 444 |
((X40 (ite (not (= X4 1)) 1 X4))) |
| 445 |
(let |
| 446 |
((X41 (or X9 X6))) |
| 447 |
(let |
| 448 |
((X42 (ite X34 X38 X35))) |
| 449 |
(let |
| 450 |
((X43 (or X34 X33))) |
| 451 |
(let |
| 452 |
((X44 (and (= X42 4) (= X19 1)))) |
| 453 |
(let |
| 454 |
((X45 (ite X44 (ite (= X42 4) 3 X42) X42))) |
| 455 |
(let |
| 456 |
((X46 (ite X44 (ite (not (= X45 4)) 4 X45) X45))) |
| 457 |
(let |
| 458 |
((X47 |
| 459 |
(ite |
| 460 |
(not |
| 461 |
(ite |
| 462 |
(= |
| 463 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@1 |
| 464 |
20) |
| 465 |
true |
| 466 |
false)) |
| 467 |
0 |
| 468 |
1))) |
| 469 |
(let |
| 470 |
((X48 (and (= X46 4) (and (= X47 1) (not X44))))) |
| 471 |
(let |
| 472 |
((X49 (ite X48 (ite (= X46 4) 3 X46) X46))) |
| 473 |
(let |
| 474 |
((X50 (ite X48 (ite (not (= X49 5)) 5 X49) X49))) |
| 475 |
(let |
| 476 |
((X51 (or X48 X44))) |
| 477 |
(let |
| 478 |
((X52 |
| 479 |
(ite |
| 480 |
(not |
| 481 |
(ite |
| 482 |
(= |
| 483 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@1 |
| 484 |
20) |
| 485 |
true |
| 486 |
false)) |
| 487 |
0 |
| 488 |
1))) |
| 489 |
(let |
| 490 |
((X53 (and (= X50 4) (and (= X52 1) (not X51))))) |
| 491 |
(let |
| 492 |
((X54 (ite X53 (ite (= X50 4) 3 X50) X50))) |
| 493 |
(let |
| 494 |
((X55 (ite X53 (ite (not (= X54 6)) 6 X54) X54))) |
| 495 |
(let |
| 496 |
((X56 (or X53 X51))) |
| 497 |
(let |
| 498 |
((X57 (and (= X55 6) (and (= X52 0) (not X56))))) |
| 499 |
(let |
| 500 |
((X58 (ite X57 (ite (= X55 6) 3 X55) X55))) |
| 501 |
(let |
| 502 |
((X59 (ite X57 (ite (not (= X58 4)) 4 X58) X58))) |
| 503 |
(let |
| 504 |
((X60 (or X57 X56))) |
| 505 |
(let |
| 506 |
((X61 (and (= X59 5) (and (= X47 0) (not X60))))) |
| 507 |
(let |
| 508 |
((X62 (ite X61 (ite (= X59 5) 3 X59) X59))) |
| 509 |
(let |
| 510 |
((X63 (ite X61 (ite (not (= X62 4)) 4 X62) X62))) |
| 511 |
(and |
| 512 |
(= top.usr.OK@1 X39) |
| 513 |
(= |
| 514 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@1 |
| 515 |
(ite |
| 516 |
(<= |
| 517 |
(ite |
| 518 |
(>= |
| 519 |
0 |
| 520 |
(ite |
| 521 |
top.usr.decelSet@1 |
| 522 |
(+ |
| 523 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@0 |
| 524 |
1) |
| 525 |
0)) |
| 526 |
0 |
| 527 |
(ite |
| 528 |
top.usr.decelSet@1 |
| 529 |
(+ |
| 530 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@0 |
| 531 |
1) |
| 532 |
0)) |
| 533 |
20) |
| 534 |
(ite |
| 535 |
(>= |
| 536 |
0 |
| 537 |
(ite |
| 538 |
top.usr.decelSet@1 |
| 539 |
(+ |
| 540 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@0 |
| 541 |
1) |
| 542 |
0)) |
| 543 |
0 |
| 544 |
(ite |
| 545 |
top.usr.decelSet@1 |
| 546 |
(+ |
| 547 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out@0 |
| 548 |
1) |
| 549 |
0)) |
| 550 |
20)) |
| 551 |
(= |
| 552 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@1 |
| 553 |
(ite |
| 554 |
(<= |
| 555 |
(ite |
| 556 |
(>= |
| 557 |
0 |
| 558 |
(ite |
| 559 |
top.usr.accelResume@1 |
| 560 |
(+ |
| 561 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@0 |
| 562 |
1) |
| 563 |
0)) |
| 564 |
0 |
| 565 |
(ite |
| 566 |
top.usr.accelResume@1 |
| 567 |
(+ |
| 568 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@0 |
| 569 |
1) |
| 570 |
0)) |
| 571 |
20) |
| 572 |
(ite |
| 573 |
(>= |
| 574 |
0 |
| 575 |
(ite |
| 576 |
top.usr.accelResume@1 |
| 577 |
(+ |
| 578 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@0 |
| 579 |
1) |
| 580 |
0)) |
| 581 |
0 |
| 582 |
(ite |
| 583 |
top.usr.accelResume@1 |
| 584 |
(+ |
| 585 |
top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out@0 |
| 586 |
1) |
| 587 |
0)) |
| 588 |
20)) |
| 589 |
(= |
| 590 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep@1 |
| 591 |
(ite |
| 592 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___@0 |
| 593 |
false |
| 594 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep@0)) |
| 595 |
(= |
| 596 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___@1 |
| 597 |
true) |
| 598 |
(= |
| 599 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root@1 |
| 600 |
(ite |
| 601 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___@1 |
| 602 |
(ite |
| 603 |
top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep@1 |
| 604 |
X40 |
| 605 |
(ite |
| 606 |
(and (not X41) (and (>= X14 2) (<= X14 8))) |
| 607 |
(ite |
| 608 |
(and (not X43) (and (>= X42 3) (<= X42 6))) |
| 609 |
X63 |
| 610 |
X42) |
| 611 |
X14)) |
| 612 |
X4)) |
| 613 |
(= top.res.subrange_1@1 (and (<= 0 X5) (<= X5 1))) |
| 614 |
(= top.res.subrange_2@1 (and (<= 0 X52) (<= X52 1))) |
| 615 |
(= top.res.subrange_3@1 (and (<= 0 X19) (<= X19 1))) |
| 616 |
(= top.res.subrange_4@1 (and (<= 0 X47) (<= X47 1))) |
| 617 |
(= top.res.subrange_5@1 (and (<= 0 X15) (<= X15 1))) |
| 618 |
(not top.res.init_flag@1)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) |
| 619 |
|
| 620 |
|
| 621 |
|
| 622 |
;------------------------------------------------------------------------------- |
| 623 |
; Initial states : |
| 624 |
;------------------------------------------------------------------------------- |
| 625 |
|
| 626 |
(define-fun I1 ((i Int)) Bool |
| 627 |
(__node_init_top_0 |
| 628 |
(top.usr.onOff i) |
| 629 |
(top.usr.decelSet i) |
| 630 |
(top.usr.accelResume i) |
| 631 |
(top.usr.cancel i) |
| 632 |
(top.usr.brakePedal i) |
| 633 |
(top.usr.carGear i) |
| 634 |
(top.usr.carSpeed i) |
| 635 |
(top.usr.validInputs i) |
| 636 |
(top.usr.OK i) |
| 637 |
(top.res.init_flag i) |
| 638 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___ i) |
| 639 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep i) |
| 640 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root i) |
| 641 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out i) |
| 642 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out i) |
| 643 |
(top.res.subrange_1 i) |
| 644 |
(top.res.subrange_2 i) |
| 645 |
(top.res.subrange_3 i) |
| 646 |
(top.res.subrange_4 i) |
| 647 |
(top.res.subrange_5 i))) |
| 648 |
|
| 649 |
|
| 650 |
|
| 651 |
;------------------------------------------------------------------------------- |
| 652 |
; Transition_relation : |
| 653 |
;------------------------------------------------------------------------------- |
| 654 |
|
| 655 |
(define-fun T1 ((i Int) (j Int)) Bool |
| 656 |
(__node_trans_top_0 |
| 657 |
(top.usr.onOff j) |
| 658 |
(top.usr.decelSet j) |
| 659 |
(top.usr.accelResume j) |
| 660 |
(top.usr.cancel j) |
| 661 |
(top.usr.brakePedal j) |
| 662 |
(top.usr.carGear j) |
| 663 |
(top.usr.carSpeed j) |
| 664 |
(top.usr.validInputs j) |
| 665 |
(top.usr.OK j) |
| 666 |
(top.res.init_flag j) |
| 667 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___ j) |
| 668 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep j) |
| 669 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root j) |
| 670 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out j) |
| 671 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out j) |
| 672 |
(top.res.subrange_1 j) |
| 673 |
(top.res.subrange_2 j) |
| 674 |
(top.res.subrange_3 j) |
| 675 |
(top.res.subrange_4 j) |
| 676 |
(top.res.subrange_5 j) |
| 677 |
(top.usr.onOff i) |
| 678 |
(top.usr.decelSet i) |
| 679 |
(top.usr.accelResume i) |
| 680 |
(top.usr.cancel i) |
| 681 |
(top.usr.brakePedal i) |
| 682 |
(top.usr.carGear i) |
| 683 |
(top.usr.carSpeed i) |
| 684 |
(top.usr.validInputs i) |
| 685 |
(top.usr.OK i) |
| 686 |
(top.res.init_flag i) |
| 687 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic____wakeup___ i) |
| 688 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_rlt_evtInitStep i) |
| 689 |
(top.impl.usr.chart_CruiseController_ModeLogic_mode_logic_final_state_states___root i) |
| 690 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetAccel_Bounded_Count_Out i) |
| 691 |
(top.impl.usr.cruise_controller_CruiseController_ModeLogic_DelayOnsetDecel_Bounded_Count_Out i) |
| 692 |
(top.res.subrange_1 i) |
| 693 |
(top.res.subrange_2 i) |
| 694 |
(top.res.subrange_3 i) |
| 695 |
(top.res.subrange_4 i) |
| 696 |
(top.res.subrange_5 i))) |
| 697 |
|
| 698 |
|
| 699 |
|
| 700 |
;------------------------------------------------------------------------------- |
| 701 |
; Original property : |
| 702 |
;------------------------------------------------------------------------------- |
| 703 |
|
| 704 |
(define-fun P1 ((i Int)) Bool (top.usr.OK i)) |
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
;------------------------------------------------------------------------------- |
| 709 |
; k-Inductive invariant : |
| 710 |
;------------------------------------------------------------------------------- |
| 711 |
|
| 712 |
(define-fun PHI1 ((i Int)) Bool (top.usr.OK i)) |
| 713 |
|
| 714 |
|
| 715 |
|
| 716 |
;------------------------------------------------------------------------------- |
| 717 |
; Base case : |
| 718 |
;------------------------------------------------------------------------------- |
| 719 |
|
| 720 |
(assert (or (and (I1 0) (not (PHI1 0))) (and (and (I1 0) (T1 0 1)) (not (PHI1 1))))) |
| 721 |
|
| 722 |
(check-sat) |
| 723 |
(exit) |