Project

General

Profile

Revision 3fd18385 vhdl_json/vhdl_files/2-exportOK/cnes_guidelines/rule/data/CNE_04500_bad.json

View differences:

vhdl_json/vhdl_files/2-exportOK/cnes_guidelines/rule/data/CNE_04500_bad.json
235 235
                        "args" : [["EXPRESSION", {
236 236
                          "args" : [["EXPRESSION", {
237 237
                            "args" : [["EXPRESSION", {
238
                              "args" : [["CALL", ["FUNCTION_CALL", {
239
                                "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
240
                                  "actual_designator" : ["SIMPLE_NAME", "i_Clock"]}
241
                                ]}
238
                              "args" : [["CALL", ["INDEXED_NAME", {
239
                                "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
240
                                  "args" : [["EXPRESSION", {
241
                                    "args" : [["EXPRESSION", {
242
                                      "args" : [["EXPRESSION", {
243
                                        "args" : [["CALL", ["SIMPLE_NAME", "i_Clock"]]]}
244
                                      ]]}
245
                                    ]]}
246
                                  ]]}
247
                                ]]}
242 248
                              ]]]}
243 249
                            ]]}
244 250
                          ]]}
......
265 271
                    "args" : [["EXPRESSION", {
266 272
                      "args" : [["EXPRESSION", {
267 273
                        "args" : [["EXPRESSION", {
268
                          "args" : [["CALL", ["FUNCTION_CALL", {
269
                            "id" : ["SIMPLE_NAME", "Data_Reg"], "assoc_list" : [{
270
                              "actual_expr" : ["EXPRESSION", {
274
                          "args" : [["CALL", ["INDEXED_NAME", {
275
                            "id" : ["SIMPLE_NAME", "Data_Reg"], "exprs" : [["EXPRESSION", {
276
                              "args" : [["EXPRESSION", {
271 277
                                "args" : [["EXPRESSION", {
272 278
                                  "args" : [["EXPRESSION", {
273
                                    "args" : [["EXPRESSION", {
274
                                      "args" : [["CONSTANT_VALUE", {
275
                                        "value" : ["CST_LITERAL", "2"]}
276
                                      ]]}
279
                                    "args" : [["CONSTANT_VALUE", {
280
                                      "value" : ["CST_LITERAL", "2"]}
277 281
                                    ]]}
278 282
                                  ]]}
279 283
                                ]]}
280
                              ]}
281
                            ]}
284
                              ]]}
285
                            ]]}
282 286
                          ]]]}
283 287
                        ]]}
284 288
                      ]]}
......
303 307
                    "args" : [["EXPRESSION", {
304 308
                      "args" : [["EXPRESSION", {
305 309
                        "args" : [["EXPRESSION", {
306
                          "args" : [["CALL", ["FUNCTION_CALL", {
307
                            "id" : ["SIMPLE_NAME", "Data_Reg"], "assoc_list" : [{
308
                              "actual_expr" : ["EXPRESSION", {
310
                          "args" : [["CALL", ["INDEXED_NAME", {
311
                            "id" : ["SIMPLE_NAME", "Data_Reg"], "exprs" : [["EXPRESSION", {
312
                              "args" : [["EXPRESSION", {
309 313
                                "args" : [["EXPRESSION", {
310 314
                                  "args" : [["EXPRESSION", {
311
                                    "args" : [["EXPRESSION", {
312
                                      "args" : [["CONSTANT_VALUE", {
313
                                        "value" : ["CST_LITERAL", "1"]}
314
                                      ]]}
315
                                    "args" : [["CONSTANT_VALUE", {
316
                                      "value" : ["CST_LITERAL", "1"]}
315 317
                                    ]]}
316 318
                                  ]]}
317 319
                                ]]}
318
                              ]}
319
                            ]}
320
                              ]]}
321
                            ]]}
320 322
                          ]]]}
321 323
                        ]]}
322 324
                      ]]}
......
341 343
                    "args" : [["EXPRESSION", {
342 344
                      "args" : [["EXPRESSION", {
343 345
                        "args" : [["EXPRESSION", {
344
                          "args" : [["CALL", ["FUNCTION_CALL", {
345
                            "id" : ["SIMPLE_NAME", "Data_Reg"], "assoc_list" : [{
346
                              "actual_expr" : ["EXPRESSION", {
346
                          "args" : [["CALL", ["INDEXED_NAME", {
347
                            "id" : ["SIMPLE_NAME", "Data_Reg"], "exprs" : [["EXPRESSION", {
348
                              "args" : [["EXPRESSION", {
347 349
                                "args" : [["EXPRESSION", {
348 350
                                  "args" : [["EXPRESSION", {
349
                                    "args" : [["EXPRESSION", {
350
                                      "args" : [["CONSTANT_VALUE", {
351
                                        "value" : ["CST_LITERAL", "0"]}
352
                                      ]]}
351
                                    "args" : [["CONSTANT_VALUE", {
352
                                      "value" : ["CST_LITERAL", "0"]}
353 353
                                    ]]}
354 354
                                  ]]}
355 355
                                ]]}
356
                              ]}
357
                            ]}
356
                              ]]}
357
                            ]]}
358 358
                          ]]]}
359 359
                        ]]}
360 360
                      ]]}
......
407 407
                "args" : [["EXPRESSION", {
408 408
                  "args" : [["EXPRESSION", {
409 409
                    "args" : [["EXPRESSION", {
410
                      "args" : [["CALL", ["FUNCTION_CALL", {
411
                        "id" : ["SIMPLE_NAME", "std_logic_vector"], "assoc_list" : [{
412
                          "actual_expr" : ["EXPRESSION", {
410
                      "args" : [["CALL", ["INDEXED_NAME", {
411
                        "id" : ["SIMPLE_NAME", "std_logic_vector"], "exprs" : [["EXPRESSION", {
412
                          "args" : [["EXPRESSION", {
413 413
                            "args" : [["EXPRESSION", {
414 414
                              "args" : [["EXPRESSION", {
415
                                "args" : [["EXPRESSION", {
416
                                  "id" : "+", "args" : [["EXPRESSION", {
417
                                    "args" : [["CALL", ["FUNCTION_CALL", {
418
                                      "id" : ["SIMPLE_NAME", "unsigned"], "assoc_list" : [{
419
                                        "actual_expr" : ["EXPRESSION", {
415
                                "id" : "+", "args" : [["EXPRESSION", {
416
                                  "args" : [["CALL", ["INDEXED_NAME", {
417
                                    "id" : ["SIMPLE_NAME", "unsigned"], "exprs" : [["EXPRESSION", {
418
                                      "args" : [["EXPRESSION", {
419
                                        "args" : [["EXPRESSION", {
420 420
                                          "args" : [["EXPRESSION", {
421
                                            "args" : [["EXPRESSION", {
422
                                              "args" : [["EXPRESSION", {
423
                                                "id" : "&", "args" : [["EXPRESSION", {
424
                                                  "args" : [["CONSTANT_VALUE", {
425
                                                    "value" : ["CST_LITERAL", "'0'"]}
426
                                                  ]]}
427
                                                ], ["EXPRESSION", {
428
                                                  "args" : [["CALL", ["FUNCTION_CALL", {
429
                                                    "id" : ["SIMPLE_NAME", "Data_Reg"], "assoc_list" : [{
430
                                                      "actual_expr" : ["EXPRESSION", {
431
                                                        "args" : [["EXPRESSION", {
432
                                                          "args" : [["EXPRESSION", {
433
                                                            "args" : [["EXPRESSION", {
434
                                                              "args" : [["CONSTANT_VALUE", {
435
                                                                "value" : ["CST_LITERAL", "3"]}
436
                                                              ]]}
437
                                                            ]]}
438
                                                          ]]}
421
                                            "id" : "&", "args" : [["EXPRESSION", {
422
                                              "args" : [["CONSTANT_VALUE", {
423
                                                "value" : ["CST_LITERAL", "'0'"]}
424
                                              ]]}
425
                                            ], ["EXPRESSION", {
426
                                              "args" : [["CALL", ["INDEXED_NAME", {
427
                                                "id" : ["SIMPLE_NAME", "Data_Reg"], "exprs" : [["EXPRESSION", {
428
                                                  "args" : [["EXPRESSION", {
429
                                                    "args" : [["EXPRESSION", {
430
                                                      "args" : [["EXPRESSION", {
431
                                                        "args" : [["CONSTANT_VALUE", {
432
                                                          "value" : ["CST_LITERAL", "3"]}
439 433
                                                        ]]}
440
                                                      ]}
441
                                                    ]}
442
                                                  ]]]}
434
                                                      ]]}
435
                                                    ]]}
436
                                                  ]]}
443 437
                                                ]]}
444
                                              ]]}
438
                                              ]]]}
445 439
                                            ]]}
446 440
                                          ]]}
447
                                        ]}
448
                                      ]}
449
                                    ]]]}
450
                                  ], ["EXPRESSION", {
451
                                    "args" : [["CALL", ["FUNCTION_CALL", {
452
                                      "id" : ["SIMPLE_NAME", "unsigned"], "assoc_list" : [{
453
                                        "actual_expr" : ["EXPRESSION", {
441
                                        ]]}
442
                                      ]]}
443
                                    ]]}
444
                                  ]]]}
445
                                ], ["EXPRESSION", {
446
                                  "args" : [["CALL", ["INDEXED_NAME", {
447
                                    "id" : ["SIMPLE_NAME", "unsigned"], "exprs" : [["EXPRESSION", {
448
                                      "args" : [["EXPRESSION", {
449
                                        "args" : [["EXPRESSION", {
454 450
                                          "args" : [["EXPRESSION", {
455
                                            "args" : [["EXPRESSION", {
456
                                              "args" : [["EXPRESSION", {
457
                                                "id" : "&", "args" : [["EXPRESSION", {
458
                                                  "args" : [["CONSTANT_VALUE", {
459
                                                    "value" : ["CST_LITERAL", "'0'"]}
460
                                                  ]]}
461
                                                ], ["EXPRESSION", {
462
                                                  "args" : [["CALL", ["FUNCTION_CALL", {
463
                                                    "id" : ["SIMPLE_NAME", "Data_Reg"], "assoc_list" : [{
464
                                                      "actual_expr" : ["EXPRESSION", {
465
                                                        "args" : [["EXPRESSION", {
466
                                                          "args" : [["EXPRESSION", {
467
                                                            "args" : [["EXPRESSION", {
468
                                                              "args" : [["CONSTANT_VALUE", {
469
                                                                "value" : ["CST_LITERAL", "2"]}
470
                                                              ]]}
471
                                                            ]]}
472
                                                          ]]}
451
                                            "id" : "&", "args" : [["EXPRESSION", {
452
                                              "args" : [["CONSTANT_VALUE", {
453
                                                "value" : ["CST_LITERAL", "'0'"]}
454
                                              ]]}
455
                                            ], ["EXPRESSION", {
456
                                              "args" : [["CALL", ["INDEXED_NAME", {
457
                                                "id" : ["SIMPLE_NAME", "Data_Reg"], "exprs" : [["EXPRESSION", {
458
                                                  "args" : [["EXPRESSION", {
459
                                                    "args" : [["EXPRESSION", {
460
                                                      "args" : [["EXPRESSION", {
461
                                                        "args" : [["CONSTANT_VALUE", {
462
                                                          "value" : ["CST_LITERAL", "2"]}
473 463
                                                        ]]}
474
                                                      ]}
475
                                                    ]}
476
                                                  ]]]}
464
                                                      ]]}
465
                                                    ]]}
466
                                                  ]]}
477 467
                                                ]]}
478
                                              ]]}
468
                                              ]]]}
479 469
                                            ]]}
480 470
                                          ]]}
481
                                        ]}
482
                                      ]}
483
                                    ]]]}
484
                                  ]]}
471
                                        ]]}
472
                                      ]]}
473
                                    ]]}
474
                                  ]]]}
485 475
                                ]]}
486 476
                              ]]}
487 477
                            ]]}
488
                          ]}
489
                        ]}
478
                          ]]}
479
                        ]]}
490 480
                      ]]]}
491 481
                    ]]}
492 482
                  ]]}

Also available in: Unified diff