Record Class ConfineCensus
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase9.ConfineCensus
- Record Components:
placed- how manyCONFINEs the placement put in, both formsplacedWith- how many of those are the conditional form,CONFINE v, with, h(N-V V3)placedByType- the same by the allocated type's fully qualified name, in name orderfuseFindings- the derivation contradictions that tripped the fuse (E1a, E1b); empty when it held
public record ConfineCensus(int placed, int placedWith, Map<String,Integer> placedByType, List<String> fuseFindings)
extends Record
THE census of one program's
CONFINE placement (N-V V1; master plan row 5, M2): how many sites
ConfinePlacement stamped, by the allocated type's fully qualified name, and whether the program's fuse
(DerivationContradictions) tripped - the numbers the -v line and -Dek9.confine.print quote,
kept on the program (CompilableProgram.getConfineCensus()) so a harness that compiled a program in-process
can ask it, never a stderr parser. Gate step 18's selection reads it: a native program is run under
ThreadSanitizer because its IR carries a site stamp (stampsASite()), not because its name matches a
pattern - a stamp on a type a site stamp can matter for is by construction a stamp on a type that is not
[confined] (ConfinedSites rule 4), so "allocates a non-confined type with a site stamp" and
"placed at least one" are the same question.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfineCensusThe census of a program the pass was not run over (theconfineswitch off, or before IR_OPTIMISATION). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefuseFindingsrecord component.booleanDid the program's fuse trip, so that no site was stamped whatever the records said.final inthashCode()Returns a hash code value for this object.intplaced()Returns the value of theplacedrecord component.Returns the value of theplacedByTyperecord component.intReturns the value of theplacedWithrecord component.booleanDid the placement stamp at least one allocation site of this program.summary()The one-line form the-vreporter line and theCONFINE-CENSUStriage line carry.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
The census of a program the pass was not run over (theconfineswitch off, or before IR_OPTIMISATION).
-
-
Constructor Details
-
ConfineCensus
public ConfineCensus(int placed, int placedWith, Map<String, Integer> placedByType, List<String> fuseFindings) Creates an instance of aConfineCensusrecord class.- Parameters:
placed- the value for theplacedrecord componentplacedWith- the value for theplacedWithrecord componentplacedByType- the value for theplacedByTyperecord componentfuseFindings- the value for thefuseFindingsrecord component
-
-
Method Details
-
stampsASite
public boolean stampsASite()Did the placement stamp at least one allocation site of this program. -
fuseTripped
public boolean fuseTripped()Did the program's fuse trip, so that no site was stamped whatever the records said. -
summary
The one-line form the-vreporter line and theCONFINE-CENSUStriage line carry. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
placed
-
placedWith
public int placedWith()Returns the value of theplacedWithrecord component.- Returns:
- the value of the
placedWithrecord component
-
placedByType
Returns the value of theplacedByTyperecord component.- Returns:
- the value of the
placedByTyperecord component
-
fuseFindings
Returns the value of thefuseFindingsrecord component.- Returns:
- the value of the
fuseFindingsrecord component
-