line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dallycot::AST::Increasing; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:JSMITH'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# ABSTRACT: Test if all values are in increasing order |
5
|
|
|
|
|
|
|
|
6
|
23
|
|
|
23
|
|
12921
|
use strict; |
|
23
|
|
|
|
|
42
|
|
|
23
|
|
|
|
|
750
|
|
7
|
23
|
|
|
23
|
|
94
|
use warnings; |
|
23
|
|
|
|
|
31
|
|
|
23
|
|
|
|
|
490
|
|
8
|
|
|
|
|
|
|
|
9
|
23
|
|
|
23
|
|
82
|
use utf8; |
|
23
|
|
|
|
|
34
|
|
|
23
|
|
|
|
|
97
|
|
10
|
23
|
|
|
23
|
|
439
|
use parent 'Dallycot::AST::ComparisonBase'; |
|
23
|
|
|
|
|
40
|
|
|
23
|
|
|
|
|
125
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub to_string { |
13
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
14
|
0
|
|
|
|
|
|
return join( " <= ", map { $_->to_string } @{$self} ); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub to_rdf { |
18
|
0
|
|
|
0
|
0
|
|
my($self, $model) = @_; |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
return $model -> apply( |
21
|
|
|
|
|
|
|
$model -> meta_uri('loc:all-increasing'), |
22
|
|
|
|
|
|
|
[ @$self ] |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
# my $bnode = $model->bnode; |
25
|
|
|
|
|
|
|
# $model -> add_type($bnode, 'loc:Increasing'); |
26
|
|
|
|
|
|
|
# |
27
|
|
|
|
|
|
|
# $model -> add_list($bnode, 'loc:expressions', |
28
|
|
|
|
|
|
|
# map { $_ -> to_rdf($model) } @$self |
29
|
|
|
|
|
|
|
# ); |
30
|
|
|
|
|
|
|
# return $bnode; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub compare { |
34
|
0
|
|
|
0
|
0
|
|
my ( $self, $engine, $left_value, $right_value ) = @_; |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
return $left_value->is_less_or_equal( $engine, $right_value ); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |