about summary refs log tree commit diff stats
path: root/cpp/.traces/first_scenario_in_mu
blob: 48ac75b5ef000209007f5a6bd3b12cc427226ba6 (plain) (blame)
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
parse/0: instruction: run
parse/0:   ingredient: {name: "
    1:integer <- add 2:literal, 2:literal
  ", value: 0, type: 0, properties: ["
    1:integer <- add 2:literal, 2:literal
  ": "literal-string"]}
parse/0: instruction: memory-should-contain
parse/0:   ingredient: {name: "
    1 <- 4
  ", value: 0, type: 0, properties: ["
    1 <- 4
  ": "literal-string"]}
after-brace/0: recipe first_scenario_in_mu
after-brace/0: run ...
after-brace/0: memory-should-contain ...
new/0: routine allocated memory from 1000 to 101000
schedule/0: first_scenario_in_mu
run/0: instruction first_scenario_in_mu/0
run/0: run/43 {name: "
    1:integer <- add 2:literal, 2:literal
  ", value: 0, type: 0, properties: ["
    1:integer <- add 2:literal, 2:literal
  ": "literal-string"]}
parse/0: instruction: add
parse/0:   ingredient: {name: "2", value: 0, type: 0, properties: ["2": "literal"]}
parse/0:   ingredient: {name: "2", value: 0, type: 0, properties: ["2": "literal"]}
parse/0:   product: {name: "1", value: 0, type: 1, properties: ["1": "integer"]}
after-brace/0: recipe run1001
after-brace/0: add ...
run/0: instruction run1001/0
run/0: {name: "1", value: 1, type: 1, properties: ["1": "integer"]} <- add/2 {name: "2", value: 2, type: 0, properties: ["2": "literal"]}, {name: "2", value: 2, type: 0, properties: ["2": "literal"]}
run/0: ingredient 0 is 2
run/0: ingredient 1 is 2
run/0: product 0 is 4
mem/0: storing 4 in location 1
run/0: instruction first_scenario_in_mu/1
run/0: memory-should-contain/44 {name: "
    1 <- 4
  ", value: 0, type: 0, properties: ["
    1 <- 4
  ": "literal-string"]}
run/0: checking location 1
an> * the timeout control into this module for these functions in * order to simplify the modules that use them. \*=========================================================================*/ #include "timeout.h" /* convenient shorthand */ typedef struct sockaddr SA; /*=========================================================================*\ * Functions bellow implement a comfortable platform independent * interface to sockets \*=========================================================================*/ #ifndef _WIN32 #pragma GCC visibility push(hidden) #endif int socket_waitfd(p_socket ps, int sw, p_timeout tm); int socket_open(void); int socket_close(void); void socket_destroy(p_socket ps); int socket_select(t_socket n, fd_set *rfds, fd_set *wfds, fd_set *efds, p_timeout tm); int socket_create(p_socket ps, int domain, int type, int protocol); int socket_bind(p_socket ps, SA *addr, socklen_t addr_len); int socket_listen(p_socket ps, int backlog); void socket_shutdown(p_socket ps, int how); int socket_connect(p_socket ps, SA *addr, socklen_t addr_len, p_timeout tm); int socket_accept(p_socket ps, p_socket pa, SA *addr, socklen_t *addr_len, p_timeout tm); int socket_send(p_socket ps, const char *data, size_t count, size_t *sent, p_timeout tm); int socket_sendto(p_socket ps, const char *data, size_t count, size_t *sent, SA *addr, socklen_t addr_len, p_timeout tm); int socket_recv(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm); int socket_recvfrom(p_socket ps, char *data, size_t count, size_t *got, SA *addr, socklen_t *addr_len, p_timeout tm); int socket_write(p_socket ps, const char *data, size_t count, size_t *sent, p_timeout tm); int socket_read(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm); void socket_setblocking(p_socket ps); void socket_setnonblocking(p_socket ps); int socket_gethostbyaddr(const char *addr, socklen_t len, struct hostent **hp); int socket_gethostbyname(const char *addr, struct hostent **hp); const char *socket_hoststrerror(int err); const char *socket_strerror(int err); const char *socket_ioerror(p_socket ps, int err); const char *socket_gaistrerror(int err); #ifndef _WIN32 #pragma GCC visibility pop #endif #endif /* SOCKET_H */