| 1 | package Logic::Relational::Goal::True; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 31 | ▶ | use v5.38; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 31 | ▶ | use experimental 'signatures'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 31 | ▶ | use parent 'Logic::Relational::Goal'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | =head1 NAME | ||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | Logic::Relational::Goal::True - Goal that always succeeds. | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | =cut | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 474 | ▶ | sub new ($class) { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 14 | 474 | return bless {}, $class; | |||||||||||||||||||
| 15 | } | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 385 | ▶ | sub expand ( $self, %args ) { | ||||||||||||||||||
|
Subroutine
expand: called CC=2 SCAR=7.4
Pod
documented
| |||||||||||||||||||||
| 18 | 385 | my $state = $args{state}; | |||||||||||||||||||
| 19 | 385 | my $remaining = $args{remaining}; | |||||||||||||||||||
| 20 | 385 | my $succ = $state->derive( goals => $remaining, ); | |||||||||||||||||||
| 21 | 385 | ▶ | return $succ // (); | ||||||||||||||||||
|
Condition33%1/3
$succ // ()
MC/DC0%0/2
$succ // ()
$succ
()
Truth table33%1/3
A // B
A= $succB= ()
| |||||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 535 | ▶ | sub freshen ( $self, $var_map ) { | ||||||||||||||||||
|
Subroutine
freshen: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 25 | 535 | return $self; | |||||||||||||||||||
| 26 | } | ||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | 0 | ▶ | sub is_ground ( $self, $subst ) { | ||||||||||||||||||
|
Subroutine
is_ground: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 29 | 0 | return 1; | |||||||||||||||||||
| 30 | } | ||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | 31 | 1; | |||||||||||||||||||