1# ticket: 404
2
3cdef long foo(long x):
4    print "foo(%s)" % x
5    return x
6
7def test_or(long a, long b):
8    """
9    >>> test_or(1,2)
10    foo(1)
11    1
12    >>> test_or(1,0)
13    foo(1)
14    1
15    >>> test_or(0,2)
16    foo(0)
17    foo(2)
18    2
19    >>> test_or(0,0)
20    foo(0)
21    foo(0)
22    0
23    """
24    print foo(a) or foo(b)
25
26def test_and(long a, long b):
27    """
28    >>> test_and(1,2)
29    foo(1)
30    foo(2)
31    2
32    >>> test_and(1,0)
33    foo(1)
34    foo(0)
35    0
36    >>> test_and(0,2)
37    foo(0)
38    0
39    >>> test_and(0,0)
40    foo(0)
41    0
42    """
43    print foo(a) and foo(b)
44