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

Consistency Check ignoring connection error source #116

Description

@thari

--Test case: Error originating from a connection, sank in device2, but not
--recognized by consistency check that it has an error source
--https://github.com/osate/ErrorModelV2/blob/develop/org.osate.aadl2.errormodel.analysis/src/org/osate/aadl2/errormodel/analysis/actions/ConsistencyAction.java
--line no: 354
--Error : Incoming propagation I1 not correctly handled

system implementation TestSystem.imp
	subcomponents
		dev1: device Device1.imp;
		dev2: device Device2.imp;
	connections
		conn1: port dev1.O1 -> dev2.I1;
	annex EMV2 {**
		use types ErrorLibrary; 	
		connection error
		-- Error source
			conn1_error: error source conn1{ValueError}; 
		end connection;
	**};
end TestSystem.imp;

device Device1
	features
		O1: out data port;
end Device1;

device implementation Device1.imp
end Device1.imp;

device Device2
	features
		I1: in data port;
	annex EMV2 {**
		use types ErrorLibrary;
		error propagations
		--error sink
			I1 : in propagation {ValueError};
		flows
			--error sink
			incoming_error_sink : error sink I1{ValueError}; 
		end propagations;
	**};
end Device2;

device implementation Device2.imp
end Device2.imp;

Reproduction Step:

  1. Load the provided model snippet into Osate2
  2. Instantiate TestSystem.imp
  3. Right click the generated instance -> AADL Analyses -> Fault Analyses -> Consistency Checks
  4. Problems listed: Incoming propagation I1 not correctly handled

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions