This file is indexed.

/usr/lib/ats2-postiats-0.2.9/libats/SATS/funarray.sats is in ats2-lang 0.2.9-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
(*
** libatscc-common
*)

(* ****** ****** *)
//
#define
ATS_PACKNAME
"ATSLIB.libats.funarray"
//
(* ****** ****** *)
//
abstype
funarray_t0ype_int_type
  (a:t@ype+, n:int) = ptr(*boxed*)
//
typedef
funarray
(
  a:t0p, n:int
) = funarray_t0ype_int_type(a, n)
//
typedef
funarray(a:t0p) = [n:int] funarray(a, n)
//
(* ****** ****** *)
//
praxi
lemma_funarray_param
  {a:t0p}{n:int}
  (A: funarray(a, n)): [n >= 0] void
//
(* ****** ****** *)
//
fun{}
funarray_is_nil
  {a:t0p}{n:int}
  (funarray(a, n)):<> bool(n==0)
fun{}
funarray_isnot_nil
  {a:t0p}{n:int}
  (funarray(a, n)):<> bool(n > 0)
//
(* ****** ****** *)
//
fun{}
funarray_nil
  {a:t0p}((*void*)):<> funarray(a, 0)
fun{}
funarray_make_nil
  {a:t0p}((*void*)):<> funarray(a, 0)
//
(* ****** ****** *)
//
fun
{a:t0p}
funarray_size{n:int}(A: funarray(INV(a), n)):<> int(n)
//
(* ****** ****** *)
//
fun
{a:t0p}
funarray_get_at{n:int}
  (A: funarray(INV(a), n), i: natLt(n)):<> (a)
//
fun
{a:t0p}
funarray_set_at{n:int}
  (A: &funarray(INV(a), n) >> _, i: natLt(n), x: a): void
//
(* ****** ****** *)
//
fun
{a:t0p}
funarray_insert_l{n:int}
(
  A: &funarray(INV(a), n) >> funarray(a, n+1), x: a
) : void // end-of-function
fun
{a:t0p}
funarray_insert_r{n:int}
(
  A: &funarray(INV(a), n) >> funarray(a, n+1), n: int(n), x: a
) : void // end-of-function
//
(* ****** ****** *)
//
fun
{a:t0p}
funarray_remove_l{n:pos}
(
  A: &funarray(INV(a), n) >> funarray(a, n-1)
) : (a) // end of [funarray_remove_l]
//
fun
{a:t0p}
funarray_remove_r{n:pos}
(
  A: &funarray(INV(a), n) >> funarray(a, n-1), n: int(n)
) : (a) // end of [funarray_remove_r]
//
(* ****** ****** *)
//
fun{}
fprint_funarray$sep
  (out: FILEref): void // ", "
//
fun{a:t0p}
fprint_funarray
  (FILEref, funarray(INV(a))): void
fun{a:t0p}
fprint_funarray_sep
  (FILEref, funarray(INV(a)), sep: string): void
//
overload fprint with fprint_funarray
//
(* ****** ****** *)
//
fun{
x:t0p
} funarray_foreach(xs: funarray(INV(x))): void
fun{
x:t0p}{env:vt0p
} funarray_foreach_env
  (xs: funarray(INV(x)), env: &(env) >> _): void
//
fun{
x:t0p}{env:vt0p
} funarray_foreach$cont (x: x, env: &env): bool
fun{
x:t0p}{env:vt0p
} funarray_foreach$fwork(x: x, env: &(env) >> _): void
//
(* ****** ****** *)

(* end of [funarray.sats] *)