blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 3
357
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
58
| license_type
stringclasses 2
values | repo_name
stringlengths 4
115
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
58
| visit_date
timestamp[ns]date 2015-07-14 21:31:45
2023-09-06 10:45:08
| revision_date
timestamp[ns]date 1970-01-01 00:00:00
2023-09-05 23:26:37
| committer_date
timestamp[ns]date 1970-01-01 00:00:00
2023-09-05 23:26:37
| github_id
int64 966
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 24
values | gha_event_created_at
timestamp[ns]date 2012-06-07 00:51:45
2023-09-14 21:58:52
⌀ | gha_created_at
timestamp[ns]date 2008-02-03 21:17:16
2023-08-24 19:49:39
⌀ | gha_language
stringclasses 180
values | src_encoding
stringclasses 35
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 6
10.4M
| extension
stringclasses 121
values | filename
stringlengths 1
148
| content
stringlengths 6
10.4M
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c6a450871681f4e752dc7f1ac3ad69b47a50f4f
|
89eafffd1b362d03a9e5127a2753dddbebdd056e
|
/evalexpr/ex00/ft.h
|
857a4ba9f81819b0795b3137ad74c56182c720f8
|
[] |
no_license
|
allenwian/42
|
fb8f81de140fa138240c54da6641c23963780a3a
|
27524d9654e74930d941577bf7b0373f4cf419bc
|
refs/heads/master
| 2021-01-01T16:37:59.202357 | 2017-07-22T01:38:03 | 2017-07-22T01:38:03 | 97,878,260 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,546 |
h
|
ft.h
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: iallen <iallen@student.42.us.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/07/10 21:47:49 by iallen #+# #+# */
/* Updated: 2017/07/16 21:40:55 by iallen ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_H
# define FT_H
# include <unistd.h>
int find_temp(char **str, int temp);
int check_digit(char **str);
int more_math(int val, char **str);
int math_one(int val, char **str);
int math_two(int val, char **str);
int compute(char **str, int result, int temp);
int eval_expr(char *str);
int ft_add(int first, int second);
int ft_subtract(int first, int second);
int ft_divide(int first, int second);
int ft_modulus(int first, int second);
int ft_multiply(int first, int second);
int ft_math(int first, int second, int (*f)(int, int));
void ft_putchar(char c);
void ft_putnbr(int nb);
int ft_atoi(char **str);
#endif
|
617d575cefd607d0d6f8aedb400c9ccf75403a49
|
2410b6ef5716e1d513a5c0141a862b9e27f985f5
|
/php/serial_led_analog/serial_led_analog.ino
|
4e0fe99005a9d99b95342a932d69c7a485e0ae3b
|
[] |
no_license
|
lvidarte/arduino-stuff
|
8fac0fb6929bff0eaf84700a15a34482e04bf8ae
|
6c8d6110b576e5dc38e1fcc7fb72d42e3bb293ed
|
refs/heads/master
| 2021-06-27T01:51:53.361088 | 2016-10-13T15:21:02 | 2016-10-13T15:21:02 | 5,729,541 | 4 | 5 | null | null | null | null |
UTF-8
|
C
| false | false | 625 |
ino
|
serial_led_analog.ino
|
/* vim: set ft=c : */
/**
* Author: Leo Vidarte <http://nerdlabs.com.ar>
*
* This is free software:
* you can redistribute it and/or modify it
* under the terms of the GPL version 3
* as published by the Free Software Foundation.
*/
#define LED 10
void setup() {
Serial.begin(9600);
pinMode(LED, OUTPUT);
}
void loop() {
if (Serial.available() > 0) {
int value = (int) Serial.read();
// 0 - 9 (ascii 48 - 57)
int brightness = map(value, 48, 57, 0, 255);
Serial.println(value, DEC);
Serial.println(brightness, DEC);
analogWrite(LED, brightness);
}
}
|
c10df8917b38406a380b5de8e29c180a79db1274
|
5cd5f8546cba9de5870a0dac91dc9e84943ff9a8
|
/tlpi/daemons/daemon.c
|
ca31acfcbfbc472156db251a70ec4d66cb17a308
|
[] |
no_license
|
PrasannaC/LearningLinux
|
706b63bcb3602767a9e4636f871688bcf3a1f6fe
|
f28a0ecfb6dac17b68199dc472d3394af7a2e583
|
refs/heads/master
| 2021-01-10T19:39:23.184295 | 2015-07-16T21:07:10 | 2015-07-16T21:07:10 | 39,217,780 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,156 |
c
|
daemon.c
|
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include "daemon.h"
#include <unistd.h>
int becomeDaemon(int flags) /* returns 0 on success, -1 on error */
{
int maxfd, fd;
switch(fork()){ /* Become background process */
case -1: return -1;
case 0: break; /* Child falls through, parent terminates */
default: _exit(EXIT_SUCCESS);
}
if(setsid() == -1) /* Become leader of new session */
return -1;
switch (fork()){ /* Ensure we are not session leader */
case -1: return -1;
case 0: break;
default: _exit(EXIT_SUCCESS);
}
if(!(flags & BD_NO_UMASKo))
umask(0);
if(!(flags & BD_NO_CHDIR))
chdir("/");
if(!(flags & BD_NO_CLOSE_FILES)) {
maxfd = sysconf(_SC_OPEN_MAX);
if(maxfd == -1)
maxfd = BD_MAX_CLOSE;
for(fd = 0; fd < maxfd; fd++)
close(fd);
}
if(!(flags & BD_NO_REOPEN_STD_FDS)){
close(STDIN_FILENO);
fd = open("/dev/null",O_RDWR);
if(fd != STDIN_FILENO)
return -1;
if(dup2(STDIN_FILENO, STDOUT_FILENO) != STDOUT_FILENO)
return -1;
if(dup2(STDIN_FILENO, STDERR_FILENO) != STDERR_FILENO)
return -1;
}
return 0;
}
|
905f17bcb1fb1660ea407ada440925d747878de9
|
913da4eb60f9e2d481ef8539e9a9a3a441d9f92b
|
/lib/tcp/tcp_conn_actor.c
|
a2aeeb873ca1ae9b744a24560ac9a8091a50246b
|
[] |
no_license
|
ziyanTCP/ziyan_tcpstack
|
70bc212281b1267685607e294e35c41884894ea0
|
d3b999f1cc82e605206c1e6141896e73a38f7356
|
refs/heads/master
| 2022-04-21T19:08:26.288124 | 2020-03-20T18:26:43 | 2020-03-20T18:26:43 | 242,651,867 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 42 |
c
|
tcp_conn_actor.c
|
//
// Created by Ziyan Wu on 11/9/19.
//
|
4760f8f92cae69412aee6ed5894e3f273f154cf8
|
0e1a3bdbcf5406a2c46a881f7be3d9e0431c06ec
|
/rush01/ex00/is_line.c
|
79e0ca5098ac293ed1e63049aba2852534e6ffb6
|
[] |
no_license
|
rezifeur/piscine42
|
1d1dd1c2f24e88d78322076a0e4c76ffb8613965
|
9792f08c98d11f2c52e24c8e02d00a9c6f7f3ec6
|
refs/heads/master
| 2021-07-03T05:36:39.166583 | 2017-09-23T12:24:16 | 2017-09-23T12:24:16 | 103,378,301 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,091 |
c
|
is_line.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_line.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cbrian <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/09/09 12:31:21 by cbrian #+# #+# */
/* Updated: 2017/09/09 22:00:12 by cbrian ### ########.fr */
/* */
/* ************************************************************************** */
int is_line(char **sudoku, int line_val, int col_val, char valeur)
{
int k;
k = 0;
while (k < 9)
{
if (sudoku[line_val][k] == valeur && k != col_val)
return (0);
k++;
}
return (1);
}
|
75c7038575f47917365eb043631d845cbb1f977c
|
eead6dbbf4a2495989792cadfe750f56314ceb62
|
/User Mode Process Scheduling/Code/test/busy.c
|
febf2bb087936c8bfb3497792e233c882a7c8ae6
|
[] |
no_license
|
GursimranKaur06/MINIX-Development
|
80d74ad51e48f6871e5d58c9c426c2d87a5afd20
|
a777b19a6822698cece81ef11d8ad7b58a0b93f4
|
refs/heads/master
| 2022-10-12T22:00:25.171345 | 2020-06-14T19:43:03 | 2020-06-14T19:43:03 | 271,918,662 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 178 |
c
|
busy.c
|
#include <stdio.h>
int main(int argc, char *argv[]) {
unsigned long i;
for (i = 1; i <= 1000000000ULL; ++i);
for (i = 1; i <= 1000000000ULL; ++i);
return 0;
}
|
a45097779c92435feec383691d5cb2a7c77805b2
|
8862277da84c35556f21c24de34f6df97dd73e3d
|
/StackImplArray/main.c
|
cb963e577095bfc9e3afb95952463c5da3e2d29e
|
[] |
no_license
|
c197524/StackImplArray
|
e4c13830ca590fc6e925fcd0516a4d73980db805
|
7c3e76c031cc828fcee9ffef8de5f40c0816e545
|
refs/heads/master
| 2020-04-27T11:11:19.343949 | 2019-03-07T06:42:42 | 2019-03-07T06:42:42 | 174,286,505 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 401 |
c
|
main.c
|
#include <stdio.h>
#include "stack.h"
int main() {
Stack S = CreateStack(10);
for (int i = 0; i < 10; i++) {
Push(i, S);
}
printf("Stack IsEmpty? %d Stack IsFull? %d Size:%d\n", IsEmpty(S), IsFull(S),S->TopOfStack+1);
for (int i = 0; i < 5; i++)
{
printf("%d\n", Pop(S));
}
printf("Stack IsEmpty? %d Stack IsFull? %d Stack Size:%d\n", IsEmpty(S), IsFull(S),S->TopOfStack+1);
return 0;
}
|
54772000d4cc386e22e217e09e7fe8abd6afccf0
|
cc07873a60566ea76f513f98af201e276dfad8e6
|
/XHSI_plugin/datarefs_ufmc.h
|
be1fa4cf213c328c89b315b4bf0739a5b7a05373
|
[] |
no_license
|
annerajb/XHSI
|
d2e0e14445f66b8cbfbf0be2710f83be83501979
|
41f3e898cfb652d3ced8ed846595b4b8bc66ef84
|
refs/heads/master
| 2020-09-04T00:30:01.210316 | 2019-09-18T16:20:08 | 2019-09-18T16:20:08 | 219,616,977 | 3 | 0 | null | 2019-11-10T21:04:12 | 2019-11-04T23:35:40 |
Java
|
UTF-8
|
C
| false | false | 5,317 |
h
|
datarefs_ufmc.h
|
/*
* datarefs_ufmc.h
*
* Created on:
* Author:
*/
#ifndef DATAREFS_UFMC_H_
#define DATAREFS_UFMC_H_
#define NUM_UFMC_LINES 14
// global vars
extern XPLMDataRef ufmc_plugin_status;
extern XPLMPluginID ufmcPluginId;
extern XPLMDataRef ufmc_v1;
extern XPLMDataRef ufmc_vr;
extern XPLMDataRef ufmc_v2;
extern XPLMDataRef ufmc_vref;
extern XPLMDataRef ufmc_vf30;
extern XPLMDataRef ufmc_vf40;
// Engine performance
extern XPLMDataRef ufmc_eng_n1_1;
extern XPLMDataRef ufmc_eng_n1_2;
extern XPLMDataRef ufmc_eng_n1_3;
extern XPLMDataRef ufmc_eng_n1_4;
extern XPLMDataRef ufmc_eng_x_1;
extern XPLMDataRef ufmc_eng_x_2;
extern XPLMDataRef ufmc_eng_x_3;
extern XPLMDataRef ufmc_eng_x_4;
extern XPLMDataRef ufmc_eng_z_1;
extern XPLMDataRef ufmc_eng_z_2;
extern XPLMDataRef ufmc_eng_z_3;
extern XPLMDataRef ufmc_eng_z_4;
extern XPLMDataRef ufmc_eng_rev_1;
extern XPLMDataRef ufmc_eng_rev_2;
extern XPLMDataRef ufmc_eng_rev_3;
extern XPLMDataRef ufmc_eng_rev_4;
extern XPLMDataRef ufmc_accel_altitude;
extern XPLMDataRef ufmc_dist_to_tc;
extern XPLMDataRef ufmc_dist_to_td;
extern XPLMDataRef ufmc_flight_phase;
extern XPLMDataRef ufmc_offset_on;
extern XPLMDataRef ufmc_thr_red_altitude;
extern XPLMDataRef ufmc_vdev;
extern XPLMDataRef ufmc_zfw;
extern XPLMDataRef ufmc_zfw_4500;
// Flight Plan
extern XPLMDataRef ufmc_waypt_altitude;
extern XPLMDataRef ufmc_waypt_dme_arc;
extern XPLMDataRef ufmc_waypt_dme_arc_dme;
extern XPLMDataRef ufmc_waypt_dme_arc_side;
extern XPLMDataRef ufmc_waypt_eta;
extern XPLMDataRef ufmc_waypt_fly_over;
extern XPLMDataRef ufmc_waypt_index;
extern XPLMDataRef ufmc_waypt_lat;
extern XPLMDataRef ufmc_waypt_lon;
extern XPLMDataRef ufmc_waypt_name;
extern XPLMDataRef ufmc_waypt_number;
extern XPLMDataRef ufmc_waypt_only_draw;
extern XPLMDataRef ufmc_waypt_pln_index;
extern XPLMDataRef ufmc_waypt_sid_star_app;
extern XPLMDataRef ufmc_waypt_speed;
extern XPLMDataRef ufmc_waypt_speed_tas;
extern XPLMDataRef ufmc_waypt_toc_tod;
extern XPLMDataRef ufmc_waypt_type_altitude;
extern XPLMDataRef ufmc_version;
// CDU Screen
extern XPLMDataRef ufmc_exec_light_on;
extern XPLMDataRef ufmc_line[NUM_UFMC_LINES];
extern int ufmc_ready;
// UFMC CDU KEYS
#define UFMC_KEY_CDU_LSK1L 0
#define UFMC_KEY_CDU_LSK2L 1
#define UFMC_KEY_CDU_LSK3L 2
#define UFMC_KEY_CDU_LSK4L 3
#define UFMC_KEY_CDU_LSK5L 4
#define UFMC_KEY_CDU_LSK6L 5
#define UFMC_KEY_CDU_LSK1R 6
#define UFMC_KEY_CDU_LSK2R 7
#define UFMC_KEY_CDU_LSK3R 8
#define UFMC_KEY_CDU_LSK4R 9
#define UFMC_KEY_CDU_LSK5R 10
#define UFMC_KEY_CDU_LSK6R 11
#define UFMC_KEY_CDU_INIT 12
#define UFMC_KEY_CDU_RTE 13
#define UFMC_KEY_CDU_DEP_ARR 14
#define UFMC_KEY_CDU_AP 15
#define UFMC_KEY_CDU_VNAV 16
#define UFMC_KEY_CDU_FIX 17
#define UFMC_KEY_CDU_LEGS 18
#define UFMC_KEY_CDU_HOLD 19
#define UFMC_KEY_CDU_PERF 20
#define UFMC_KEY_CDU_PROG 21
#define UFMC_KEY_CDU_EXEC 22
#define UFMC_KEY_CDU_MENU 23
#define UFMC_KEY_CDU_RAD_NAV 24
#define UFMC_KEY_CDU_SLEW_LEFT 25
#define UFMC_KEY_CDU_SLEW_RIGHT 26
#define UFMC_KEY_CDU_A 27
#define UFMC_KEY_CDU_B 28
#define UFMC_KEY_CDU_C 29
#define UFMC_KEY_CDU_D 30
#define UFMC_KEY_CDU_E 31
#define UFMC_KEY_CDU_F 32
#define UFMC_KEY_CDU_G 33
#define UFMC_KEY_CDU_H 34
#define UFMC_KEY_CDU_I 35
#define UFMC_KEY_CDU_J 36
#define UFMC_KEY_CDU_K 37
#define UFMC_KEY_CDU_L 38
#define UFMC_KEY_CDU_M 39
#define UFMC_KEY_CDU_N 40
#define UFMC_KEY_CDU_O 41
#define UFMC_KEY_CDU_P 42
#define UFMC_KEY_CDU_Q 43
#define UFMC_KEY_CDU_R 44
#define UFMC_KEY_CDU_S 45
#define UFMC_KEY_CDU_T 46
#define UFMC_KEY_CDU_U 47
#define UFMC_KEY_CDU_V 48
#define UFMC_KEY_CDU_W 49
#define UFMC_KEY_CDU_X 50
#define UFMC_KEY_CDU_Y 51
#define UFMC_KEY_CDU_Z 52
#define UFMC_KEY_CDU_DEL 54
#define UFMC_KEY_CDU_SLASH 55
#define UFMC_KEY_CDU_0 56
#define UFMC_KEY_CDU_1 57
#define UFMC_KEY_CDU_2 58
#define UFMC_KEY_CDU_3 59
#define UFMC_KEY_CDU_4 60
#define UFMC_KEY_CDU_5 61
#define UFMC_KEY_CDU_6 62
#define UFMC_KEY_CDU_7 63
#define UFMC_KEY_CDU_8 64
#define UFMC_KEY_CDU_9 65
#define UFMC_KEY_CDU_DOT 66
#define UFMC_KEY_CDU_CLR 67
#define UFMC_KEY_CDU_PLUS_M 68
#define UFMC_KEY_CDU_SPACE 69
#define UFMC_KEY_CDU_OVERFL 70
// Unused
#define UFMC_KEY_CDU_DATA 71
#define UFMC_KEY_CDU_FPLN 72
#define UFMC_KEY_CDU_DIR_TO 73
#define UFMC_KEY_CDU_AIRPORT 74
#define UFMC_KEY_CDU_SLEW_UP 75
#define UFMC_KEY_CDU_SLEW_DOWN 76
#define UFMC_KEY_CDU_BRT 77
// END
#define UFMC_KEY_MAX 78
// CDU Keys
extern XPLMDataRef ufmc_keys[UFMC_KEY_MAX];
// global functions
float checkUFMCCallback(float, float, int, void *);
void writeUFmcDataRef(int, float);
#endif /* DATAREFS_UFMC_H_ */
|
9f11f385dc3b17dbffde939ef7abd222418ef78b
|
3995c3091df757ebe6c26304682f421bf0b5e49c
|
/src/dpl_help.h
|
b42eaddb481119fa5a0babc20957000a2b2ad3d4
|
[] |
no_license
|
bitboulder/slideshowgl
|
1e79b1a2b6e3f00b68a07857b6fee8dd9f1f4a92
|
faf7db98dec0f9425e32534d83a0eb93f7185dab
|
refs/heads/master
| 2021-01-21T05:01:31.762670 | 2018-05-31T06:38:24 | 2018-05-31T06:38:24 | 22,426,800 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 8,173 |
h
|
dpl_help.h
|
#if defined IF_DIRED
const char *dlphelp_dired =
#elif defined IF_PRGED
const char *dlphelp_prged =
#elif defined IF_MAPED
const char *dlphelp_maped =
#elif defined IF_MAP
const char *dlphelp_map =
#elif defined IF_WRM
const char *dlphelp_wrm =
#else
const char *dlphelp_def =
#endif
__("Mouse interface")"\0" "\0"
#ifdef IF_PRGED
__(" Left drag")"\0" __("Move image")"\0"
__(" Left click")"\0" __("Forward")"\0"
__(" Middle click")"\0" __("Toggle mark")"\0"
__(" Right click")"\0" __("Backward")"\0"
__(" Scroll")"\0" __("Resize image")"\0"
#elif defined IF_MAP || defined IF_MAPED
__(" Left drag")"\0" __("Move map")"\0"
__(" Left click")"\0" __("Center to position")"\0"
__(" Double click on marker")"\0" __("Open marker images")"\0"
__(" Hold on marker")"\0" __("Show folders in marker")"\0"
__(" Scroll")"\0" __("Zoom in/out")"\0"
#ifdef IF_MAPED
__(" Right drag")"\0" __("Move marker")"\0"
__(" Right click")"\0" __("Set new marker")"\0"
#else
__(" Middle click")"\0" __("Paste position from clipboard")"\0"
__(" Right click")"\0" __("Copy position to clipboard")"\0"
#endif
#else
__(" Left drag")"\0" __("Move")"\0"
__(" Left click")"\0" __("Goto image / Forward")"\0"
__(" Double click on directory")"\0" __("Enter directory")"\0"
__(" Double click on movie")"\0" __("Play movie")"\0"
__(" Double click on space")"\0" __("Leave directory")"\0"
#if defined IF_WRM || defined IF_DIRED
__(" Middle click")"\0" __("Play/Stop / Toggle mark")"\0"
#else
__(" Middle click")"\0" __("Play/Stop")"\0"
#endif
__(" Right click")"\0" __("Backward")"\0"
__(" Scroll")"\0" __("Zoom in/out")"\0"
#endif
" ""\0" "\0"
__("Keyboard interface")"\0" "\0"
#ifdef IF_DIRED
__(" Directory Editor")"\0" "\0"
__(" m/M")"\0" __("Move images from/up to current one to other or new directory")"\0"
__(" j")"\0" __("Move all images to other directory or rename directory")"\0"
#elif defined IF_PRGED
__(" Program Editor")"\0" "\0"
__(" Pageup/Pagedown")"\0" __("Resize image")"\0"
__(" +/-")"\0" __("Add/remove image")"\0"
__(" t")"\0" __("Add text")"\0"
__(" i")"\0" __("Insert frame")"\0"
__(" x")"\0" __("Delete frame")"\0"
__(" m/M")"\0" __("Swap frame with next/previous one")"\0"
__(" d")"\0" __("Duplicate frame")"\0"
__(" [0-9]+m")"\0" __("Move frame to position")"\0"
__(" [0-9]+d")"\0" __("Copy frame to position")"\0"
__(" l/L")"\0" __("Move image into foreground/background")"\0"
__(" c")"\0" __("Change color of text")"\0"
__(" C")"\0" __("Copy color of text to all text on current frame")"\0"
__(" E")"\0" __("Refresh current frame")"\0"
#endif
#if defined IF_PRGED || defined IF_DIRED
__(" w")"\0" __("Switch window")"\0"
#endif
__(" Navigation")"\0" "\0"
#if defined IF_MAP || defined IF_MAPED
__(" Right/Left")"\0" __("Move map")"\0"
__(" Up/Down")"\0" __("Move map")"\0"
__(" Pageup/Pagedown")"\0" __("Zoom in/out")"\0"
__(" Home/End")"\0" __("Goto begin/end")"\0"
__(" Back")"\0" __("Leave map")"\0"
__(" /")"\0" __("Search for marker")"\0"
__(" p")"\0" __("Paste position from clipboard")"\0"
__(" P")"\0" __("Copy position to clipboard")"\0"
__(" m")"\0" __("Switch map type")"\0"
__(" s")"\0" __("Toggle direction star display")"\0"
#else
#ifdef IF_PRGED
__(" Right/Left")"\0" __("Forward/Backward")"\0"
__(" Up/Down")"\0" __("Fast forward/backward")"\0"
__(" [0-9]+Enter")"\0" __("Goto frame with number")"\0"
#else
__(" Space")"\0" __("Stop/Play / Play Movie / Enter directory")"\0"
__(" Back")"\0" __("Leave directory / Toggle panorama mode (spherical,plain,fisheye)")"\0"
__(" Right/Left")"\0" __("Forward/Backward (Zoom: shift right/left)")"\0"
__(" Up/Down")"\0" __("Fast forward/backward (Zoom: shift up/down)")"\0"
__(" Pageup/Pagedown")"\0" __("Zoom in/out")"\0"
#endif
__(" [0-9]+Enter")"\0" __("Goto image with number")"\0"
__(" /")"\0" __("Search for image or directory")"\0"
__(" n")"\0" __("Continue search")"\0"
#endif
#if !defined IF_MAP && !defined IF_MAPED
__(" Directory options")"\0" "\0"
#ifdef IF_WRM
__(" S")"\0" __("Toggle sorting of current image list (only if no image is active)")"\0"
#elif !defined IF_PRGED
__(" S")"\0" __("Toggle sorting of current image list")"\0"
#endif
__(" l")"\0" __("Toggle loop of image lists")"\0"
#ifdef IF_PRGED
__(" e")"\0" __("Leave program editor")"\0"
#elif defined IF_DIRED
__(" e")"\0" __("Leave directory editor")"\0"
#else
__(" e")"\0" __("Open directory or program editor (only in real directories)")"\0"
#ifdef IF_WRM
__(" m")"\0" __("Open map (only if no image is active)")"\0"
#else
__(" m")"\0" __("Open map")"\0"
#endif
#endif
#endif
__(" Image modification")"\0" "\0"
#if defined IF_WRM || defined IF_MAPED
__(" w")"\0" __("Disable writing mode")"\0"
#elif !defined IF_PRGED && !defined IF_DIRED
__(" w")"\0" __("Enable writing mode")"\0"
#endif
#ifdef IF_MAPED
__(" e")"\0" __("Switch mode for new markers (add/replace)")"\0"
#endif
#if defined IF_MAP || defined IF_MAPED
__(" d")"\0" __("Switch display mode for markers")"\0"
__(" H")"\0" __("Toggle elevation display")"\0"
#else
#if defined IF_WRM || defined IF_DIRED || defined IF_PRGED
__(" r/R")"\0" __("Rotate image")"\0"
#else
__(" r/R")"\0" __("Rotate image (only in writing mode permanent)")"\0"
#endif
#ifndef IF_PRGED
__(" g/b/c")"\0" __("+/- mode: gamma/brightness/contrase (only with opengl shader support)")"\0"
__(" +/-")"\0" __("Increase/decrease selected")"\0"
#endif
#if defined IF_WRM || defined IF_DIRED || defined IF_PRGED
__(" Del")"\0" __("Move image to del/ and remove from dpl-list")"\0"
__(" o")"\0" __("Move image to ori/ and remove from dpl-list")"\0"
#endif
#ifdef IF_WRM
__(" m")"\0" __("Toggle mark")"\0"
__(" M")"\0" __("Switch mark file")"\0"
#elif !defined IF_DIRED && !defined IF_PRGED
__(" m")"\0" __("Show map")"\0"
#endif
#if defined IF_WRM || defined IF_DIRED
__(" s")"\0" __("Enter and toggle image catalog")"\0"
__(" S")"\0" __("Copy catalogs from last marked image (only if an image is active)")"\0"
#endif
__(" G")"\0" __("Edit current image with gimp")"\0"
__(" U")"\0" __("Edit raw image with ufraw")"\0"
#ifndef IF_PRGED
__(" C")"\0" __("Open current image/directory for file-convert-utility")"\0"
#endif
#ifndef IF_PRGED
__(" Image information")"\0" "\0"
__(" i/I")"\0" __("Show selected/full image info")"\0"
__(" H")"\0" __("Show histograms")"\0"
__(" k")"\0" __("Show image catalog")"\0"
#endif
#endif
__(" Program interface")"\0" "\0"
__(" h")"\0" __("Show help")"\0"
__(" q/Esc")"\0" __("Quit")"\0"
__(" f")"\0" __("Toggle fullscreen")"\0"
#ifndef IF_PRGED
__(" [0-9]+d")"\0" __("Displayduration [s/ms]")"\0"
#endif
#if !defined IF_PRGED && !defined IF_DIRED && !defined IF_MAP && !defined IF_MAPED
__(" p")"\0" __("Toggle panorama fisheye mode (isogonic,equidistant,equal-area)")"\0"
#endif
"\0"
;
|
078ea68ab986846f68d36b36fb21a741c5cb9786
|
decfaed8537de9dfed774a8cac966005f0f6b580
|
/src/gap4/readpair.c
|
3043dc3eb8539e27bd228b75fa9044de3adb781d
|
[
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-newlib-historical",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
svn2github/staden-master
|
38045554b935c3e77c9da79bd81fcf36c7f29f2a
|
52652d5db8101d50f531baafa672e840866b998c
|
refs/heads/master
| 2020-04-06T10:36:49.982065 | 2015-01-14T16:31:34 | 2015-01-14T16:31:34 | 13,944,967 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 18,405 |
c
|
readpair.c
|
/*
* File: readpair.c:
* Version: 2.0 (1.0 == FORTRAN version)
*
* Author: Staden Package group
* MRC Laboratory of Molecular Biology
* Hills Road
* Cambridge CB2 2QH
* United Kingdom
*
* Description: "Find read pair" code.
*
* Created: 17 March 1994
* Updated:
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "gap-dbstruct.h"
#include "IO1.h"
#include "fortran.h"
#include "xalloc.h"
#include "io-reg.h"
#include "cs-object.h"
#include "contig_selector.h"
#include "newgap_cmds.h"
#include "contigEditor.h"
#include "gap_globals.h"
#include "misc.h"
#include "template.h"
#include "text_output.h"
#include "tclXkeylist.h"
#include "complement.h"
#include "tcl_utils.h"
#include "readpair.h"
/*
* Match callback.
* 'obj' is a match contained within the 'repeat' list.
*/
void *readpair_obj_func(int job, void *jdata, obj_read_pair *obj,
mobj_template *template) {
static char buf[80];
char cmd[1024];
f_int *handle;
obj_cs *cs;
int cs_id;
cs_id = type_to_result(template->io, REG_TYPE_CONTIGSEL, 0);
cs = result_data(template->io, cs_id, 0);
switch(job) {
case OBJ_LIST_OPERATIONS:
if (io_rdonly(template->io) && ((obj->c1 > 0 && obj->c2 < 0) ||
(obj->c1 < 0 && obj->c2 > 0))) {
return "Information\0Hide\0IGNORE\0"
"IGNORE\0SEPARATOR\0Remove\0";
} else {
return "Information\0Hide\0Invoke template display *\0"
"Invoke join editor\0SEPARATOR\0Remove\0";
}
break;
case OBJ_INVOKE_OPERATION:
switch(*((int *)jdata)) {
case 0: /* Information */
vfuncgroup(1, "2D plot matches");
case -1: /* Information from results manager */
start_message();
vmessage("Read pair:\n");
vmessage(" From contig %s(#%d) at %d reading %s(#%d)\n",
get_contig_name(template->io, ABS(obj->c1)),
io_clnbr(template->io, ABS(obj->c1)), obj->pos1,
get_read_name(template->io, obj->read1), obj->read1);
vmessage(" With contig %s(#%d) at %d reading %s(#%d)\n",
get_contig_name(template->io, ABS(obj->c2)),
io_clnbr(template->io, ABS(obj->c2)), obj->pos2,
get_read_name(template->io, obj->read2), obj->read2);
{
GReadings r1, r2;
gel_read(template->io, obj->read1, r1);
gel_read(template->io, obj->read2, r2);
vmessage(" Direction of first read is %swards\n",
STRAND(r1) == GAP_STRAND_FORWARD ? "for" : "back");
vmessage(" Direction of second read is %swards\n",
STRAND(r2) == GAP_STRAND_FORWARD ? "for" : "back");
}
vmessage(" Length %d\n\n", obj->length);
end_message(cs->window);
break;
case 1: /* Hide */
obj_hide(GetInterp(), cs->window, (obj_match *)obj,
(mobj_repeat *)template, csplot_hash);
break;
case -2: /* default */
case 2: /* Invoke template display */
{
int cnum[2];
char c_list[1024];
char r_list[1024];
char c1_name[100];
char c2_name[100];
GReadings r1, r2;
obj->flags |= OBJ_FLAG_VISITED;
template->current = obj - (obj_read_pair *)template->match;
Tcl_VarEval(GetInterp(), "CSLastUsed ", CPtr2Tcl(template),
NULL);
cnum[0] = ABS(obj->c1);
cnum[1] = ABS(obj->c2);
/* Complement a contig if needed */
/* if it fails to complement the first contig for any reason,
* eg the contig editor is up, then it tries to complement
* the second
*/
if ((obj->c1 > 0) != (obj->c2 > 0)) {
if (io_rdonly(template->io)) {
bell();
break;
}
if (io_clength(template->io, ABS(obj->c1)) <
io_clength(template->io, ABS(obj->c2))) {
if (-1 == complement_contig(template->io,
ABS(obj->c1)))
if (-1 == complement_contig(template->io,
ABS(obj->c2)))
return NULL;
} else {
if (-1 == complement_contig(template->io,
ABS(obj->c2)))
if (-1 == complement_contig(template->io,
ABS(obj->c1)))
return NULL;
}
}
/* FIXME ??? */
if ((handle = handle_io(template->io)) == NULL) {
verror(ERR_FATAL, "readpairs", "invalid io handle");
}
gel_read(template->io, obj->read1, r1);
gel_read(template->io, obj->read2, r2);
/*
* determine the sense of each reading to find the correct
* orientation to plot the contigs in the template display.
* The reading to the left should have sense = 0; the reading
* to the right should have sense = 1
*/
if (r1.sense) {
strcpy(c2_name, get_contig_name(template->io,
ABS(obj->c1)));
strcpy(c1_name, get_contig_name(template->io,
ABS(obj->c2)));
} else {
strcpy(c1_name, get_contig_name(template->io,
ABS(obj->c1)));
strcpy(c2_name, get_contig_name(template->io,
ABS(obj->c2)));
}
sprintf(c_list, "%s %s", c1_name, c2_name);
sprintf(r_list, "%d %d", obj->read1, obj->read2);
sprintf(cmd, "CreateTemplateDisplay %d {%s}",
*handle, c_list);
if (TCL_ERROR == Tcl_Eval(GetInterp(), cmd))
printf("%s\n", GetInterpResult());
}
break;
case 3: /* Join editor */
{
int cnum[2], llino[2], pos[2];
GReadings r1, r2;
int pt1, pt2;
cnum[0] = ABS(obj->c1);
cnum[1] = ABS(obj->c2);
/* Complement a contig if needed */
if ((obj->c1 > 0) != (obj->c2 > 0)) {
if (cnum[0] == cnum[1]) {
verror(ERR_WARN, "join_editor",
"cannot display the same contig in two "
"different orientations");
break;
}
if (-1 == complement_contig(template->io, cnum[0]))
if (-1 == complement_contig(template->io, cnum[1]))
return NULL;
}
/* Get strand information */
gel_read(template->io, obj->read1, r1);
gel_read(template->io, obj->read2, r2);
pt1 = STRAND(r1);
pt2 = STRAND(r2);
llino[0] = obj->read1;
llino[1] = obj->read2;
if (r1.sense == 0) {
pos[0] = (pt1 == pt2) ? 1 : r1.sequence_length;
pos[1] = 1;
} else {
pos[0] = (pt1 == pt2) ? r1.sequence_length : 1;
pos[1] = r2.sequence_length;
}
join_contig(GetInterp(), template->io, cnum, llino, pos,
consensus_cutoff, quality_cutoff);
break;
}
case 4: /* Remove */
obj_remove(GetInterp(), cs->window, (obj_match *)obj,
(mobj_repeat *)template, csplot_hash);
break;
}
break;
case OBJ_GET_BRIEF:
sprintf(buf, "Read pair: %c#%d@%d with %c#%d@%d, len %d",
obj->c1 > 0 ? '+' : '-', obj->read1, obj->pos1,
obj->c2 > 0 ? '+' : '-', obj->read2, obj->pos2,
obj->length);
return buf;
}
return NULL;
}
void readpair_callback(GapIO *io, int contig, void *fdata, reg_data *jdata) {
mobj_template *r = (mobj_template *)fdata;
obj_cs *cs;
int cs_id;
cs_id = type_to_result(io, REG_TYPE_CONTIGSEL, 0);
cs = result_data(io, cs_id, 0);
switch (jdata->job) {
case REG_QUERY_NAME:
sprintf(jdata->name.line, "Find read pairs");
break;
case REG_JOIN_TO:
csmatch_join_to(io, contig, &jdata->join, (mobj_repeat *)r,
csplot_hash, cs->window);
break;
case REG_COMPLEMENT:
csmatch_complement(io, contig, r, csplot_hash, cs->window);
break;
case REG_GET_OPS:
if (r->all_hidden)
jdata->get_ops.ops = "PLACEHOLDER\0PLACEHOLDER\0Information\0"
"PLACEHOLDER\0Hide all\0Reveal all\0SEPARATOR\0Remove\0";
else
jdata->get_ops.ops = "Use for 'Next'\0Reset 'Next'\0Information\0"
"Configure\0Hide all\0Reveal all\0SEPARATOR\0Remove\0";
break;
case REG_INVOKE_OP:
switch (jdata->invoke_op.op) {
case 0: /* Next */
Tcl_VarEval(GetInterp(), "CSLastUsed ", CPtr2Tcl(r), NULL);
break;
case 1: /* Reset Next */
csmatch_reset_next((mobj_repeat *)r);
break;
case 2: /* Information */
csmatch_info((mobj_repeat *)r, "Read pair");
break;
case 3: /* Configure */
csmatch_configure(io, cs->window, (mobj_repeat *)r);
break;
case 4: /* Hide all */
csmatch_hide(GetInterp(), cs->window, (mobj_repeat *)r,
csplot_hash);
break;
case 5: /* Reveal all */
csmatch_reveal(GetInterp(), cs->window, (mobj_repeat *)r,
csplot_hash);
break;
case 6: /* Remove */
csmatch_remove(io, cs->window,
(mobj_repeat *)r,
csplot_hash);
break;
}
break;
case REG_PARAMS:
jdata->params.string = r->params;
break;
case REG_NUMBER_CHANGE:
csmatch_renumber(io, contig, jdata->number.number,
(mobj_repeat *)r, csplot_hash, cs->window);
break;
case REG_ORDER:
csmatch_replot(io, (mobj_repeat *)r, csplot_hash, cs->window);
break;
case REG_QUIT:
csmatch_remove(io, cs->window,
(mobj_repeat *)r,
csplot_hash);
break;
case REG_DELETE:
csmatch_contig_delete(io, (mobj_repeat *)r, contig,
cs->window, csplot_hash);
break;
case REG_LENGTH:
csmatch_replot(io, (mobj_repeat *)r, csplot_hash, cs->window);
break;
}
}
/*
* Plot the templates which span more than one contig on contig selector plot.
* The direction of the line is governed by the "direction" of the template
* A line going from top right to bottom left (/) indicates the second contig
* needs completing
* A line going from top left to bottom right (\) indicates the second contig
* does not need completing
*/
int PlotTempMatches(GapIO *io, template_c **tarr) {
int i, j, k, id;
int *contig, *pos, *dir, *length, *readnum;
mobj_template *template;
obj_read_pair *matches;
int array_size = Ncontigs(io), array_inc = 10;
int count;
int n_matches = 0;
int max_matches = 64; /* dynamically grows */
gel_cont_t *gc;
item_t *item, *it;
char *val;
if (NULL == (contig = (int *)xmalloc(array_size * sizeof(int))))
return -1;
if (NULL == (pos = (int *)xmalloc(array_size * sizeof(int))))
return -1;
if (NULL == (dir = (int *)xmalloc(array_size * sizeof(int))))
return -1;
if (NULL == (length = (int *)xmalloc(array_size * sizeof(int))))
return -1;
if (NULL == (readnum = (int *)xmalloc(array_size * sizeof(int))))
return -1;
if (NULL == (template = (mobj_template *)xmalloc(sizeof(mobj_template))))
return -1;
if (NULL == (matches = (obj_read_pair *)xmalloc(max_matches *
sizeof(obj_read_pair))))
return -1;
for (i = 1; i <= Ntemplates(io); i++) {
if (tarr[i]) {
count = 0;
for (item = head(tarr[i]->gel_cont); item; item = item->next) {
int contig_tmp, strand;
GReadings r;
gc = (gel_cont_t *)(item->data);
if (gc->contig < 0)
continue;
gel_read(io, gc->read, r);
contig[count] = gc->contig;
readnum[count] = gc->read;
pos[count] = r.position;
strand = (PRIMER_TYPE_GUESS(r) == GAP_PRIMER_FORWARD ||
PRIMER_TYPE_GUESS(r) == GAP_PRIMER_CUSTFOR) ? 0 : 1;
dir[count] = r.sense == r.strand ? 1 : -1;
length[count] = r.sequence_length;
contig_tmp = gc->contig;
gc->contig = -gc->contig;
#ifndef SHOW_INTERNAL_RP
for (it = item->next; it; it = it->next) {
gc = (gel_cont_t *)(item->data);
if (gc->contig == contig_tmp)
gc->contig = -gc->contig;
}
#endif
/*
* check that count is less than Ncontigs
* if it is larger, then need to allocate more space to
* arrays
*/
count++;
if (count >= array_size) {
/* set array_size to be count plus arbitary increment */
array_size = count + array_inc;
if (NULL == (contig = (int *)realloc(contig, array_size *
sizeof(int))))
return -1;
if (NULL == (pos = (int *)realloc(pos, array_size *
sizeof(int))))
return -1;
if (NULL == (dir = (int *)realloc(dir, array_size *
sizeof(int))))
return -1;
if (NULL == (length = (int *)realloc(length, array_size *
sizeof(int))))
return -1;
if (NULL == (readnum = (int *)realloc(readnum,array_size *
sizeof(int))))
return -1;
}
}
/* compare each contig with every other */
for (j = 0; j < count-1; j++) {
for (k = j + 1; k < count; k++) {
/*
* check that individual pairs of contigs are in different
* contigs
*/
#ifndef SHOW_INTERNAL_RP
if (contig[j] == contig[k]) {
continue;
}
#endif
matches[n_matches].func =
(void *(*)(int, void *, struct obj_match_t *,
struct mobj_repeat_t *))readpair_obj_func;
matches[n_matches].data = template;
matches[n_matches].c1 = dir[j] * contig[j];
matches[n_matches].c2 = dir[k] * contig[k];
matches[n_matches].pos1 = pos[j];
matches[n_matches].pos2 = pos[k];
matches[n_matches].length = (length[j] + length[k]) /2;
matches[n_matches].read1 = readnum[j];
matches[n_matches].read2 = readnum[k];
matches[n_matches].flags = 0;
if (++n_matches >= max_matches) {
obj_read_pair *tmp;
max_matches *= 2;
tmp = (obj_read_pair *)
xrealloc(matches,
max_matches * sizeof(obj_read_pair));
if (NULL == tmp) {
xfree(contig);
xfree(pos);
xfree(dir);
xfree(length);
xfree(readnum);
xfree(template);
xfree(matches);
return -1;
} else {
matches = tmp;
}
}
}
}
}
}
/*
* Free memory and return if we've got no matches.
*/
if (0 == n_matches) {
xfree(contig);
xfree(pos);
xfree(dir);
xfree(length);
xfree(readnum);
xfree(template);
xfree(matches);
return 0;
}
template->num_match = n_matches;
template->match = (obj_match *)matches;
template->io = io;
strcpy(template->tagname, CPtr2Tcl(template));
val = get_default_string(GetInterp(), gap_defs, "READPAIR.COLOUR");
strcpy(template->colour, val);
template->linewidth = get_default_int(GetInterp(), gap_defs,
"READPAIR.LINEWIDTH");
template->params = (char *)xmalloc(10);
if (template->params)
sprintf(template->params, "none");
template->all_hidden = 0;
template->current = -1;
template->reg_func = readpair_callback;
template->match_type = REG_TYPE_READPAIR;
PlotRepeats(io, template);
Tcl_VarEval(GetInterp(), "CSLastUsed ", CPtr2Tcl(template), NULL);
xfree(contig);
xfree(pos);
xfree(dir);
xfree(length);
xfree(readnum);
/*
* Register the repeat search with each of the contigs used.
* Currently we assume that this is all.
*/
id = register_id();
for (i = 1; i <= NumContigs(io); i++) {
contig_register(io, i, readpair_callback, (void *)template, id,
REG_REQUIRED | REG_DATA_CHANGE | REG_OPS |
REG_NUMBER_CHANGE | REG_ORDER, REG_TYPE_READPAIR);
}
return(0);
}
static void do_report(GapIO *io, template_c **tarr, int *order) {
int i, listed_problems = 0;
char name[DB_NAMELEN + 1];
GTemplates t;
GReadings r;
item_t *item;
char *mode;
int length = 0; /* init to avoid compiler warnings */
for (i = 0; order[i]; i++) {
template_c *tc = tarr[order[i]];
template_read(io, tc->num, t);
TextRead(io, t.name, name, sizeof(name)-1);
if (tc->consistency && !listed_problems){
vmessage("*** Possibly problematic templates listed below ***\n");
listed_problems = 1;
}
/*
* Special case: when we are spanning contigs, and we have a
* forward read in one and a reverse read in the other, then we
* computed the possible distance based upon the distance to the
* end of each contig.
*/
mode = NULL;
if (tc->flags & TEMP_FLAG_SPANNING) {
int c1 = 0, distf = 0, distr = 0;
GReadings r;
for (item = head(tc->gel_cont); item; item = item->next) {
gel_cont_t *gc = (gel_cont_t *)item->data;
if (!c1)
c1 = gc->contig;
else if (gc->contig == c1)
continue;
gel_read(io, gc->read, r);
switch(PRIMER_TYPE(r)) {
case GAP_PRIMER_UNKNOWN:
continue;
case GAP_PRIMER_FORWARD:
case GAP_PRIMER_CUSTFOR:
distf = r.sense
? r.position + r.sequence_length - 1
: io_clength(io, gc->contig) - r.position + 1;
break;
case GAP_PRIMER_REVERSE:
case GAP_PRIMER_CUSTREV:
distr = r.sense
? r.position + r.sequence_length - 1
: io_clength(io, gc->contig) - r.position + 1;
}
}
if (distf && distr) {
mode = "computed";
length = distf + distr;
if (length < t.insert_length_min ||
length > t.insert_length_max) {
tc->consistency |= TEMP_CONSIST_DIST;
}
}
}
if (mode == NULL) {
mode = (tc->flags & TEMP_FLAG_EXPECTED) ? "expected" : "observed";
length = tc->direction ? tc->start - tc->end : tc->end - tc->start;
}
/* Template line */
vmessage("Template %12s(%4d), length %d-%d(%s %d) score %f\n",
name, tc->num, t.insert_length_min, t.insert_length_max,
mode, length, tc->score);
/* Reading lines */
for (item = head(tc->gel_cont); item; item = item->next) {
gel_cont_t *gc = (gel_cont_t *)item->data;
gel_read(io, gc->read, r);
strcpy(name, io_rname(io, gc->read));
vmessage("%c%c%c%c Reading %*s(%+5d%c), pos %6d%+5d, contig %4d\n",
(tc->consistency & TEMP_CONSIST_UNKNOWN) ? '?' : ' ',
(tc->consistency & TEMP_CONSIST_DIST) ? 'D' : ' ',
(tc->consistency & TEMP_CONSIST_PRIMER) ? 'P' : ' ',
(tc->consistency & TEMP_CONSIST_STRAND) ? 'S' : ' ',
DB_NAMELEN, name,
gc->read * (r.sense ? -1 : 1),
"?FRfr"[PRIMER_TYPE_GUESS(r)],
r.position, r.end - r.start - 1,
chain_left(io, gc->read));
}
vmessage("\n");
}
}
/*
* External callable functions - the C interface
* ---------------------------------------------
*/
int find_read_pairs(GapIO *io, int num_contigs, int *contig_array) {
int *order;
template_c **tarr;
/* Initialise templates to all */
if (NULL == (tarr = init_template_checks(io, num_contigs, contig_array,0)))
return -1;
/*
* Strip down to only those with multiple readings. Then sort on
* problem and report.
*/
remove_single_templates(io, tarr);
check_all_templates(io, tarr);
if (NULL == (order = sort_templates(io, tarr))) {
uninit_template_checks(io, tarr);
return -1;
}
do_report(io, tarr, order);
/* Find only those templates spanning multiple contigs and plot them. */
#ifndef SHOW_INTERNAL_RP
contig_spanning_templates(io, tarr);
#endif
PlotTempMatches(io, tarr);
/* Tidy up */
uninit_template_checks(io, tarr);
xfree(order);
return 0;
}
|
31d5111bbd3310cd46200636fbc5c7f863d9b091
|
00a3651a331526bbcaf1cdd2810fbb5915595860
|
/examples/somegmp/test.c
|
9cafa65144e64a15daab0bce7bf70e5749a2729c
|
[] |
no_license
|
pombreda/anacrolix
|
21deb91d5288cefd0fdf5c0199f5f79522a682c0
|
e41b93b1b3e2accd540ebdf5d126e7d0fbf7af77
|
refs/heads/master
| 2021-01-10T19:58:36.864315 | 2014-11-19T04:12:47 | 2014-11-19T04:12:47 | 32,209,683 | 0 | 2 | null | null | null | null |
UTF-8
|
C
| false | false | 390 |
c
|
test.c
|
#include <gmp.h>
#include "../eruutil/erudebug.h"
int main()
{
dump(__GNU_MP_VERSION, "%d");
dump(__GNU_MP_VERSION_MINOR, "%d");
dump(__GNU_MP_VERSION_PATCHLEVEL, "%d");
dump(mp_bits_per_limb, "%d");
dump(gmp_version, "%s");
mpz_t a; //mpq_t mpf_t
mpz_init(a);
mpz_set_ui(a, 0);
mpz_add_ui(a, a, 17);
char *str = mpz_get_str(NULL, 10, a);
puts(str);
mpz_clear(a);
return 0;
}
|
862ef055409c54fc47c8b0c4171eb6652ef461c9
|
1f90bf31bc393da974f290ca48ca21ec5b0028c6
|
/SourceCode/bl_fp_demo_paul/jni/include/btl_templete.h
|
68433353b55694fc2aba118e25e5e1843739fa62
|
[] |
no_license
|
changliang328/learngit
|
f1da210850dd07d507d71ce8cc8055b904872140
|
306bde543ebd146714949649716fe2ab57c997c0
|
refs/heads/master
| 2020-12-02T06:29:59.770391 | 2018-02-02T02:49:53 | 2018-02-02T02:49:53 | 96,844,144 | 0 | 2 | null | null | null | null |
UTF-8
|
C
| false | false | 1,391 |
h
|
btl_templete.h
|
#ifndef _BL_TEMPLETE_H_
#define _BL_TEMPLETE_H_
#include "btl_algo.h"
#define FINGER_DEBUG 1
#define MAX_FINGER_NUMS 5
char mEnrolledIndex[MAX_FINGER_NUMS];
typedef struct tag_templete_db{
//header begin
unsigned int magicnum; //0xfdfcfbfa
unsigned int fingernum;
unsigned int fingerindex ;//
unsigned int MaxtemplateSize ;//
unsigned int fingerTemplateOffset ;//10*1024
unsigned int fingerHeaderOffset; //
unsigned int fingerTypeOffset ;//20
unsigned int fingerSizeOffset ;//10
unsigned int fingerDataOffset ;//10
unsigned int fingerUnitTmoduleOffset; //
//header end
}Templete_db_t;
typedef struct tag_templete_manager{
Templete_db_t tdb ;//used for check temptlete database
int nbr_of_templetes;//enrolled templetes
PBL_TEMPLATE pCurrent_templete;
PBL_TEMPLATE *pArry_templete;
PBL_TEMPLATE *PMatch_templete;
int need_init;
int (*get_templete_by_id)(int,PBL_TEMPLATE);
int (*save_templete_by_id)(int,PBL_TEMPLATE);
int (*get_all_templete)(PBL_TEMPLATE *);
int (*init_templete_manager)(PBL_TEMPLATE *);
int (*get_enrolled_fingerNum)(int *);
int (*get_enroll_fingerid)();
int (*create_databasefile)();
int (*delete_fingerprint_by_id)(int);
}Templete_manager_t,*pTemplete_manager_t;
int btl_tmanager_init_templete_manager();
pTemplete_manager_t btl_get_templete_manager();
#include "btlfp.h"
#endif
|
7f198e3d566c45264fb3a729365f545af160b4f3
|
4ebe41fa937237e73681d52e66e76b460332fa4e
|
/lib/validator.c
|
ff2627380531806db445c1371475acc8a9932cca
|
[] |
no_license
|
CompilerLuke/TopCCompilerBootstrap
|
cc6449c3417e6ddb84be871d9576d761f8b13967
|
f8449297528ec51d1ebb7174a9f18b7b3bc3df5e
|
refs/heads/master
| 2020-04-21T20:27:31.700844 | 2019-06-14T16:45:34 | 2019-06-14T16:45:34 | 169,844,649 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 9,042 |
c
|
validator.c
|
struct ast_AST** _global_StaticArray_op_get_StaticArray_S_rast_AST(struct _global_StaticArray_StaticArray_S_rast_AST* _global_self, unsigned int _global_index, struct _global_Context* l);
struct _global_StaticArray_1_types_CompilerType* _global_box__1_types_CompilerType(struct _global_StaticArray_1_types_CompilerType _global_value, struct _global_Context* l);
struct error_CompilerError* validator_State_validate(struct validator_State* validator_state, struct ast_AST* validator_syntax_tree, struct _global_Context* l){;
;
;struct ast_Payload m =(validator_syntax_tree)->payload;
if(m.tag==4){struct ast_OperatorKind validator_kind = m.cases.Operator.field0;
return operatorValidation_validate(validator_state,validator_kind,validator_syntax_tree,l);}else if(m.tag==5){struct ast_ReadInfo* validator_read_info = m.cases.Identifier.field0;
return varValidation_validate_read(validator_state,validator_read_info,validator_syntax_tree,l);}else if(m.tag==7){return varValidation_validate_create_assign(validator_state,validator_syntax_tree,l);}else if(m.tag==10){return ifValidation_validate_if(validator_state,validator_syntax_tree,l);}else if(m.tag==12){return ifValidation_validate_condition(validator_state,validator_syntax_tree,l);}else if(m.tag==15){struct ast_FuncInfo* validator_info = m.cases.FuncDef.field0;
return funcValidator_validate(validator_state,validator_syntax_tree,validator_info,l);}else if(m.tag==6){return funcValidator_validate_call(validator_state,validator_syntax_tree,l);}else if(m.tag==16){return tupleValidator_validate_tuple(validator_state,validator_syntax_tree,l);}else if(1){return validator_State_validate_nodes(validator_state,_global_StaticArray_StaticArray_S_rast_ASTInit((validator_syntax_tree)->nodes.data, (validator_syntax_tree)->nodes.length),l);};
;}
struct error_CompilerError* validator_State_validate_nodes(struct validator_State* validator_self, struct _global_StaticArray_StaticArray_S_rast_AST validator_nodes, struct _global_Context* l){;
;
struct _global_StaticArray_StaticArray_S_rast_AST m =validator_nodes;
for (unsigned int n = 0;n < m.length; n++) {
struct ast_AST* validator_node;validator_node = *_global_StaticArray_op_get_StaticArray_S_rast_AST(&m, n, l);
;unsigned int validator_i;validator_i = n;
struct error_CompilerError* p =validator_State_validate(validator_self,validator_node,l);if(p != NULL){struct error_CompilerError* validator__x = p;
return validator__x;
;
;}
else if(1){
;}
;
}
;
;return NULL;
;}
struct _global_StaticArray_StaticArray_S_types_CompilerType tmpvalidatorH(struct _global_StaticArray_1_types_CompilerType* m) {
return _global_StaticArray_StaticArray_S_types_CompilerTypeInit(m->data, 1);};
struct error_CompilerError* validator_register_log_func(struct validator_State* validator_state, struct _global_String validator_name, struct types_CompilerType validator_typ, struct ast_AST* validator_syntax_tree, struct _global_Context* l){;
;
;
;
struct types_FuncPtr* validator_log_func_type;validator_log_func_type = types_make_FuncPtr(l);;
(validator_log_func_type)->args = tmpvalidatorH(_global_box__1_types_CompilerType(_global_StaticArray_1_types_CompilerTypeInit(validator_typ),l));;
(validator_log_func_type)->external = 1;;
struct scope_DeclInfo validator_decl_info;validator_decl_info = scope_make_DeclInfo(types_Func(validator_log_func_type,l),l);;
;return scope_Scope_create_decl((validator_state)->scope,validator_name,&(validator_decl_info),validator_syntax_tree,l);
;}
struct error_CompilerError* validator_validate(struct ast_AST* validator_syntax_tree, struct _global_Context* l){;
struct validator_State validator_state;validator_state = validator_StateInit(scope_make_Scope(l));;
struct error_CompilerError* m =validator_register_log_func(&(validator_state),_global_StringInit(9,"log_float"),types_make_Float(l),validator_syntax_tree,l);if(m != NULL){struct error_CompilerError* validator__x = m;
return validator__x;
;
;}
else if(1){
;}
;
struct error_CompilerError* n =validator_register_log_func(&(validator_state),_global_StringInit(7,"log_int"),types_make_Int(l),validator_syntax_tree,l);if(n != NULL){struct error_CompilerError* validator__x = n;
return validator__x;
;
;}
else if(1){
;}
;
struct error_CompilerError* p =validator_register_log_func(&(validator_state),_global_StringInit(3,"log"),types_String,validator_syntax_tree,l);if(p != NULL){struct error_CompilerError* validator__x = p;
return validator__x;
;
;}
else if(1){
;}
;
struct error_CompilerError* q =validator_State_create_decl(&(validator_state),validator_syntax_tree,l);if(q != NULL){struct error_CompilerError* validator__x = q;
return validator__x;
;
;}
else if(1){
;}
;
struct error_CompilerError* r =validator_State_validate(&(validator_state),validator_syntax_tree,l);if(r != NULL){struct error_CompilerError* validator__x = r;
return validator__x;
;
;}
else if(1){
;}
;
struct error_CompilerError* s =validator_check_useless(validator_syntax_tree,l);if(s != NULL){struct error_CompilerError* validator__x = s;
return validator__x;
;
;}
else if(1){
;}
;
;return validator_check_other(validator_syntax_tree,l);
;}
struct error_CompilerError* validator_useless(struct ast_AST* validator_i, struct _global_String validator_mesg, struct _global_Context* l){;
;
;return error_make_Error_rast_AST(validator_i,_global_String_op_addByValue(_global_String_op_addByValue(_global_StringInit(8,"Useless "),(validator_mesg),l),_global_StringInit(0,""),l),l);
;}
struct error_CompilerError* validator_check_useless(struct ast_AST* validator_i, struct _global_Context* l){;
;struct ast_Payload m =(validator_i)->payload;
if(m.tag==5&&1){return validator_useless(validator_i,_global_StringInit(4,"read"),l);}else if(m.tag==1){return validator_useless(validator_i,_global_StringInit(11,"int literal"),l);}else if(m.tag==2){return validator_useless(validator_i,_global_StringInit(13,"float literal"),l);}else if(m.tag==3){return validator_useless(validator_i,_global_StringInit(12,"bool literal"),l);}else if(m.tag==4){struct ast_OperatorKind validator_kind = m.cases.Operator.field0;
return validator_useless(validator_i,_global_StringInit(8,"operator"),l);}else if(m.tag==0){struct _global_Array_rast_AST n =(validator_i)->nodes;
for (unsigned int p = 0;p < n.length; p++) {
struct ast_AST* validator_node;validator_node = *_global_Array_op_get_rast_AST(&n, p, l);
;struct error_CompilerError* q =validator_check_useless(validator_node,l);if(q != NULL){struct error_CompilerError* validator__x = q;
return validator__x;
;
;}
else if(1){
;}
;
}
;
return NULL;}else if(1){return NULL;};
;}
struct error_CompilerError* validator_State_create_decl(struct validator_State* validator_self, struct ast_AST* validator_node, struct _global_Context* l){;
;
struct _global_Array_rast_AST m =(validator_node)->nodes;
for (unsigned int n = 0;n < m.length; n++) {
struct ast_AST* validator_n;validator_n = *_global_Array_op_get_rast_AST(&m, n, l);
;unsigned int validator_i;validator_i = n;
struct ast_Payload p =(validator_n)->payload;if(p.tag==15){struct ast_FuncInfo* validator_info = p.cases.FuncDef.field0;
struct error_CompilerError* q =funcValidator_add_func_to_scope(validator_self,validator_node,validator_info,l);if(q != NULL){struct error_CompilerError* validator__x = q;
return validator__x;
;
;}
else if(1){
;}
;
;}
else if(1){
;}
;
}
;
;return NULL;
;}
struct error_CompilerError* validator_check_other(struct ast_AST* validator_node, struct _global_Context* l){;
;return NULL;
;}
struct ast_AST** _global_StaticArray_op_get_StaticArray_S_rast_AST(struct _global_StaticArray_StaticArray_S_rast_AST* _global_self, unsigned int _global_index, struct _global_Context* l){;
;
_global_assert(_global_index<(_global_self)->length,_global_StringInit(13,"Out of bounds"),l);
;return ((_global_self)->data + (int64_t)_global_index);
;}
struct _global_StaticArray_1_types_CompilerType* _global_box__1_types_CompilerType(struct _global_StaticArray_1_types_CompilerType _global_value, struct _global_Context* l){;
struct _global_StaticArray_1_types_CompilerType* _global_pointer;_global_pointer = (struct _global_StaticArray_1_types_CompilerType*)(_global_Allocator_alloc((l)->allocator,(uint64_t)sizeof(struct _global_StaticArray_1_types_CompilerType),l));;
*(_global_pointer) = _global_value;;
;return _global_pointer;
;}
void validatorInitTypes() {
operatorValidationInitTypes();varValidationInitTypes();funcValidatorInitTypes();tupleValidatorInitTypes();
_global_StaticArray_1_types_CompilerTypeType.size = malloc(sizeof(struct _global_ArraySize));
_global_StaticArray_1_types_CompilerTypeType.size->tag = 0;
_global_StaticArray_1_types_CompilerTypeType.size->cases.Static.field0 = 1;
_global_StaticArray_1_types_CompilerTypeType.array_type =
_global_TypeFromStruct(
types_CompilerType_get_type(NULL,(&_global_context))
,
&rEnumType_VTABLE_FOR_Type
,
rEnumType_VTABLE_FOR_Type.type
, &_global_EnumType_toString
, &_global_EnumType_get_size
)
; }
void validatorInit() {
;
operatorValidationInit();;
varValidationInit();;
funcValidatorInit();;
tupleValidatorInit();;
;
};
|
7606eacc8f4a7d7173207f9a1c040f9705cf63e5
|
3098adc99be8ab507c23817db9ba024909b5a2c8
|
/ME910C1-ML865C1-NE910C1/AppZoneSampleApps-AUX_UART/EasyAT/azx/easy_at/azx_easy_at.h
|
4ec8f5078a5f048caa7a94be68935bfb6fc04426
|
[
"MIT"
] |
permissive
|
normanargiolas/IoT-AppZone-SampleApps
|
757300a2b6daf2125b003f366846ac340918e3c6
|
82337581de7649b1e9c94417b6a97826d332e3b6
|
refs/heads/master
| 2023-07-25T12:15:31.895352 | 2021-09-07T13:18:42 | 2021-09-07T13:18:42 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 18,840 |
h
|
azx_easy_at.h
|
/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
/* See LICENSE file in the project root for full license information. */
/**
@file
azx_easy_at.h
@brief
atp utility
@details
This header file provides ATP (EASY AT) utilities to ease custom at commands usage
@note
Dependencies:
m2mb_types.h
m2mb_atp.h
@version 1.0.1
@dependencies azx_log azx_utils
@author
Fabio Pintus
@date
13/03/2020
*/
#ifndef HDR_AZX_EASY_AT_H_
#define HDR_AZX_EASY_AT_H_
/** @defgroup azx_easy_at Documentation for azx_easy_at functionalities
@{
This group includes all the information about azx_easy_at configuration and usage
@}
*/
/* Global declarations ==========================================================================*/
#define AZX_EASY_AT_INVALID_AT_INSTANCE 0xFFFF
/**
@brief
This is the custom command easy at main callback function signature
@details
This callback function is executed by ATP when a custom AT command is executed.
This will contain user code to manage the command
@param[in] h
the ATP handle associated with the command
@param[in] atpI
the atp instance where the command was received. Can be used internally with m2mb_atp_get_input_data
to retrieve the command information (name, parameters list and so on)
@return
None
<b>Refer to</b>
azx_easy_at_init() AZX_EASY_AT_ATCOMMAND_T list
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
typedef void ( *azx_easy_at_taskCallback )( M2MB_ATP_HANDLE h, UINT16 atpI );
/**
@brief
This is the custom command easy at delegation callback function signature
@details
This callback function is executed by ATP when a custom AT command is in execution, and user data input
is expected. This will contain user code to manage the command
@param[in] h
the ATP handle associated with the command
@param[in] atpI
the atp instance where the command was received. Can be used internally with m2mb_atp_get_input_data
to retrieve the command information (name, parameters list and so on)
@param[in] delegationEvent
the delegation event (can be DATA or ESCAPE)
@param[in] delegationMsgSize
additional delegation callback data size in bytes
@param[in] delegationMsg
additional delegation callback data pointer
@return
None
<b>Refer to</b>
azx_easy_at_init() M2MB_EASY_AT_ATCOMMAND_T list
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
typedef void ( *azx_easy_at_taskDelegation )( M2MB_ATP_HANDLE h, UINT16 atpI,
M2MB_ATP_DELEGATION_IND_E delegationEvent, UINT16 msg_size, void *delegationMsg );
/**
@struct AZX_EASY_AT_ATCOMMAND_TAG
@brief Single custom command utility struct
@details This structure holds the parameters to register a single AT command
<b>Refer to</b>
azx_easy_at_init()
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
typedef struct AZX_EASY_AT_ATCOMMAND_TAG
{
const CHAR *cmd; /**<The command name*/
UINT16 atpFlags; /**<The ATP flags to be used for the command, e.g. M2MB_ATP_NORML|M2MB_ATP_NOPIN|M2MB_ATP_NOSIM */
azx_easy_at_taskCallback Callback; /**<Main command callback*/
azx_easy_at_taskDelegation Delegation; /**<Command delegation callback*/
UINT8 isHidden; /**<Command is hidden will not be notified when registered*/
} AZX_EASY_AT_ATCOMMAND_T; /**< Typedef of struct AZX_EASY_AT_ATCOMMAND_TAG*/
/**
@struct EASY_AT_MODULE_TAG
@brief The module structure retrieved by azx_easy_at_init()
@details This structure holds useful info for the registered group of commands
(intended as a software module) that will be used internally
<b>Refer to</b>
azx_easy_at_init()
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
typedef struct AZX_EASY_AT_MODULE_TAG
{
CHAR module_name[32]; /**<the software module name (e.g. "NTP_AT" ). will be filled by azx_easy_at_init*/
UINT16 last_AT_Instance; /**<the last AT instance received for this module*/
M2MB_ATP_HANDLE last_ATP_Handle; /**<the last ATP handle received for this module*/
} AZX_EASY_AT_MODULE_T; /**< Typedef of struct AZX_EASY_AT_MODULE_TAG*/
/**
@struct EASY_AT_HANDLES_TAG
@brief Structure containing atpHandle and atpI info for a specific command
@details This structure holds useful info for command in execution, allowing to pass it to other functions like macros
It can be created inside the AT command main callback function
<b>Refer to</b>
azx_easy_at_init()
@ingroup azx_easy_at
@code
void MY_AT_Callback( M2MB_ATP_HANDLE atpHandle, UINT16 atpI )
{
M2MB_ATP_PARAM_T *atpParam;
m2mb_atp_get_input_data( atpHandle, atpI, &atpParam );
EASY_AT_HANDLES_T hdls = {atpHandle, atpI};
...
EASY_AT_MODULE_T *module;
EASY_AT_RELEASE_WITH_SUCCESS(module, (p_hdls));
}
@endcode
*/
/*-----------------------------------------------------------------------------------------------*/
typedef struct AZX_EASY_AT_HANDLES_TAG
{
M2MB_ATP_HANDLE handle; /**<ATP handle*/
UINT16 atpI; /**<ATP Instance*/
} AZX_EASY_AT_HANDLES_T; /**< Typedef of struct AZX_EASY_AT_HANDLES_TAG*/
/* Global typedefs ==============================================================================*/
/// @private
typedef HANDLE AZX_EASY_AT_TASK_HANDLE; /**<ATP task Handle*/
/* Global functions =============================================================================*/
/*
MACROS
* */
#define AZX_EASY_AT_TRIM_LEADING_QUOTES(a) if('\"'==a[0]){a++;}
#define AZX_EASY_AT_TRIM_TRAILING_QUOTES(a) if('\"'==a[strlen(a)-1]){a[strlen(a)-1]=0;}
#define AZX_EASY_AT_TRIM_LEADING_AND_TRAILING_QUOTES(a) AZX_EASY_AT_TRIM_LEADING_QUOTES(a)AZX_EASY_AT_TRIM_TRAILING_QUOTES(a)
#ifndef AZX_EASY_AT_ARRAY_SIZE
#define AZX_EASY_AT_ARRAY_SIZE(a) ( sizeof(a)/sizeof(a[0]) )
#endif
#define AZX_EASY_AT_TRACE_FATAL(a,...) AZX_LOG_CRITICAL( a, ##__VA_ARGS__)
#define AZX_EASY_AT_TRACE_ERROR(a,...) AZX_LOG_ERROR( a, ##__VA_ARGS__)
#define AZX_EASY_AT_TRACE_WARNING(a,...) AZX_LOG_WARN( a, ##__VA_ARGS__)
#define AZX_EASY_AT_TRACE_INFO(a,...) AZX_LOG_INFO( a, ##__VA_ARGS__)
#define AZX_EASY_AT_TRACE_DEBUG(a,...) AZX_LOG_DEBUG( a, ##__VA_ARGS__)
#define AZX_EASY_AT_TRACE_DETAIL(a,...) AZX_LOG_TRACE( a, ##__VA_ARGS__)
#define AZX_EASY_AT_ASSERT_REGISTER( result)\
{\
M2MB_RESULT_E _r = result;\
if(_r == M2MB_RESULT_SUCCESS)\
AZX_EASY_AT_TRACE_DETAIL("Command Registered!\r\n");\
else {\
AZX_EASY_AT_TRACE_ERROR("Cannot register! error: %d\r\n", result);\
return _r;\
}\
}
#define AZX_EASY_AT_ASSERT_MSG( result)\
{\
if(result == M2MB_RESULT_SUCCESS)\
AZX_EASY_AT_TRACE_DEBUG("Message sent out to parser!\r\n");\
else \
AZX_EASY_AT_TRACE_ERROR("Cannot send message out! error: %d\r\n", result);\
}
#define AZX_EASY_AT_RELEASE_WITH_SUCCESS( h)\
{\
int ret;\
if((ret = m2mb_atp_release((h)->handle, (h)->atpI, M2MB_ATP_FRC_OK, -1, NULL)) == M2MB_RESULT_SUCCESS){\
AZX_EASY_AT_TRACE_DEBUG("Release SUCCESS was OK\r\n");\
}\
else {\
AZX_EASY_AT_TRACE_ERROR("Cannot release! error: %d\r\n", ret);\
}\
}
#define AZX_EASY_AT_RELEASE_WITH_ERROR(h, e)\
{\
int ret;\
if((ret = m2mb_atp_release((h)->handle, (h)->atpI, M2MB_ATP_FRC_ERROR, e, NULL)) == M2MB_RESULT_SUCCESS){\
AZX_EASY_AT_TRACE_DEBUG("Release FAILURE was OK\r\n");\
}\
else {\
AZX_EASY_AT_TRACE_ERROR("Cannot release! error: %d\r\n", ret);\
}\
}
#define AZX_EASY_AT_RELEASE_SILENT( h)\
{\
int ret;\
if((ret = m2mb_atp_release((h)->handle, (h)->atpI, M2MB_ATP_FRC_SILENT, -1, NULL)) == M2MB_RESULT_SUCCESS){\
AZX_EASY_AT_TRACE_DEBUG("Release silent was OK\r\n");\
}\
else {\
AZX_EASY_AT_TRACE_ERROR("Cannot release! error: %d\r\n", ret);\
}\
}
#define AZX_EASY_AT_FORWARD_TO_PARSER(h,m)\
{\
int ret;\
if((ret = m2mb_atp_forward_parser((h)->handle, (h)->atpI, (CHAR*) m)) == M2MB_RESULT_SUCCESS){\
EASY_AT_TRACE_DEBUG("Forward return was OK\r\n");\
}\
else {\
EASY_AT_TRACE_ERROR("Forward failed! error: %d\r\n", ret);\
}\
EASY_AT_TRACE_DEBUG("Releasing instance..\r\n");\
RELEASE_SILENT(h);\
}
/**
@brief
function to output an error message over ATP interface.
@details
This function will output an error message on ATP interface.
The format of the message depends on the cmee level for that
interface. Custom cme code and message can be provided.
It is internally called with the macro AZX_EASY_AT_RELEASE_WITH_CMEE
@param[in] hdls
pointer to the structure with atp handle and atp instance info
@param[in] cmee_code
the numeric value of the error. can be one of the standard
@param[in] level
the custom message, if needed. Leave to NULL to use a standard message.
It Supports variadic parameters
@return
M2MB_RESULT_E value
<b>Refer to</b>
azx_easy_at_init()
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
M2MB_RESULT_E azx_easy_at_CMEE( AZX_EASY_AT_HANDLES_T *hdls, INT16 cmee_code,
CHAR *cust_cmee_message, ... );
//h: pointer to handles struct
//c: cmee code
//m: custom message for cmee code and for app logging(if required)
#define AZX_EASY_AT_RELEASE_WITH_CMEE( h, c, m, ...)\
{\
M2MB_RESULT_E _int_res;\
_int_res = azx_easy_at_CMEE(h, c, m, ##__VA_ARGS__); \
if( _int_res != M2MB_RESULT_SUCCESS ){ /* failed */ AZX_EASY_AT_TRACE_ERROR( "Failed sending the CMEE message. _int_res: %d\r\n", _int_res); }\
} /**<This macro will release the ATP instance for the called handle (h), using the cmee code (c)
and passing an optional custom message(m) with its parameters. See azx_easy_at_CMEE*/
/**
@brief
Provides the command type as a string.
@details
This function will output a string that describes the current command
type. refer to M2MB_ATP_CMDTYPE_E enum. It is called by macro AZX_EASY_AT_CMD_INFO
@param[in] type
the command type as a number (retrieved by m2mb_atp_get_input_data returned structure)
@return
M2MB_RESULT_E value
<b>Refer to</b>
azx_easy_at_init()
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
const CHAR *azx_easy_at_cmdTypeAsString( UINT16 type );
#define AZX_EASY_AT_CMD_INFO(h)\
{\
M2MB_ATP_PARAM_T *atpParam;\
m2mb_atp_get_input_data( (h)->handle, (h)->atpI, &atpParam );\
AZX_EASY_AT_TRACE_INFO( "%s: type %s; itemnum: %d; instance: %d\r\n",\
atpParam->atpCmdString,\
azx_easy_at_cmdTypeAsString(atpParam->type), \
atpParam->itemNum, \
(h)->atpI);\
} /**<This macro prints information about the currently running command, given the hdls structure pointer (h).
_module is the AZX_EASY_AT_MODULE pointer. See also azx_easy_at_cmdTypeAsString() */
/**
@brief
Send an URC message.
@details
This function will queue an URC message (buffering it) and send it either as a broadcast (no AT instance was
ever used by this module (e.g. no AT commands were received yet) or to the last used AT instance.
@param[in] module
the module structure pointer
@param[in] message
the URC message.
@return
M2MB_RESULT_E value
<b>Refer to</b>
azx_easy_at_init()
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
M2MB_RESULT_E azx_easy_at_sendUnsolicited( AZX_EASY_AT_MODULE_T *module, CHAR *message );
/**
@brief
Initialize the easy AT module
@details
This function will create a module structure (with the provided module_name) and register the list of
custom commands.
@param[in] module_name
the module name to be used. It will be showed in all trace prints for that module.
@param[in] list
pointer to the array of commands info
@param[in] list_size
size of the list (number of commands)
@return
structure pointer in case of success, NULL in case of failure
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
AZX_EASY_AT_MODULE_T *azx_easy_at_init( CHAR *module_name, AZX_EASY_AT_ATCOMMAND_T *list,
INT32 list_size );
/**
@brief
Gets the ATE setting for the provided instance
@details
This function retrieve the ATE value for the instance passed with h
@param[in] h
the AZX_EASY_AT_HANDLES_T pointer, carrying the ATP instance info
@param[out] ate
pointer to the variable that will be filled with the ATE value
@return
M2MB_RESULT_E value
<b>Refer to</b>
azx_easy_at_init()
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
M2MB_RESULT_E azx_easy_at_getAte( AZX_EASY_AT_HANDLES_T *h, INT32 *ate );
/**
@brief
Gets the CME setting for the provided instance
@details
This function retrieve the CME value for the instance passed with h
@param[in] h
the AZX_EASY_AT_HANDLES_T pointer, carrying the ATP instance info
@param[out] cmee
pointer to the variable that will be filled with the CME value
@return
M2MB_RESULT_E value
<b>Refer to</b>
azx_easy_at_init()
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
M2MB_RESULT_E azx_easy_at_getCmee( AZX_EASY_AT_HANDLES_T *h, INT32 *cmee );
/*Utility functions*/
/**
@brief
modifies a string removing quotes in it.
@details
This function will modify the input string, removing all quotes it may
contain. the string length is modified accordingly.
@param[in] pStr
pointer to the string
@return
the pointer to the string.
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
char *azx_easy_at_TrimAndRemoveQuotes( CHAR *pStr );
/**
@brief
Converts a string into a signed long.
@details
This function convert an input string into an INT32 number.
@param[in] str
pointer to the string containing the number
@param[out] output
pointer to the variable that will be filled with the value.
@return 0 if success
@return -1 if the string number is out of range for an INT32
@return -2 if no digits were found
@return -3 invalid parameters
@return -4 if non numeric characters were found (different from 0-9 and +-)
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
INT32 azx_easy_at_strToL( CHAR *str, INT32 *output );
/**
@brief
Converts a string into an unsigned signed long.
@details
This function convert an input string into an UINT32 number.
@param[in] str
pointer to the string containing the number
@param[out] output
pointer to the variable that will be filled with the value.
@return 0 if success
@return -1 if the string number is out of range for an UINT32
@return -2 if no digits were found
@return -3 invalid parameters
@return -4 if non numeric characters were found (different from 0-9 and -)
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
INT32 azx_easy_at_strToUL( CHAR *str, UINT32 *output );
/**
@brief
Converts a string into an unsigned long long.
@details
This function convert an input string into an UINT64 number.
@param[in] str
pointer to the string containing the number
@param[out] output
pointer to the variable that will be filled with the value.
@return 0 if success
@return -1 if the string number is out of range for an UINT64
@return -2 if no digits were found
@return -3 invalid parameters
@return -4 if non numeric characters were found (different from 0-9 and -)
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
INT32 azx_easy_at_strToULL( CHAR *str, UINT64 *output );
/**
@brief
Converts a string in HEX format into an unsigned signed long.
@details
This function convert an input string in HEX format into an UINT32 number.
@param[in] str
pointer to the string containing the number
@param[out] output
pointer to the variable that will be filled with the value.
@return 0 if success
@return -1 if the string number is out of range for an UINT32
@return -2 if no digits were found
@return -3 invalid parameters
@return -4 if non numeric characters were found (different from 0-9 and A-F )
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
INT32 azx_easy_at_strToULHex( CHAR *str, UINT32 *output );
/**
@brief
Converts a string into an unsigned short.
@details
This function convert an input string into an UINT8 number.
@param[in] str
pointer to the string containing the number
@param[out] output
pointer to the variable that will be filled with the value.
@return 0 if success
@return -1 if the string number is out of range for an UINT8
@return -2 if no digits were found
@return -3 invalid parameters
@return -4 if non numeric characters were found (different from 0-9 and -)
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
INT8 azx_easy_at_strToUS( CHAR *str, UINT8 *output );
/**
@brief
converts an ASCII hex character (0-9A-F) to its corresponding value.
@details
This function converts a single ASCII hex character (0-9A-F)
to the corresponding value. E.g. 'F' -> 0x0F
@param[in] ch
the numeric value
@return the converted value
@ingroup azx_easy_at
*/
/*-----------------------------------------------------------------------------------------------*/
UINT8 azx_easy_at_ASCtoDEC( CHAR ch );
#endif /* HDR_EASYAT_UTILS_H_ */
|
188506d39b15fc9848f0e588b6ae2a73780bf21e
|
de8c0ea84980b6d9bb6e3e23b87e6066a65f4995
|
/3pp/linux/drivers/acpi/acpica/uterror.c
|
918aca7c4db41d62e0ba9285647b4dd9600b03ef
|
[
"MIT",
"Linux-syscall-note",
"GPL-2.0-only"
] |
permissive
|
eerimoq/monolinux-example-project
|
7cc19c6fc179a6d1fd3ec60f383f906b727e6715
|
57c4c2928b11cc04db59fb5ced962762099a9895
|
refs/heads/master
| 2021-02-08T10:57:58.215466 | 2020-07-02T08:04:25 | 2020-07-02T08:04:25 | 244,144,570 | 6 | 0 |
MIT
| 2020-07-02T08:15:50 | 2020-03-01T12:24:47 |
C
|
UTF-8
|
C
| false | false | 9,894 |
c
|
uterror.c
|
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
/*******************************************************************************
*
* Module Name: uterror - Various internal error/warning output functions
*
******************************************************************************/
#include <acpi/acpi.h>
#include "accommon.h"
#include "acnamesp.h"
#define _COMPONENT ACPI_UTILITIES
ACPI_MODULE_NAME("uterror")
/*
* This module contains internal error functions that may
* be configured out.
*/
#if !defined (ACPI_NO_ERROR_MESSAGES)
/*******************************************************************************
*
* FUNCTION: acpi_ut_predefined_warning
*
* PARAMETERS: module_name - Caller's module name (for error output)
* line_number - Caller's line number (for error output)
* pathname - Full pathname to the node
* node_flags - From Namespace node for the method/object
* format - Printf format string + additional args
*
* RETURN: None
*
* DESCRIPTION: Warnings for the predefined validation module. Messages are
* only emitted the first time a problem with a particular
* method/object is detected. This prevents a flood of error
* messages for methods that are repeatedly evaluated.
*
******************************************************************************/
void ACPI_INTERNAL_VAR_XFACE
acpi_ut_predefined_warning(const char *module_name,
u32 line_number,
char *pathname,
u16 node_flags, const char *format, ...)
{
va_list arg_list;
/*
* Warning messages for this method/object will be disabled after the
* first time a validation fails or an object is successfully repaired.
*/
if (node_flags & ANOBJ_EVALUATED) {
return;
}
acpi_os_printf(ACPI_MSG_WARNING "%s: ", pathname);
va_start(arg_list, format);
acpi_os_vprintf(format, arg_list);
ACPI_MSG_SUFFIX;
va_end(arg_list);
}
/*******************************************************************************
*
* FUNCTION: acpi_ut_predefined_info
*
* PARAMETERS: module_name - Caller's module name (for error output)
* line_number - Caller's line number (for error output)
* pathname - Full pathname to the node
* node_flags - From Namespace node for the method/object
* format - Printf format string + additional args
*
* RETURN: None
*
* DESCRIPTION: Info messages for the predefined validation module. Messages
* are only emitted the first time a problem with a particular
* method/object is detected. This prevents a flood of
* messages for methods that are repeatedly evaluated.
*
******************************************************************************/
void ACPI_INTERNAL_VAR_XFACE
acpi_ut_predefined_info(const char *module_name,
u32 line_number,
char *pathname, u16 node_flags, const char *format, ...)
{
va_list arg_list;
/*
* Warning messages for this method/object will be disabled after the
* first time a validation fails or an object is successfully repaired.
*/
if (node_flags & ANOBJ_EVALUATED) {
return;
}
acpi_os_printf(ACPI_MSG_INFO "%s: ", pathname);
va_start(arg_list, format);
acpi_os_vprintf(format, arg_list);
ACPI_MSG_SUFFIX;
va_end(arg_list);
}
/*******************************************************************************
*
* FUNCTION: acpi_ut_predefined_bios_error
*
* PARAMETERS: module_name - Caller's module name (for error output)
* line_number - Caller's line number (for error output)
* pathname - Full pathname to the node
* node_flags - From Namespace node for the method/object
* format - Printf format string + additional args
*
* RETURN: None
*
* DESCRIPTION: BIOS error message for predefined names. Messages
* are only emitted the first time a problem with a particular
* method/object is detected. This prevents a flood of
* messages for methods that are repeatedly evaluated.
*
******************************************************************************/
void ACPI_INTERNAL_VAR_XFACE
acpi_ut_predefined_bios_error(const char *module_name,
u32 line_number,
char *pathname,
u16 node_flags, const char *format, ...)
{
va_list arg_list;
/*
* Warning messages for this method/object will be disabled after the
* first time a validation fails or an object is successfully repaired.
*/
if (node_flags & ANOBJ_EVALUATED) {
return;
}
acpi_os_printf(ACPI_MSG_BIOS_ERROR "%s: ", pathname);
va_start(arg_list, format);
acpi_os_vprintf(format, arg_list);
ACPI_MSG_SUFFIX;
va_end(arg_list);
}
/*******************************************************************************
*
* FUNCTION: acpi_ut_prefixed_namespace_error
*
* PARAMETERS: module_name - Caller's module name (for error output)
* line_number - Caller's line number (for error output)
* prefix_scope - Scope/Path that prefixes the internal path
* internal_path - Name or path of the namespace node
* lookup_status - Exception code from NS lookup
*
* RETURN: None
*
* DESCRIPTION: Print error message with the full pathname constructed this way:
*
* prefix_scope_node_full_path.externalized_internal_path
*
* NOTE: 10/2017: Treat the major ns_lookup errors as firmware errors
*
******************************************************************************/
void
acpi_ut_prefixed_namespace_error(const char *module_name,
u32 line_number,
union acpi_generic_state *prefix_scope,
const char *internal_path,
acpi_status lookup_status)
{
char *full_path;
const char *message;
/*
* Main cases:
* 1) Object creation, object must not already exist
* 2) Object lookup, object must exist
*/
switch (lookup_status) {
case AE_ALREADY_EXISTS:
acpi_os_printf(ACPI_MSG_BIOS_ERROR);
message = "Failure creating named object";
break;
case AE_NOT_FOUND:
acpi_os_printf(ACPI_MSG_BIOS_ERROR);
message = "Could not resolve symbol";
break;
default:
acpi_os_printf(ACPI_MSG_ERROR);
message = "Failure resolving symbol";
break;
}
/* Concatenate the prefix path and the internal path */
full_path =
acpi_ns_build_prefixed_pathname(prefix_scope, internal_path);
acpi_os_printf("%s [%s], %s", message,
full_path ? full_path : "Could not get pathname",
acpi_format_exception(lookup_status));
if (full_path) {
ACPI_FREE(full_path);
}
ACPI_MSG_SUFFIX;
}
#ifdef __OBSOLETE_FUNCTION
/*******************************************************************************
*
* FUNCTION: acpi_ut_namespace_error
*
* PARAMETERS: module_name - Caller's module name (for error output)
* line_number - Caller's line number (for error output)
* internal_name - Name or path of the namespace node
* lookup_status - Exception code from NS lookup
*
* RETURN: None
*
* DESCRIPTION: Print error message with the full pathname for the NS node.
*
******************************************************************************/
void
acpi_ut_namespace_error(const char *module_name,
u32 line_number,
const char *internal_name, acpi_status lookup_status)
{
acpi_status status;
u32 bad_name;
char *name = NULL;
ACPI_MSG_REDIRECT_BEGIN;
acpi_os_printf(ACPI_MSG_ERROR);
if (lookup_status == AE_BAD_CHARACTER) {
/* There is a non-ascii character in the name */
ACPI_MOVE_32_TO_32(&bad_name,
ACPI_CAST_PTR(u32, internal_name));
acpi_os_printf("[0x%.8X] (NON-ASCII)", bad_name);
} else {
/* Convert path to external format */
status =
acpi_ns_externalize_name(ACPI_UINT32_MAX, internal_name,
NULL, &name);
/* Print target name */
if (ACPI_SUCCESS(status)) {
acpi_os_printf("[%s]", name);
} else {
acpi_os_printf("[COULD NOT EXTERNALIZE NAME]");
}
if (name) {
ACPI_FREE(name);
}
}
acpi_os_printf(" Namespace lookup failure, %s",
acpi_format_exception(lookup_status));
ACPI_MSG_SUFFIX;
ACPI_MSG_REDIRECT_END;
}
#endif
/*******************************************************************************
*
* FUNCTION: acpi_ut_method_error
*
* PARAMETERS: module_name - Caller's module name (for error output)
* line_number - Caller's line number (for error output)
* message - Error message to use on failure
* prefix_node - Prefix relative to the path
* path - Path to the node (optional)
* method_status - Execution status
*
* RETURN: None
*
* DESCRIPTION: Print error message with the full pathname for the method.
*
******************************************************************************/
void
acpi_ut_method_error(const char *module_name,
u32 line_number,
const char *message,
struct acpi_namespace_node *prefix_node,
const char *path, acpi_status method_status)
{
acpi_status status;
struct acpi_namespace_node *node = prefix_node;
ACPI_MSG_REDIRECT_BEGIN;
acpi_os_printf(ACPI_MSG_ERROR);
if (path) {
status = acpi_ns_get_node(prefix_node, path,
ACPI_NS_NO_UPSEARCH, &node);
if (ACPI_FAILURE(status)) {
acpi_os_printf("[Could not get node by pathname]");
}
}
acpi_ns_print_node_pathname(node, message);
acpi_os_printf(" due to previous error (%s)",
acpi_format_exception(method_status));
ACPI_MSG_SUFFIX;
ACPI_MSG_REDIRECT_END;
}
#endif /* ACPI_NO_ERROR_MESSAGES */
|
47b2583dc7e363c2e611d34bbb90c2e8c25b68be
|
a5d2d345d66f1fb30131064d377615dcf7020093
|
/benchmarks/source/superh/fftw-3.3alpha1/dft/scalar/codelets/n1_8.c
|
3256e717c47476bb75144e04053dcba6fcc75406
|
[
"BSD-3-Clause",
"GPL-2.0-or-later",
"GPL-2.0-only"
] |
permissive
|
physical-computation/sunflower-embedded-system-emulator
|
22f0d61acccd01cee1c5e77ac97baaaed48c7eb1
|
b7060c1e1e6582a672d469e4b498248e04bacbc4
|
refs/heads/master
| 2023-05-28T03:42:52.108060 | 2023-01-24T15:54:35 | 2023-01-24T15:54:35 | 51,266,165 | 14 | 43 |
BSD-3-Clause
| 2022-01-12T13:27:21 | 2016-02-07T21:02:10 |
C
|
UTF-8
|
C
| false | false | 6,985 |
c
|
n1_8.c
|
/*
* Copyright (c) 2003, 2007-8 Matteo Frigo
* Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/* This file was automatically generated --- DO NOT EDIT */
/* Generated on Sat Nov 15 20:36:51 EST 2008 */
#include "codelet-dft.h"
#ifdef HAVE_FMA
/* Generated by: ../../../genfft/gen_notw -fma -reorder-insns -schedule-for-pipeline -compact -variables 4 -pipeline-latency 4 -n 8 -name n1_8 -include n.h */
/*
* This function contains 52 FP additions, 8 FP multiplications,
* (or, 44 additions, 0 multiplications, 8 fused multiply/add),
* 36 stack variables, 1 constants, and 32 memory accesses
*/
#include "n.h"
static void n1_8(const R *ri, const R *ii, R *ro, R *io, stride is, stride os, INT v, INT ivs, INT ovs)
{
DK(KP707106781, +0.707106781186547524400844362104849039284835938);
INT i;
for (i = v; i > 0; i = i - 1, ri = ri + ivs, ii = ii + ivs, ro = ro + ovs, io = io + ovs, MAKE_VOLATILE_STRIDE(is), MAKE_VOLATILE_STRIDE(os)) {
E TF, TE, TD, TI;
{
E Tn, T3, TC, Ti, TB, T6, To, Tl, Td, TN, Tz, TH, Ta, Tq, Tt;
E TM;
{
E T4, T5, Tj, Tk;
{
E T1, T2, Tg, Th;
T1 = ri[0];
T2 = ri[WS(is, 4)];
Tg = ii[0];
Th = ii[WS(is, 4)];
T4 = ri[WS(is, 2)];
Tn = T1 - T2;
T3 = T1 + T2;
TC = Tg - Th;
Ti = Tg + Th;
T5 = ri[WS(is, 6)];
}
Tj = ii[WS(is, 2)];
Tk = ii[WS(is, 6)];
{
E Tb, Tc, Tw, Tx;
Tb = ri[WS(is, 7)];
TB = T4 - T5;
T6 = T4 + T5;
To = Tj - Tk;
Tl = Tj + Tk;
Tc = ri[WS(is, 3)];
Tw = ii[WS(is, 7)];
Tx = ii[WS(is, 3)];
{
E T8, Tv, Ty, T9, Tr, Ts;
T8 = ri[WS(is, 1)];
Td = Tb + Tc;
Tv = Tb - Tc;
TN = Tw + Tx;
Ty = Tw - Tx;
T9 = ri[WS(is, 5)];
Tr = ii[WS(is, 1)];
Ts = ii[WS(is, 5)];
Tz = Tv - Ty;
TH = Tv + Ty;
Ta = T8 + T9;
Tq = T8 - T9;
Tt = Tr - Ts;
TM = Tr + Ts;
}
}
}
{
E TL, TG, Tu, Tf, Tm, TO;
{
E T7, Te, TP, TQ;
TL = T3 - T6;
T7 = T3 + T6;
TG = Tt - Tq;
Tu = Tq + Tt;
Te = Ta + Td;
Tf = Td - Ta;
Tm = Ti - Tl;
TP = Ti + Tl;
TQ = TM + TN;
TO = TM - TN;
ro[0] = T7 + Te;
ro[WS(os, 4)] = T7 - Te;
io[0] = TP + TQ;
io[WS(os, 4)] = TP - TQ;
}
{
E Tp, TA, TJ, TK;
TF = Tn - To;
Tp = Tn + To;
io[WS(os, 6)] = Tm - Tf;
io[WS(os, 2)] = Tf + Tm;
ro[WS(os, 2)] = TL + TO;
ro[WS(os, 6)] = TL - TO;
TA = Tu + Tz;
TE = Tz - Tu;
TD = TB + TC;
TJ = TC - TB;
TK = TG + TH;
TI = TG - TH;
ro[WS(os, 1)] = FMA(KP707106781, TA, Tp);
ro[WS(os, 5)] = FNMS(KP707106781, TA, Tp);
io[WS(os, 1)] = FMA(KP707106781, TK, TJ);
io[WS(os, 5)] = FNMS(KP707106781, TK, TJ);
}
}
}
io[WS(os, 3)] = FMA(KP707106781, TE, TD);
io[WS(os, 7)] = FNMS(KP707106781, TE, TD);
ro[WS(os, 3)] = FMA(KP707106781, TI, TF);
ro[WS(os, 7)] = FNMS(KP707106781, TI, TF);
}
}
static const kdft_desc desc = { 8, "n1_8", {44, 0, 8, 0}, &GENUS, 0, 0, 0, 0 };
void X(codelet_n1_8) (planner *p) {
X(kdft_register) (p, n1_8, &desc);
}
#else /* HAVE_FMA */
/* Generated by: ../../../genfft/gen_notw -compact -variables 4 -pipeline-latency 4 -n 8 -name n1_8 -include n.h */
/*
* This function contains 52 FP additions, 4 FP multiplications,
* (or, 52 additions, 4 multiplications, 0 fused multiply/add),
* 28 stack variables, 1 constants, and 32 memory accesses
*/
#include "n.h"
static void n1_8(const R *ri, const R *ii, R *ro, R *io, stride is, stride os, INT v, INT ivs, INT ovs)
{
DK(KP707106781, +0.707106781186547524400844362104849039284835938);
INT i;
for (i = v; i > 0; i = i - 1, ri = ri + ivs, ii = ii + ivs, ro = ro + ovs, io = io + ovs, MAKE_VOLATILE_STRIDE(is), MAKE_VOLATILE_STRIDE(os)) {
E T3, Tn, Ti, TC, T6, TB, Tl, To, Td, TN, Tz, TH, Ta, TM, Tu;
E TG;
{
E T1, T2, Tj, Tk;
T1 = ri[0];
T2 = ri[WS(is, 4)];
T3 = T1 + T2;
Tn = T1 - T2;
{
E Tg, Th, T4, T5;
Tg = ii[0];
Th = ii[WS(is, 4)];
Ti = Tg + Th;
TC = Tg - Th;
T4 = ri[WS(is, 2)];
T5 = ri[WS(is, 6)];
T6 = T4 + T5;
TB = T4 - T5;
}
Tj = ii[WS(is, 2)];
Tk = ii[WS(is, 6)];
Tl = Tj + Tk;
To = Tj - Tk;
{
E Tb, Tc, Tv, Tw, Tx, Ty;
Tb = ri[WS(is, 7)];
Tc = ri[WS(is, 3)];
Tv = Tb - Tc;
Tw = ii[WS(is, 7)];
Tx = ii[WS(is, 3)];
Ty = Tw - Tx;
Td = Tb + Tc;
TN = Tw + Tx;
Tz = Tv - Ty;
TH = Tv + Ty;
}
{
E T8, T9, Tq, Tr, Ts, Tt;
T8 = ri[WS(is, 1)];
T9 = ri[WS(is, 5)];
Tq = T8 - T9;
Tr = ii[WS(is, 1)];
Ts = ii[WS(is, 5)];
Tt = Tr - Ts;
Ta = T8 + T9;
TM = Tr + Ts;
Tu = Tq + Tt;
TG = Tt - Tq;
}
}
{
E T7, Te, TP, TQ;
T7 = T3 + T6;
Te = Ta + Td;
ro[WS(os, 4)] = T7 - Te;
ro[0] = T7 + Te;
TP = Ti + Tl;
TQ = TM + TN;
io[WS(os, 4)] = TP - TQ;
io[0] = TP + TQ;
}
{
E Tf, Tm, TL, TO;
Tf = Td - Ta;
Tm = Ti - Tl;
io[WS(os, 2)] = Tf + Tm;
io[WS(os, 6)] = Tm - Tf;
TL = T3 - T6;
TO = TM - TN;
ro[WS(os, 6)] = TL - TO;
ro[WS(os, 2)] = TL + TO;
}
{
E Tp, TA, TJ, TK;
Tp = Tn + To;
TA = KP707106781 * (Tu + Tz);
ro[WS(os, 5)] = Tp - TA;
ro[WS(os, 1)] = Tp + TA;
TJ = TC - TB;
TK = KP707106781 * (TG + TH);
io[WS(os, 5)] = TJ - TK;
io[WS(os, 1)] = TJ + TK;
}
{
E TD, TE, TF, TI;
TD = TB + TC;
TE = KP707106781 * (Tz - Tu);
io[WS(os, 7)] = TD - TE;
io[WS(os, 3)] = TD + TE;
TF = Tn - To;
TI = KP707106781 * (TG - TH);
ro[WS(os, 7)] = TF - TI;
ro[WS(os, 3)] = TF + TI;
}
}
}
static const kdft_desc desc = { 8, "n1_8", {52, 4, 0, 0}, &GENUS, 0, 0, 0, 0 };
void X(codelet_n1_8) (planner *p) {
X(kdft_register) (p, n1_8, &desc);
}
#endif /* HAVE_FMA */
|
7ec8f7eca3015f708617a382ffc91eb45406fa63
|
e79bb17c1c8e2ab58421aae2a00a5fda8f91af8a
|
/examples/include/srv.transterpreter.org/srv-blackfin/trunk/SRV/C-test.c
|
fd93d34b2978ec58b89461bbdaacdbcec074da25
|
[] |
no_license
|
Linux-enCaja/ecb_bf532
|
d6ff367be0ce85a72cbb492e6ee57cd6f3b9c98f
|
4e4c9181a81e3eb32048769d0564ab1c9c2df2bf
|
refs/heads/master
| 2016-09-02T02:26:34.551486 | 2011-05-31T16:08:50 | 2011-05-31T16:08:50 | 9,119,943 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 246 |
c
|
C-test.c
|
main()
{
int i, x, y, z;
color(0, 20, 250, 40, 200, 40, 200);
imgrcap();
imgdiff(1);
delay(100);
laser(1);
delay(200);
imgcap();
delay(100);
laser(0);
i = blob(0, 0);
print(i);
imgdiff(0);
}
|
d407e94a4fbfd4f02cb526b9ee999b12454f7c11
|
fc987ace8516d4d5dfcb5444ed7cb905008c6147
|
/third_party/perl/perl/vendor/lib/Imager/include/iolayert.h
|
167ef30fb8d4ada945fc746b03e81e2ab1e27221
|
[
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] |
permissive
|
nfschina/nfs-browser
|
3c366cedbdbe995739717d9f61e451bcf7b565ce
|
b6670ba13beb8ab57003f3ba2c755dc368de3967
|
refs/heads/master
| 2022-10-28T01:18:08.229807 | 2020-09-07T11:45:28 | 2020-09-07T11:45:28 | 145,939,440 | 2 | 4 |
BSD-3-Clause
| 2022-10-13T14:59:54 | 2018-08-24T03:47:46 | null |
UTF-8
|
C
| false | false | 2,888 |
h
|
iolayert.h
|
#ifndef IMAGER_IOLAYERT_H
#define IMAGER_IOLAYERT_H
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include <sys/types.h>
#include <stddef.h>
#include <stdio.h>
typedef enum { FDSEEK, FDNOSEEK, BUFFER, CBSEEK, CBNOSEEK, BUFCHAIN } io_type;
#ifdef _MSC_VER
typedef int ssize_t;
#endif
typedef struct i_io_glue_t i_io_glue_t;
/* compatibility for now */
typedef i_io_glue_t io_glue;
/* Callbacks we give out */
typedef ssize_t(*i_io_readp_t) (io_glue *ig, void *buf, size_t count);
typedef ssize_t(*i_io_writep_t)(io_glue *ig, const void *buf, size_t count);
typedef off_t (*i_io_seekp_t) (io_glue *ig, off_t offset, int whence);
typedef int (*i_io_closep_t)(io_glue *ig);
typedef ssize_t(*i_io_sizep_t) (io_glue *ig);
typedef void (*i_io_closebufp_t)(void *p);
typedef void (*i_io_destroyp_t)(i_io_glue_t *ig);
/* Callbacks we get */
typedef ssize_t(*i_io_readl_t) (void *p, void *buf, size_t count);
typedef ssize_t(*i_io_writel_t)(void *p, const void *buf, size_t count);
typedef off_t (*i_io_seekl_t) (void *p, off_t offset, int whence);
typedef int (*i_io_closel_t)(void *p);
typedef void (*i_io_destroyl_t)(void *p);
typedef ssize_t(*i_io_sizel_t) (void *p);
extern char *io_type_names[];
/* Structures to describe data sources */
struct i_io_glue_t {
io_type type;
void *exdata;
i_io_readp_t readcb;
i_io_writep_t writecb;
i_io_seekp_t seekcb;
i_io_closep_t closecb;
i_io_sizep_t sizecb;
i_io_destroyp_t destroycb;
unsigned char *buffer;
unsigned char *read_ptr;
unsigned char *read_end;
unsigned char *write_ptr;
unsigned char *write_end;
size_t buf_size;
/* non-zero if we encountered EOF */
int buf_eof;
/* non-zero if we've seen an error */
int error;
/* if non-zero we do write buffering (enabled by default) */
int buffered;
};
#define I_IO_DUMP_CALLBACKS 1
#define I_IO_DUMP_BUFFER 2
#define I_IO_DUMP_STATUS 4
#define I_IO_DUMP_DEFAULT (I_IO_DUMP_BUFFER | I_IO_DUMP_STATUS)
#define i_io_type(ig) ((ig)->source.ig_type)
#define i_io_raw_read(ig, buf, size) ((ig)->readcb((ig), (buf), (size)))
#define i_io_raw_write(ig, data, size) ((ig)->writecb((ig), (data), (size)))
#define i_io_raw_seek(ig, offset, whence) ((ig)->seekcb((ig), (offset), (whence)))
#define i_io_raw_close(ig) ((ig)->closecb(ig))
#define i_io_is_buffered(ig) ((int)((ig)->buffered))
#define i_io_getc(ig) \
((ig)->read_ptr < (ig)->read_end ? \
*((ig)->read_ptr++) : \
i_io_getc_imp(ig))
#define i_io_peekc(ig) \
((ig)->read_ptr < (ig)->read_end ? \
*((ig)->read_ptr) : \
i_io_peekc_imp(ig))
#define i_io_putc(ig, c) \
((ig)->write_ptr < (ig)->write_end && !(ig)->error ? \
*(ig)->write_ptr++ = (c) : \
i_io_putc_imp(ig, (c)))
#define i_io_eof(ig) \
((ig)->read_ptr == (ig)->read_end && (ig)->buf_eof)
#define i_io_error(ig) \
((ig)->read_ptr == (ig)->read_end && (ig)->error)
#endif
|
a407a45134caa852e43f5a85a4298e3c130fe0af
|
f3c1887efc6aae49df12b5de609906e25de64bee
|
/config.h
|
80f55706cf00afb67d3d9ab171018947a1ccb4eb
|
[] |
no_license
|
Lellansin/SimpleFtp
|
1e33f47a4814d60bbae404b60100a6b6f5d9886a
|
a52f3e739b2f066484fafcaefeb0d3c09c27fa66
|
refs/heads/master
| 2020-06-02T16:51:39.824726 | 2013-09-22T09:55:46 | 2013-09-22T09:55:46 | 12,181,503 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 63 |
h
|
config.h
|
#ifndef _CONFIG_H_
#define _CONFIG_H_
void config();
#endif
|
8368bb3f4d3ec4b86ca8de9e36ebeb0ddf053b12
|
c2a3876d2a3d2ab3083c6b5d76179d0ec2c2fa7d
|
/3 курс/AMO/S½ÑF¬á ña«ínº¬¿/OOP 2014-15/KV-31/Maxim K/2/Test_Spisok.c
|
a99322dd1e5e7d4207c4f55fb5540c66d246b1a6
|
[] |
no_license
|
IvanHorpynych/Politech
|
d9fd5c419f2be9108c15303feca16b08c225a79d
|
167fdb6d9b278b9cce409e6feb2873b1d2b6b883
|
refs/heads/master
| 2023-04-27T23:58:57.917256 | 2020-06-03T14:41:33 | 2020-06-03T14:41:33 | 268,886,134 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,400 |
c
|
Test_Spisok.c
|
#include "Hspisok.h"
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
int main(){
CNode *head1 = NULL, *head2 = NULL, *head = NULL;// pointers of lists
CNode *elem = (CNode*)malloc(sizeof(CNode));
int i;
int del = 0;
if (isempty(head1) == 1){
printf("Current list is empty");
}
else print_list(head1);
printf("\nList after adding new node to the end:");
for (i = 0; i <5; i++) {
CNode *p = (CNode *)malloc(sizeof(CNode));
p->id = i;
append2list(&head1, p);
}
print_list(head1);
printf("\n del_node elem : %d", del);
printf("\nList after del_node:");
del_node(&head1, del);
print_list(head1);
//printf("\nList after clear:");
// clear(&head1);
// print_list(head1);
i = 8;
elem->id = i;
ins_node(&head1, elem, 2);
print_list(head1);
printf("\nList after reverse:");
reverse(head1);
print_list(head1);
for (i = 0; i <2; i++) {
CNode *p = (CNode *)malloc(sizeof(CNode));
p->id = i;
append2list(&head2, p);
}
head = merge_unique(head1, head2);
printf("\nList 1 = ");
print_list(head1);
printf("List 2 = ");
print_list(head2);
printf("List unique = ");
print_list(head);
printf("\n");
i = 7;
elem->id = i;
ins_node(&head, elem, 8);
ins_node(&head, elem, 8);
ins_node(&head, elem, 7);
printf("\n After ins_node in list \n");
print_list(head);
printf("\n After unique in list\n");
unique(&head);
print_list(head);
getchar();
}
|
06edb49039a8004a33428244e7c4935cd4b5eed1
|
416600fdef2c88e03bedcf4ec70709d9d0b579ff
|
/L6474_selfmade_forward_routine/Inc/forward_routine.h
|
23323d773b1cb0a376900fddd44107a32f78fe80
|
[] |
no_license
|
DanielSCSGit/Summerbreak_OSBS
|
f20d6ac5c3a2f0051edf7a891bc9d5f57a1c4e8b
|
c7ff8e0b53b82bc07d9399e2cc7603c5de14cd82
|
refs/heads/master
| 2022-11-14T17:46:37.536308 | 2020-06-23T20:30:12 | 2020-06-23T20:30:12 | 273,542,719 | 0 | 2 | null | 2020-06-23T20:30:14 | 2020-06-19T16:44:05 | null |
UTF-8
|
C
| false | false | 157 |
h
|
forward_routine.h
|
// Author: Daniel Stojicic
// Date: 23.06.2020
#include "main.h"
//Enable befehl in HEX
#define L6474_Enable 184
void forward(SPI_HandleTypeDef *hspi);
|
ca9a28d6c66973a7504154970a67d9fcf0080fa0
|
976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f
|
/source/linux/drivers/net/ethernet/qlogic/qlcnic/extr_qlcnic_dcb.c___qlcnic_dcb_attach.c
|
9eed75454e4defdf7c0232ab743c1c7adbde5739
|
[] |
no_license
|
isabella232/AnghaBench
|
7ba90823cf8c0dd25a803d1688500eec91d1cf4e
|
9a5f60cdc907a0475090eef45e5be43392c25132
|
refs/heads/master
| 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,969 |
c
|
extr_qlcnic_dcb.c___qlcnic_dcb_attach.c
|
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__ ;
typedef struct TYPE_3__ TYPE_1__ ;
/* Type definitions */
struct qlcnic_dcb_mbx_params {int dummy; } ;
struct qlcnic_dcb_cfg {int dummy; } ;
struct qlcnic_dcb {int /*<<< orphan*/ * wq; int /*<<< orphan*/ * cfg; void* param; TYPE_2__* adapter; int /*<<< orphan*/ aen_work; } ;
struct TYPE_4__ {TYPE_1__* pdev; } ;
struct TYPE_3__ {int /*<<< orphan*/ dev; } ;
/* Variables and functions */
int ENOMEM ;
int /*<<< orphan*/ GFP_ATOMIC ;
int /*<<< orphan*/ INIT_DELAYED_WORK (int /*<<< orphan*/ *,int /*<<< orphan*/ ) ;
int /*<<< orphan*/ * create_singlethread_workqueue (char*) ;
int /*<<< orphan*/ destroy_workqueue (int /*<<< orphan*/ *) ;
int /*<<< orphan*/ dev_err (int /*<<< orphan*/ *,char*) ;
int /*<<< orphan*/ kfree (int /*<<< orphan*/ *) ;
void* kzalloc (int,int /*<<< orphan*/ ) ;
int /*<<< orphan*/ qlcnic_dcb_aen_work ;
__attribute__((used)) static int __qlcnic_dcb_attach(struct qlcnic_dcb *dcb)
{
int err = 0;
INIT_DELAYED_WORK(&dcb->aen_work, qlcnic_dcb_aen_work);
dcb->wq = create_singlethread_workqueue("qlcnic-dcb");
if (!dcb->wq) {
dev_err(&dcb->adapter->pdev->dev,
"DCB workqueue allocation failed. DCB will be disabled\n");
return -1;
}
dcb->cfg = kzalloc(sizeof(struct qlcnic_dcb_cfg), GFP_ATOMIC);
if (!dcb->cfg) {
err = -ENOMEM;
goto out_free_wq;
}
dcb->param = kzalloc(sizeof(struct qlcnic_dcb_mbx_params), GFP_ATOMIC);
if (!dcb->param) {
err = -ENOMEM;
goto out_free_cfg;
}
return 0;
out_free_cfg:
kfree(dcb->cfg);
dcb->cfg = NULL;
out_free_wq:
destroy_workqueue(dcb->wq);
dcb->wq = NULL;
return err;
}
|
57421b16fec44a83cb4786b2482cc8dc9c34d15b
|
b451c58861986255be6744cce8d024a1512122bf
|
/src/fonts.h
|
f3696730e6e5e87ff4f05d86ac952c8e708c8017
|
[
"LicenseRef-scancode-warranty-disclaimer"
] |
no_license
|
AndiS977/uGUI-Lib
|
929e98e412416051a4747fb7eee9ff83201ee392
|
ea857028b4d78cb5d7b1ea1a6542520a652c5f75
|
refs/heads/main
| 2023-04-11T07:08:57.323946 | 2021-04-23T14:10:58 | 2021-04-23T14:10:58 | 360,827,294 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,212 |
h
|
fonts.h
|
#ifndef _FONTS_H_
#define _FONTS_H_
//#include "Arduino.h"
#include "ugui_config.h"
/*
#ifdef __cplusplus
extern "C" {
#endif
*/
//extern const ILI9341_t3_font_t Arial_8;
#ifdef USE_INTERNAL_FONTS
extern const UG_FONT FONT_4X6;
extern const UG_FONT FONT_5X8;
extern const UG_FONT FONT_5X12;
extern const UG_FONT FONT_6X8;
extern const UG_FONT FONT_6X10;
extern const UG_FONT FONT_7X12;
extern const UG_FONT FONT_8X8;
extern const UG_FONT FONT_8X12;
extern const UG_FONT FONT_8X14;
extern const UG_FONT FONT_10X16;
extern const UG_FONT FONT_12X16;
extern const UG_FONT FONT_12X20;
extern const UG_FONT FONT_16X26;
extern const UG_FONT FONT_22X36;
extern const UG_FONT FONT_24X40;
extern const UG_FONT FONT_32X53;
#else // USE_RA8875_FONTS
extern UG_FONT FONT_6X8;
extern UG_FONT FONT_6X10;
extern UG_FONT FONT_7X12;
extern UG_FONT FONT_8X8;
extern UG_FONT FONT_8X12;
extern UG_FONT FONT_8X14;
extern UG_FONT FONT_10X16;
extern UG_FONT FONT_12X16;
extern UG_FONT FONT_12X20;
extern UG_FONT FONT_14X22;
extern UG_FONT FONT_16X26;
extern UG_FONT FONT_22X36;
#endif // USE_INTERNAL_FONTS
/*
#ifdef __cplusplus
} // extern "C"
#endif
*/
#endif
|
1eadb9dbf7f84467a0223d5a4696772cd080a2f1
|
1f497a25af0068f83539c52fcdd72c2ade9d7369
|
/libsrc/bitmap/mode4/m4_pixel.c
|
9620bd9afcc9c20f3e917c590d9e771be6f05e5f
|
[
"MIT"
] |
permissive
|
LinoBigatti/APIagb
|
1425d1c1b7df6341f088758cbc73fed8023bfe21
|
5401548a8e723614f19034e1411055bda500430e
|
refs/heads/master
| 2020-04-21T01:51:20.317712 | 2019-12-06T22:11:56 | 2019-12-06T22:11:56 | 169,236,449 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 276 |
c
|
m4_pixel.c
|
//Plot a pixel on mode 4.
#include <bitmap/mode4/m4_pixel.h>
void m4_pixel(u32 x, u32 y, m4_color_entry clr) {
u16 *dst= &m4_back_vram[(x + y * M4_WIDTH) >> 1];
if(x & 1) {
*dst = (*dst & 0x00FF) | (clr << 8);
} else {
*dst = (*dst & 0xFF00) | clr;
}
}
|
0573b2d6472f23e745e2b34e838f9c233f858bcc
|
2fe79705bf26fb6d5f5643ebb1500a2246af0581
|
/src/resource.h
|
3bbd8cfe8be46955fc7caa29358de8cc5decdd19
|
[] |
no_license
|
alexandervantrijffel/sc-replace
|
9bd6d0acf903ebe8da566f840dd2584f694c6a3d
|
f659de3849f9ec79b98035366b9f4af7ec091f00
|
refs/heads/master
| 2020-04-07T16:52:31.431752 | 2018-11-21T12:52:08 | 2018-11-21T12:52:08 | 158,546,910 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,364 |
h
|
resource.h
|
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by res.rc
//
#define ID_ABOUT 3
#define IDD_DLG_MAIN 101
#define IDD_DLG_ABOUT 104
#define IDB_SCLOGO 106
#define IDI_MAIN 109
#define IDB_BROWSE 112
#define IDD_DLG_RESULTS 114
#define IDC_DIRECTORY 1010
#define IDC_FILE 1011
#define IDC_BROWSED 1012
#define IDC_BROWSEF 1013
#define IDC_REPLACEWITH 1016
#define IDC_REPLACE 1017
#define IDC_RESULTS 1020
#define IDC_BSUBDIRS 1024
#define IDC_BREPLACE 1025
#define IDC_STATUS 1027
#define IDC_BRENAME 1028
#define IDC_BCASESENSITIVE 1029
#define IDC_BNOCHANGES 1030
#define IDC_RESULTSCANCEL 1031
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 116
#define _APS_NEXT_COMMAND_VALUE 40004
#define _APS_NEXT_CONTROL_VALUE 1030
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
|
850872d632171168f7e20f1db21919477cc52920
|
041896c4d54efd97e1896fb882f92b5c7df3a425
|
/SwitchMinEXE_Global.h
|
379c2322f7f9bdfcb48efad1cca480eb93e13dea
|
[] |
no_license
|
double16/switchmin-w32
|
69ce34fce9a666dc21e62086a4d0bd0c0853e49f
|
aece48d3d6507b7811060d4fb75ab65e81798acb
|
refs/heads/master
| 2020-05-19T12:40:23.711046 | 2014-06-15T01:29:07 | 2014-06-15T01:29:07 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 714 |
h
|
SwitchMinEXE_Global.h
|
//
// Global includes for SwitchMin.EXE
//
#ifndef SwitchMinEXE_Global
#define SwitchMinEXE_Global
#include <owl/pch.h>
#include <owl/docview.h>
#include <owl/docmanag.h>
#include <owl/dialog.h>
#include <owl/commctrl.h>
#include <owl/checkbox.h>
#include <owl/button.h>
#include <owl/gauge.h>
#include <owl/listbox.h>
#include <owl/static.h>
#include <owl/window.h>
#include <owl/listwind.h>
#include <owl/radiobut.h>
#include <owl/panespli.h>
#include <stdio.h>
#include <stdlib.h>
#include <strstrea.h>
#include "SwitchMinDLL_Global.h"
#include "switchminapp.rh" // Definition of all resources.
//#include "switchdoc.h"
#include "stringvector.h"
#include "c:\code\dvcommon\dvcommon.h"
#endif
|
98510e83d7f84b4da2c771a087edd94ce413f7cc
|
9d06fe8ae4991df678ed69d37dff37b84f32fdb2
|
/WebbotLibV2/Maths/Vector3Dnorm.c
|
db0368d31fe464e5936b5e6cf22f5b47a2c83778
|
[] |
no_license
|
bechu/hexapod
|
004e24d128c3892a1a2f87d89dc219258fabad89
|
de0af30870f3338e1a955ae4d0c1a6c25a31eccd
|
refs/heads/master
| 2021-03-12T23:56:34.305151 | 2012-06-24T21:47:12 | 2012-06-24T21:47:12 | 3,721,059 | 1 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 1,352 |
c
|
Vector3Dnorm.c
|
/*
* $Id: $
* Revision History
* ================
* $Log: $
* ================
*
* Copyright (C) 2011 Clive Webster (webbot@webbot.org.uk)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* File: Vector3Dnorm.c
* Created on: 24 Sep 2011
* Author: Clive
*/
#include "Vector3D.h"
// Change the vector in 'src' into a unit vector at 'dst' - ie with length = 1
// src and dst can be the same vector
void vector3d_Normalise(VECTOR3D* dst,const VECTOR3D* src){
vector3d_Copy(dst,src);
if(!dst->normalised){
double dist = vector3d_Length(dst);
if(dist==0.0){
dst->x = 0.0;
dst->y = 0.0;
dst->z = 0.0;
}else{
dst->x /= dist;
dst->y /= dist;
dst->z /= dist;
}
dst->normalised = TRUE;
}
}
|
6d74decc68a9af575e36950b2c8461fa512007dd
|
ee924e1303ffcdb8e206b014bfe344209876feb3
|
/C/Lista 3/zadanie 1 lista 3.c
|
ffd1fbf5d3c2acd9983714f419f0b8adc09362db
|
[] |
no_license
|
Stachnikov/Studia-II-UWR
|
82ad018634037c295e0d7a61e51bf06c4723e6eb
|
7b2f798e1836c20963affa664ba8ea05e1fb167e
|
refs/heads/master
| 2020-05-16T07:10:18.068542 | 2020-04-08T14:29:47 | 2020-04-08T14:29:47 | 182,866,963 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,781 |
c
|
zadanie 1 lista 3.c
|
#include <stdio.h>
void DrawElip(int x0, int y0, int r) //RYSOWANIE KOLA
{
//j==x i==y
for(int i=0;i<y0*r;i++)
{
for(int j=0;j<x0*r;j++)
{
if(((j-x0)*(j-x0) + (i-y0)*(i-y0)) <= r*r)
{
putchar('X');
}
else
{
putchar('.');
}
}
putchar('\n');
}
}
void DrawRect(int x0, int y0, int w, int h) //RYSOWANIE PROSTOKATA
{
//j==x i==y
for(int i=0;i<=y0+h;i++)
{
for(int j=0;j<=x0+w;j++)
{
if(j>=x0 && j<x0+w && i>=y0 && i<y0+h)
{
putchar('X');
}
else
{
putchar('.');
}
}
putchar('\n');
}
}
int main()
{
char znak='c'; // zeby weszlo do petli
int x=5,y=4,w=2,h=0;
char napis[1000];
printf("%s\n","Witaj!");
printf("%s\n","Oto przyklad kola:");
DrawElip(x,y ,w);
while(znak=='r' || znak=='c' || znak=='q') //sprawdza czy zawiera literke komendy
{
fgets (napis, 1000, stdin);
sscanf(napis,"%c %d %d %d %d",&znak,&x,&y,&w,&h);
while(znak!='r' && znak!='c' && znak!='q') //czeka na odpowiednia komende
{
fgets (napis, 1000, stdin);
sscanf(napis,"%c %d %d %d %d",&znak,&x,&y,&w,&h);
}
if(znak=='c') //kolo
{
DrawElip(x,y,w);
}
else
{
if(znak=='r') //prostokat
{
DrawRect(x,y,w,h);
}
else
{
if(znak=='q') //wyjscie
{
return 0;
}
}
}
}
return 0;
}
|
1d85b06b92851d2466e6b822e8b30a105fffc228
|
30afe5118ad0e4533d46e9953e17cb8336153cb1
|
/ksHttp.c
|
d9f6bd486d973b4f6343cf1d299ff8ae26436741
|
[] |
no_license
|
konoar/TestHttp
|
57dab46c3c40789ea44ffe4df776eb210b806038
|
8630dca7ff4eda4ec6c85adaa39bb3d357f68db0
|
refs/heads/master
| 2020-08-29T15:49:40.740494 | 2019-10-30T12:54:08 | 2019-10-30T12:54:08 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 13,691 |
c
|
ksHttp.c
|
/********************************************************
ksHttp.c
Copyright 2019.10.27 konoar
********************************************************/
#include "ksCommon.h"
#include "ksHttp.h"
#include "ksBuffer.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <time.h>
#include <unistd.h>
#include <sys/socket.h>
#define KS_HTTP_BUFFER_MAX 1024
#define KS_HTTP_URI_MAX 256
#define KS_HTTP_HOST_MAX 256
#define KS_HTTP_PATH_MAX 1024
#define KS_HTTP_ROOT "./data"
#define KS_SLEEP(_a_) \
do { \
\
struct timespec t = { \
0, _a_ * 1000 * 1000 \
}; \
nanosleep(&t, NULL); \
\
} while(0)
enum ksHttpStatus
{
KS_HTTP_STATUS_UNKNOWN,
KS_HTTP_STATUS_OK,
KS_HTTP_STATUS_NOT_FOUND,
KS_HTTP_STATUS_MAX
};
const char *ksHttpStatusStr[KS_HTTP_STATUS_MAX] =
{
"",
"200 OK",
"404 Not Found"
};
typedef struct _ksSessionStateless
{
int acc;
char uri [KS_HTTP_URI_MAX];
char host [KS_HTTP_HOST_MAX];
int status;
enum {
KS_HTTP_METHOD_UNKNOWN,
KS_HTTP_METHOD_GET,
KS_HTTP_METHOD_POST,
KS_HTTP_METHOD_PUT
} method;
enum {
KS_HTTP_VERSION_UNKNOWN,
KS_HTTP_VERSION_1_0,
KS_HTTP_VERSION_1_1,
KS_HTTP_VERSION_2
} version;
enum {
KS_HTTP_RSTAGE_INIT,
KS_HTTP_RSTAGE_HEADER,
KS_HTTP_RSTAGE_BODY,
KS_HTTP_RSTAGE_FINISH
} rstage;
enum {
KS_HTTP_WSTAGE_INIT,
KS_HTTP_WSTAGE_HEADER,
KS_HTTP_WSTAGE_BODY,
KS_HTTP_WSTAGE_FINISH
} wstage;
ksBuffer bufferin;
ksBuffer bufferout;
} ksSessionStateless;
int ksHttpGetWord(const char *data, const int datalen, const int pos, char *buff, const int bufflen)
{
enum {
KS_HTTP_GETWORD_START,
KS_HTTP_GETWORD_WORD,
KS_HTTP_GETWORD_SPACE
} state = KS_HTTP_GETWORD_START;
int cnt = 0, start = 0;
for (int idx = 0; idx < datalen; idx++) {
switch (state) {
case KS_HTTP_GETWORD_START:
if (data[idx] == 0x0D ||
data[idx] == 0x0A) {
return KS_NG;
} else if (data[idx] == 0x20) {
state = KS_HTTP_GETWORD_SPACE;
} else {
start = idx;
state = KS_HTTP_GETWORD_WORD;
}
break;
case KS_HTTP_GETWORD_WORD:
if (data[idx] == 0x20 ||
data[idx] == 0x0D ||
data[idx] == 0x0A) {
if (++cnt == pos) {
if ((idx -start) >= bufflen) {
return KS_NG;
}
memcpy(buff, data + start, idx - start);
buff[idx - start] = 0x00;
return KS_OK;
}
state = KS_HTTP_GETWORD_SPACE;
}
break;
case KS_HTTP_GETWORD_SPACE:
if (data[idx] == 0x0D ||
data[idx] == 0x0A) {
return KS_NG;
} else if (data[idx] != 0x20) {
start = idx;
state = KS_HTTP_GETWORD_WORD;
}
break;
default:
return KS_NG;
}
}
return KS_NG;
}
int ksHttpGetMethod(const char *data, const int datalen, int *method)
{
char buff[32];
if (KS_OK != ksHttpGetWord(data, datalen, 1, buff, sizeof(buff))) {
return KS_NG;
}
if (0 == strcmp(buff, "GET")) {
*method = KS_HTTP_METHOD_GET;
return KS_OK;
}
if (0 == strcmp(buff, "POST")) {
*method = KS_HTTP_METHOD_POST;
return KS_OK;
}
if (0 == strcmp(buff, "PUT")) {
*method = KS_HTTP_METHOD_PUT;
return KS_OK;
}
return KS_NG;
}
int ksHttpGetURI(const char *data, const int datalen, char *uri, const int urilen)
{
enum {
KS_HTTP_GETURI_PRE,
KS_HTTP_GETURI_DATA,
KS_HTTP_GETURI_POST,
} state = KS_HTTP_GETURI_PRE;
char buff[KS_HTTP_URI_MAX];
int pos = 0;
if (urilen <= 0) {
return KS_NG;
}
if (KS_OK != ksHttpGetWord(data, datalen, 2, buff, sizeof(buff))) {
return KS_NG;
}
for (int cur = 0; buff[cur] != 0x00; cur++) {
switch (state) {
case KS_HTTP_GETURI_PRE:
if (0x20 != buff[cur]) {
if (0x2F != buff[cur]) {
if (pos < urilen) uri[pos++] = buff[cur];
else return KS_NG;
}
state = KS_HTTP_GETURI_DATA;
}
break;
case KS_HTTP_GETURI_DATA:
if (0x20 != buff[cur]) {
if (pos < urilen) uri[pos++] = buff[cur];
else return KS_NG;
} else {
state = KS_HTTP_GETURI_POST;
}
break;
default:
break;
}
}
if (pos < urilen) {
uri[pos] = 0x00;
} else {
return KS_NG;
}
return KS_OK;
}
int ksHttpGetVersion(const char *data, const int datalen, int *version)
{
char buff[16];
if (KS_OK != ksHttpGetWord(data, datalen, 3, buff, sizeof(buff))) {
return KS_NG;
}
if (0 == strcmp(buff, "HTTP/1.1")) {
*version = KS_HTTP_VERSION_1_1;
return KS_OK;
}
if (0 == strcmp(buff, "HTTP/2")) {
*version = KS_HTTP_VERSION_2;
return KS_OK;
}
if (0 == strcmp(buff, "HTTP/1.0")) {
*version = KS_HTTP_VERSION_1_0;
return KS_OK;
}
return KS_NG;
}
int ksHttpFindHeaderField(const char *data, const int datalen, const char *key, char *buff, const int bufflen)
{
int base, cur, pos = -1;
for (base = 0; base < datalen; ) {
for (cur = 0; cur < (datalen - base); cur++) {
if (0x00 == key[cur]) {
pos = base + cur;
goto LFINISH;
} else if (data[base + cur] == key[cur]) {
continue;
}
break;
}
for (; base < datalen; base++) {
if (0x0A == data[base]) {
base++;
break;
}
}
}
LFINISH:
if (0 <= pos) {
for (base = 0, cur = pos; base < (bufflen - 1) && cur < datalen; base++, cur++) {
if (0x0D == data[cur] ||
0x0A == data[cur]) {
break;
}
buff[base] = data[cur];
}
buff[base] = 0x00;
return KS_OK;
}
return KS_NG;
}
int ksHttpParseHeader(ksSessionStateless *s, const char *buff, const int bufflen)
{
int cnt = 0, end = 0, ret = KS_NG;
char value[256];
for (int idx = 0; idx < bufflen; idx++) {
if (0x0A == buff[idx]) {
cnt++;
} else if (0x0D != buff[idx]) {
cnt = 0;
}
if (cnt == 2) {
end = idx;
ret = KS_OK;
break;
}
}
if (KS_OK != ret) {
return ret;
}
if (KS_OK != (ret = ksHttpGetMethod(buff, end, (int*)&s->method))) {
return ret;
}
if (KS_OK != (ret = ksHttpGetURI(buff, end, s->uri, KS_HTTP_URI_MAX))) {
return ret;
}
if (KS_OK != (ret = ksHttpGetVersion(buff, end, (int*)&s->version))) {
if (KS_HTTP_VERSION_1_1 != s->version) {
return KS_NG;
}
}
if (KS_OK != (ret = ksHttpFindHeaderField(
buff, end, "Host:", s->host, KS_HTTP_HOST_MAX))) {
return ret;
}
return KS_OK;
}
int ksHttpReadBody(ksSessionStateless *s, const char *buff, const int bufflen)
{
/* todo */
return KS_OK;
}
int ksHttpThreadIORead(ksSessionStateless *s)
{
char buff[KS_HTTP_BUFFER_MAX];
int recvlen = 0, bufflen = 0;
if (s->rstage == KS_HTTP_RSTAGE_FINISH) {
return KS_END;
}
recvlen = recv(s->acc, buff + bufflen, KS_HTTP_BUFFER_MAX - bufflen, 0);
if (0 >= recvlen) {
return KS_NODATA;
} else {
bufflen += recvlen;
}
switch (s->rstage) {
case KS_HTTP_RSTAGE_INIT:
s->rstage = KS_HTTP_RSTAGE_HEADER;
case KS_HTTP_RSTAGE_HEADER:
if (KS_OK == ksHttpParseHeader(s, buff, bufflen)) {
s->rstage = KS_HTTP_RSTAGE_BODY;
}
break;
case KS_HTTP_RSTAGE_BODY:
if (KS_OK == ksHttpReadBody(s, buff, bufflen)) {
s->rstage = KS_HTTP_RSTAGE_FINISH;
}
break;
}
return KS_OK;
}
int ksHttpThreadIOWrite(ksSessionStateless *s)
{
char buff[KS_HTTP_BUFFER_MAX];
int buffsize = 0, ret;
if (s->wstage == KS_HTTP_WSTAGE_FINISH) {
return KS_END;
}
switch (s->wstage) {
case KS_HTTP_WSTAGE_INIT:
if (s->status == KS_HTTP_STATUS_UNKNOWN) {
KS_SLEEP(100);
} else {
s->wstage = KS_HTTP_WSTAGE_HEADER;
}
break;
case KS_HTTP_WSTAGE_HEADER:
sprintf(buff, "HTTP/1.1 %s\n\n", ksHttpStatusStr[s->status]);
send(s->acc, buff, strlen(buff), 0);
if (s->status == KS_HTTP_STATUS_OK) {
s->wstage = KS_HTTP_WSTAGE_BODY;
} else {
s->wstage = KS_HTTP_WSTAGE_FINISH;
}
break;
case KS_HTTP_WSTAGE_BODY:
buffsize = KS_BUFFER_BLOCK_MAX;
ret = ksBufferRead(s->bufferout, buff, &buffsize);
if (ret == KS_OK && buffsize > 0) {
send(s->acc, buff, buffsize, 0);
} else if (ret == KS_END) {
if (buffsize > 0) {
send(s->acc, buff, buffsize, 0);
}
s->wstage = KS_HTTP_WSTAGE_FINISH;
}
break;
case KS_HTTP_WSTAGE_FINISH:
return KS_END;
}
return KS_OK;
}
void* ksHttpThreadIO(void *param)
{
ksSessionStateless *s = (ksSessionStateless*)param;
while (1) {
(void) ksHttpThreadIORead(s);
if (KS_END == ksHttpThreadIOWrite(s)) {
break;
}
}
return 0;
}
int ksHttpDoGet(ksSessionStateless *s)
{
FILE *fp = NULL;
char filename[KS_HTTP_PATH_MAX], buff[16];
int siz;
sprintf(filename, "%s/%s", KS_HTTP_ROOT, s->uri);
if (NULL == (fp = fopen(filename, "r"))) {
s->status = KS_HTTP_STATUS_NOT_FOUND;
return KS_NG;
}
s->status = KS_HTTP_STATUS_OK;
while (siz = fread(buff, 1, KS_BUFFER_BLOCK_MAX, fp)) {
while (KS_OK != ksBufferWrite(s->bufferout, buff, &siz, 0)) {
KS_SLEEP(100);
}
}
fclose(fp);
siz = 0;
while (KS_OK != ksBufferWrite(s->bufferout, NULL, &siz, KS_BUFFER_FLAG_END)) {
KS_SLEEP(100);
}
return KS_OK;
}
void* ksHttpThreadTask(void *param)
{
ksSessionStateless *s = (ksSessionStateless*)param;
while (KS_HTTP_RSTAGE_HEADER >= s->rstage) {
KS_SLEEP(100);
}
switch (s->method) {
case KS_HTTP_METHOD_GET:
ksHttpDoGet(s);
break;
default:
break;
}
return 0;
}
int ksHttpRespond(int acc)
{
ksSessionStateless *s = NULL;
pthread_t threadio, threadtask;
int stateio, statetask, ret = KS_OK;
s = malloc(sizeof(ksSessionStateless));
do {
s->acc = acc;
s->rstage = KS_HTTP_RSTAGE_INIT;
s->wstage = KS_HTTP_WSTAGE_INIT;
s->method = KS_HTTP_METHOD_UNKNOWN;
s->version = KS_HTTP_VERSION_UNKNOWN;
s->status = KS_HTTP_STATUS_UNKNOWN;
if (KS_OK != ksBufferInit(&s->bufferin)) {
s->bufferin = NULL;
ret = KS_NG;
break;
}
if (KS_OK != ksBufferInit(&s->bufferout)) {
s->bufferout = NULL;
ret = KS_NG;
break;
}
stateio = KS_FALSE;
statetask = KS_FALSE;
if (0 != pthread_create(
&threadio,
NULL,
ksHttpThreadIO,
s
)) {
ret = KS_NG;
break;
}
stateio = KS_TRUE;
if (0 != pthread_create(
&threadtask,
NULL,
ksHttpThreadTask,
s
)) {
ret = KS_NG;
break;
}
statetask = KS_TRUE;
} while(0);
if (statetask) {
pthread_join(threadtask, NULL);
}
if (stateio) {
pthread_join(threadio, NULL);
}
if (s) {
if (s->bufferin) {
ksBufferUninit(&s->bufferin);
s->bufferin = NULL;
}
if (s->bufferout) {
ksBufferUninit(&s->bufferout);
s->bufferout = NULL;
}
free(s);
s = NULL;
}
return ret;
}
|
cf4484a6244aeb1aee1f44416824081c64ccf867
|
63dd5de6186c40936efeb6db703bc9934cc64961
|
/main.build/module.odf.office.c
|
212da17dcb4d0cf5aa4653bf33b4086507fe47ff
|
[
"Apache-2.0"
] |
permissive
|
artur-chagas/ltv-pyqt
|
b2f49ec8a86d9d57e2eccd489597f7af8a9d73f7
|
9df112c6b2b4376c5cb31529609e1352de4bf6f3
|
refs/heads/master
| 2023-07-26T11:13:21.846949 | 2021-09-02T16:43:10 | 2021-09-02T16:43:10 | 348,781,846 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 267,339 |
c
|
module.odf.office.c
|
/* Generated code for Python module 'odf.office'
* created by Nuitka version 0.6.16
*
* This code is in part copyright 2021 Kay Hayen.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "nuitka/prelude.h"
#include "nuitka/unfreezing.h"
#include "__helpers.h"
/* The "module_odf$office" is a Python object pointer of module type.
*
* Note: For full compatibility with CPython, every module variable access
* needs to go through it except for cases where the module cannot possibly
* have changed in the mean time.
*/
PyObject *module_odf$office;
PyDictObject *moduledict_odf$office;
/* The declarations of module constants used, if any. */
static PyObject *mod_consts[77];
static PyObject *module_filename_obj = NULL;
/* Indicator if this modules private constants were created yet. */
static bool constants_created = false;
/* Function to create module private constants. */
static void createModuleConstants(void) {
if (constants_created == false) {
loadConstantsBlob(&mod_consts[0], UNTRANSLATE("odf.office"));
constants_created = true;
}
}
/* For multiprocessing, we want to be able to initialize the __main__ constants. */
#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0
void createMainModuleConstants(void) {
createModuleConstants();
}
#endif
/* Function to verify module private constants for non-corruption. */
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_odf$office(void) {
// The module may not have been used at all, then ignore this.
if (constants_created == false) return;
checkConstantsBlob(&mod_consts[0], "odf.office");
}
#endif
// The module code objects.
static PyCodeObject *codeobj_f50bc24f1c6299f343c0efb456043864;
static PyCodeObject *codeobj_b5992c2571f69f7060ce37481e664f5f;
static PyCodeObject *codeobj_de4c1a822da9a6806b3bab781118e9f8;
static PyCodeObject *codeobj_6ced9d97fe7c988a8fdb2702a23d7a91;
static PyCodeObject *codeobj_51618898c44cc6108c56644ddcc19d0f;
static PyCodeObject *codeobj_c925519d733aa3ef51d655e6e3f0d3be;
static PyCodeObject *codeobj_d94b910f4fc7393cdc2064d15ef1b192;
static PyCodeObject *codeobj_1dc6b40eba990cd8c0bfecdfd42660bb;
static PyCodeObject *codeobj_77cf5466e50e612953fc7f75db7ee8f4;
static PyCodeObject *codeobj_723ac53635997a6b5af5c9e07d302166;
static PyCodeObject *codeobj_935ae013c5d20c1f71c9d42cfe23245c;
static PyCodeObject *codeobj_1d18808f7ff5e7625a980d80d0ac6e33;
static PyCodeObject *codeobj_a8c00d42e7d10bacc1bba6f3b9e815e3;
static PyCodeObject *codeobj_a05dc37fa5d0b7580b5aa09b89952cf8;
static PyCodeObject *codeobj_6febd2ce22c3e8ae7afaed40f9be0a6e;
static PyCodeObject *codeobj_e01965a7d4ee2acb53d50ca23a1a8e8f;
static PyCodeObject *codeobj_66d9769f5db8a4e20bdea3992aa6a804;
static PyCodeObject *codeobj_7f2a419759912addd095be93652f4480;
static PyCodeObject *codeobj_91f1758e0dd3616faec1babe72520424;
static PyCodeObject *codeobj_55890a31d951ef738738d564ab493cc5;
static PyCodeObject *codeobj_ecf29d69a4f6d2d6682518c2cfb2ec3a;
static PyCodeObject *codeobj_235c8e78abca15fd1d1e83e9a2b433f1;
static PyCodeObject *codeobj_7e906560a40ebdc264feb9ebe5b43075;
static PyCodeObject *codeobj_54a7913d8c2090921701ddce412d43ac;
static PyCodeObject *codeobj_3050d0d81a0853b055a92d430e54fab1;
static PyCodeObject *codeobj_e113a5eaca056cde69105441f5d7392a;
static PyCodeObject *codeobj_202992c4f8b7f72ac9b2cc5dd77e41b9;
static PyCodeObject *codeobj_9814c7b94455e9e4aa129b17104fe5c1;
static void createModuleCodeObjects(void) {
module_filename_obj = mod_consts[33]; CHECK_OBJECT(module_filename_obj);
codeobj_f50bc24f1c6299f343c0efb456043864 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[74], NULL, NULL, 0, 0, 0);
codeobj_b5992c2571f69f7060ce37481e664f5f = MAKE_CODEOBJECT(module_filename_obj, 26, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[46], mod_consts[75], NULL, 0, 0, 0);
codeobj_de4c1a822da9a6806b3bab781118e9f8 = MAKE_CODEOBJECT(module_filename_obj, 29, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[47], mod_consts[75], NULL, 0, 0, 0);
codeobj_6ced9d97fe7c988a8fdb2702a23d7a91 = MAKE_CODEOBJECT(module_filename_obj, 32, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[48], mod_consts[75], NULL, 0, 0, 0);
codeobj_51618898c44cc6108c56644ddcc19d0f = MAKE_CODEOBJECT(module_filename_obj, 35, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[49], mod_consts[75], NULL, 0, 0, 0);
codeobj_c925519d733aa3ef51d655e6e3f0d3be = MAKE_CODEOBJECT(module_filename_obj, 38, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[50], mod_consts[75], NULL, 0, 0, 0);
codeobj_d94b910f4fc7393cdc2064d15ef1b192 = MAKE_CODEOBJECT(module_filename_obj, 41, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[51], mod_consts[75], NULL, 0, 0, 0);
codeobj_1dc6b40eba990cd8c0bfecdfd42660bb = MAKE_CODEOBJECT(module_filename_obj, 44, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[52], mod_consts[75], NULL, 0, 0, 0);
codeobj_77cf5466e50e612953fc7f75db7ee8f4 = MAKE_CODEOBJECT(module_filename_obj, 47, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[53], mod_consts[75], NULL, 0, 0, 0);
codeobj_723ac53635997a6b5af5c9e07d302166 = MAKE_CODEOBJECT(module_filename_obj, 50, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[55], mod_consts[76], NULL, 1, 0, 0);
codeobj_935ae013c5d20c1f71c9d42cfe23245c = MAKE_CODEOBJECT(module_filename_obj, 53, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[56], mod_consts[76], NULL, 1, 0, 0);
codeobj_1d18808f7ff5e7625a980d80d0ac6e33 = MAKE_CODEOBJECT(module_filename_obj, 56, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[57], mod_consts[76], NULL, 1, 0, 0);
codeobj_a8c00d42e7d10bacc1bba6f3b9e815e3 = MAKE_CODEOBJECT(module_filename_obj, 59, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[58], mod_consts[76], NULL, 1, 0, 0);
codeobj_a05dc37fa5d0b7580b5aa09b89952cf8 = MAKE_CODEOBJECT(module_filename_obj, 62, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[59], mod_consts[76], NULL, 1, 0, 0);
codeobj_6febd2ce22c3e8ae7afaed40f9be0a6e = MAKE_CODEOBJECT(module_filename_obj, 65, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[60], mod_consts[75], NULL, 0, 0, 0);
codeobj_e01965a7d4ee2acb53d50ca23a1a8e8f = MAKE_CODEOBJECT(module_filename_obj, 68, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[61], mod_consts[75], NULL, 0, 0, 0);
codeobj_66d9769f5db8a4e20bdea3992aa6a804 = MAKE_CODEOBJECT(module_filename_obj, 71, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[62], mod_consts[75], NULL, 0, 0, 0);
codeobj_7f2a419759912addd095be93652f4480 = MAKE_CODEOBJECT(module_filename_obj, 74, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[63], mod_consts[75], NULL, 0, 0, 0);
codeobj_91f1758e0dd3616faec1babe72520424 = MAKE_CODEOBJECT(module_filename_obj, 77, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[64], mod_consts[75], NULL, 0, 0, 0);
codeobj_55890a31d951ef738738d564ab493cc5 = MAKE_CODEOBJECT(module_filename_obj, 80, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[65], mod_consts[75], NULL, 0, 0, 0);
codeobj_ecf29d69a4f6d2d6682518c2cfb2ec3a = MAKE_CODEOBJECT(module_filename_obj, 83, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[66], mod_consts[75], NULL, 0, 0, 0);
codeobj_235c8e78abca15fd1d1e83e9a2b433f1 = MAKE_CODEOBJECT(module_filename_obj, 86, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[67], mod_consts[75], NULL, 0, 0, 0);
codeobj_7e906560a40ebdc264feb9ebe5b43075 = MAKE_CODEOBJECT(module_filename_obj, 89, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[68], mod_consts[75], NULL, 0, 0, 0);
codeobj_54a7913d8c2090921701ddce412d43ac = MAKE_CODEOBJECT(module_filename_obj, 92, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[69], mod_consts[75], NULL, 0, 0, 0);
codeobj_3050d0d81a0853b055a92d430e54fab1 = MAKE_CODEOBJECT(module_filename_obj, 95, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[70], mod_consts[75], NULL, 0, 0, 0);
codeobj_e113a5eaca056cde69105441f5d7392a = MAKE_CODEOBJECT(module_filename_obj, 98, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[71], mod_consts[75], NULL, 0, 0, 0);
codeobj_202992c4f8b7f72ac9b2cc5dd77e41b9 = MAKE_CODEOBJECT(module_filename_obj, 101, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[75], NULL, 0, 0, 0);
codeobj_9814c7b94455e9e4aa129b17104fe5c1 = MAKE_CODEOBJECT(module_filename_obj, 104, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[73], mod_consts[75], NULL, 0, 0, 0);
}
// The module function declarations.
NUITKA_CROSS_MODULE PyObject *impl___main__$$$function__6_complex_call_helper_keywords_star_dict(PyObject **python_pars);
static PyObject *MAKE_FUNCTION_odf$office$$$function__10_DocumentContent(PyObject *defaults);
static PyObject *MAKE_FUNCTION_odf$office$$$function__11_DocumentMeta(PyObject *defaults);
static PyObject *MAKE_FUNCTION_odf$office$$$function__12_DocumentSettings(PyObject *defaults);
static PyObject *MAKE_FUNCTION_odf$office$$$function__13_DocumentStyles(PyObject *defaults);
static PyObject *MAKE_FUNCTION_odf$office$$$function__14_Drawing();
static PyObject *MAKE_FUNCTION_odf$office$$$function__15_EventListeners();
static PyObject *MAKE_FUNCTION_odf$office$$$function__16_FontFaceDecls();
static PyObject *MAKE_FUNCTION_odf$office$$$function__17_Forms();
static PyObject *MAKE_FUNCTION_odf$office$$$function__18_Image();
static PyObject *MAKE_FUNCTION_odf$office$$$function__19_MasterStyles();
static PyObject *MAKE_FUNCTION_odf$office$$$function__1_Annotation();
static PyObject *MAKE_FUNCTION_odf$office$$$function__20_Meta();
static PyObject *MAKE_FUNCTION_odf$office$$$function__21_Presentation();
static PyObject *MAKE_FUNCTION_odf$office$$$function__22_Script();
static PyObject *MAKE_FUNCTION_odf$office$$$function__23_Scripts();
static PyObject *MAKE_FUNCTION_odf$office$$$function__24_Settings();
static PyObject *MAKE_FUNCTION_odf$office$$$function__25_Spreadsheet();
static PyObject *MAKE_FUNCTION_odf$office$$$function__26_Styles();
static PyObject *MAKE_FUNCTION_odf$office$$$function__27_Text();
static PyObject *MAKE_FUNCTION_odf$office$$$function__2_AnnotationEnd();
static PyObject *MAKE_FUNCTION_odf$office$$$function__3_AutomaticStyles();
static PyObject *MAKE_FUNCTION_odf$office$$$function__4_BinaryData();
static PyObject *MAKE_FUNCTION_odf$office$$$function__5_Body();
static PyObject *MAKE_FUNCTION_odf$office$$$function__6_ChangeInfo();
static PyObject *MAKE_FUNCTION_odf$office$$$function__7_Chart();
static PyObject *MAKE_FUNCTION_odf$office$$$function__8_DdeSource();
static PyObject *MAKE_FUNCTION_odf$office$$$function__9_Document(PyObject *defaults);
// The module function definitions.
static PyObject *impl_odf$office$$$function__1_Annotation(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_b5992c2571f69f7060ce37481e664f5f;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_b5992c2571f69f7060ce37481e664f5f = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_b5992c2571f69f7060ce37481e664f5f)) {
Py_XDECREF(cache_frame_b5992c2571f69f7060ce37481e664f5f);
#if _DEBUG_REFCOUNTS
if (cache_frame_b5992c2571f69f7060ce37481e664f5f == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_b5992c2571f69f7060ce37481e664f5f = MAKE_FUNCTION_FRAME(codeobj_b5992c2571f69f7060ce37481e664f5f, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_b5992c2571f69f7060ce37481e664f5f->m_type_description == NULL);
frame_b5992c2571f69f7060ce37481e664f5f = cache_frame_b5992c2571f69f7060ce37481e664f5f;
// Push the new frame as the currently active one.
pushFrameStack(frame_b5992c2571f69f7060ce37481e664f5f);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_b5992c2571f69f7060ce37481e664f5f) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[0]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 27;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 27;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[3];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 27;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_b5992c2571f69f7060ce37481e664f5f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_b5992c2571f69f7060ce37481e664f5f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_b5992c2571f69f7060ce37481e664f5f);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_b5992c2571f69f7060ce37481e664f5f, exception_lineno);
} else if (exception_tb->tb_frame != &frame_b5992c2571f69f7060ce37481e664f5f->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_b5992c2571f69f7060ce37481e664f5f, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_b5992c2571f69f7060ce37481e664f5f,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_b5992c2571f69f7060ce37481e664f5f == cache_frame_b5992c2571f69f7060ce37481e664f5f) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_b5992c2571f69f7060ce37481e664f5f);
cache_frame_b5992c2571f69f7060ce37481e664f5f = NULL;
}
assertFrameObject(frame_b5992c2571f69f7060ce37481e664f5f);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__2_AnnotationEnd(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_de4c1a822da9a6806b3bab781118e9f8;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_de4c1a822da9a6806b3bab781118e9f8 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_de4c1a822da9a6806b3bab781118e9f8)) {
Py_XDECREF(cache_frame_de4c1a822da9a6806b3bab781118e9f8);
#if _DEBUG_REFCOUNTS
if (cache_frame_de4c1a822da9a6806b3bab781118e9f8 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_de4c1a822da9a6806b3bab781118e9f8 = MAKE_FUNCTION_FRAME(codeobj_de4c1a822da9a6806b3bab781118e9f8, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_de4c1a822da9a6806b3bab781118e9f8->m_type_description == NULL);
frame_de4c1a822da9a6806b3bab781118e9f8 = cache_frame_de4c1a822da9a6806b3bab781118e9f8;
// Push the new frame as the currently active one.
pushFrameStack(frame_de4c1a822da9a6806b3bab781118e9f8);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_de4c1a822da9a6806b3bab781118e9f8) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[0]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 30;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 30;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[4];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 30;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_de4c1a822da9a6806b3bab781118e9f8);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_de4c1a822da9a6806b3bab781118e9f8);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_de4c1a822da9a6806b3bab781118e9f8);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_de4c1a822da9a6806b3bab781118e9f8, exception_lineno);
} else if (exception_tb->tb_frame != &frame_de4c1a822da9a6806b3bab781118e9f8->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_de4c1a822da9a6806b3bab781118e9f8, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_de4c1a822da9a6806b3bab781118e9f8,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_de4c1a822da9a6806b3bab781118e9f8 == cache_frame_de4c1a822da9a6806b3bab781118e9f8) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_de4c1a822da9a6806b3bab781118e9f8);
cache_frame_de4c1a822da9a6806b3bab781118e9f8 = NULL;
}
assertFrameObject(frame_de4c1a822da9a6806b3bab781118e9f8);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__3_AutomaticStyles(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_6ced9d97fe7c988a8fdb2702a23d7a91;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91)) {
Py_XDECREF(cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91);
#if _DEBUG_REFCOUNTS
if (cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91 = MAKE_FUNCTION_FRAME(codeobj_6ced9d97fe7c988a8fdb2702a23d7a91, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91->m_type_description == NULL);
frame_6ced9d97fe7c988a8fdb2702a23d7a91 = cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91;
// Push the new frame as the currently active one.
pushFrameStack(frame_6ced9d97fe7c988a8fdb2702a23d7a91);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_6ced9d97fe7c988a8fdb2702a23d7a91) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 33;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 33;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[6];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 33;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_6ced9d97fe7c988a8fdb2702a23d7a91);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_6ced9d97fe7c988a8fdb2702a23d7a91);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_6ced9d97fe7c988a8fdb2702a23d7a91);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_6ced9d97fe7c988a8fdb2702a23d7a91, exception_lineno);
} else if (exception_tb->tb_frame != &frame_6ced9d97fe7c988a8fdb2702a23d7a91->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_6ced9d97fe7c988a8fdb2702a23d7a91, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_6ced9d97fe7c988a8fdb2702a23d7a91,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_6ced9d97fe7c988a8fdb2702a23d7a91 == cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91);
cache_frame_6ced9d97fe7c988a8fdb2702a23d7a91 = NULL;
}
assertFrameObject(frame_6ced9d97fe7c988a8fdb2702a23d7a91);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__4_BinaryData(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_51618898c44cc6108c56644ddcc19d0f;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_51618898c44cc6108c56644ddcc19d0f = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_51618898c44cc6108c56644ddcc19d0f)) {
Py_XDECREF(cache_frame_51618898c44cc6108c56644ddcc19d0f);
#if _DEBUG_REFCOUNTS
if (cache_frame_51618898c44cc6108c56644ddcc19d0f == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_51618898c44cc6108c56644ddcc19d0f = MAKE_FUNCTION_FRAME(codeobj_51618898c44cc6108c56644ddcc19d0f, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_51618898c44cc6108c56644ddcc19d0f->m_type_description == NULL);
frame_51618898c44cc6108c56644ddcc19d0f = cache_frame_51618898c44cc6108c56644ddcc19d0f;
// Push the new frame as the currently active one.
pushFrameStack(frame_51618898c44cc6108c56644ddcc19d0f);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_51618898c44cc6108c56644ddcc19d0f) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 36;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 36;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[7];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 36;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_51618898c44cc6108c56644ddcc19d0f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_51618898c44cc6108c56644ddcc19d0f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_51618898c44cc6108c56644ddcc19d0f);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_51618898c44cc6108c56644ddcc19d0f, exception_lineno);
} else if (exception_tb->tb_frame != &frame_51618898c44cc6108c56644ddcc19d0f->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_51618898c44cc6108c56644ddcc19d0f, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_51618898c44cc6108c56644ddcc19d0f,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_51618898c44cc6108c56644ddcc19d0f == cache_frame_51618898c44cc6108c56644ddcc19d0f) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_51618898c44cc6108c56644ddcc19d0f);
cache_frame_51618898c44cc6108c56644ddcc19d0f = NULL;
}
assertFrameObject(frame_51618898c44cc6108c56644ddcc19d0f);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__5_Body(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_c925519d733aa3ef51d655e6e3f0d3be;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_c925519d733aa3ef51d655e6e3f0d3be = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_c925519d733aa3ef51d655e6e3f0d3be)) {
Py_XDECREF(cache_frame_c925519d733aa3ef51d655e6e3f0d3be);
#if _DEBUG_REFCOUNTS
if (cache_frame_c925519d733aa3ef51d655e6e3f0d3be == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_c925519d733aa3ef51d655e6e3f0d3be = MAKE_FUNCTION_FRAME(codeobj_c925519d733aa3ef51d655e6e3f0d3be, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_c925519d733aa3ef51d655e6e3f0d3be->m_type_description == NULL);
frame_c925519d733aa3ef51d655e6e3f0d3be = cache_frame_c925519d733aa3ef51d655e6e3f0d3be;
// Push the new frame as the currently active one.
pushFrameStack(frame_c925519d733aa3ef51d655e6e3f0d3be);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_c925519d733aa3ef51d655e6e3f0d3be) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 39;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 39;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[8];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 39;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_c925519d733aa3ef51d655e6e3f0d3be);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c925519d733aa3ef51d655e6e3f0d3be);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c925519d733aa3ef51d655e6e3f0d3be);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_c925519d733aa3ef51d655e6e3f0d3be, exception_lineno);
} else if (exception_tb->tb_frame != &frame_c925519d733aa3ef51d655e6e3f0d3be->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_c925519d733aa3ef51d655e6e3f0d3be, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_c925519d733aa3ef51d655e6e3f0d3be,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_c925519d733aa3ef51d655e6e3f0d3be == cache_frame_c925519d733aa3ef51d655e6e3f0d3be) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_c925519d733aa3ef51d655e6e3f0d3be);
cache_frame_c925519d733aa3ef51d655e6e3f0d3be = NULL;
}
assertFrameObject(frame_c925519d733aa3ef51d655e6e3f0d3be);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__6_ChangeInfo(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_d94b910f4fc7393cdc2064d15ef1b192;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_d94b910f4fc7393cdc2064d15ef1b192 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_d94b910f4fc7393cdc2064d15ef1b192)) {
Py_XDECREF(cache_frame_d94b910f4fc7393cdc2064d15ef1b192);
#if _DEBUG_REFCOUNTS
if (cache_frame_d94b910f4fc7393cdc2064d15ef1b192 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_d94b910f4fc7393cdc2064d15ef1b192 = MAKE_FUNCTION_FRAME(codeobj_d94b910f4fc7393cdc2064d15ef1b192, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_d94b910f4fc7393cdc2064d15ef1b192->m_type_description == NULL);
frame_d94b910f4fc7393cdc2064d15ef1b192 = cache_frame_d94b910f4fc7393cdc2064d15ef1b192;
// Push the new frame as the currently active one.
pushFrameStack(frame_d94b910f4fc7393cdc2064d15ef1b192);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_d94b910f4fc7393cdc2064d15ef1b192) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 42;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 42;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[9];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 42;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_d94b910f4fc7393cdc2064d15ef1b192);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_d94b910f4fc7393cdc2064d15ef1b192);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_d94b910f4fc7393cdc2064d15ef1b192);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_d94b910f4fc7393cdc2064d15ef1b192, exception_lineno);
} else if (exception_tb->tb_frame != &frame_d94b910f4fc7393cdc2064d15ef1b192->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_d94b910f4fc7393cdc2064d15ef1b192, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_d94b910f4fc7393cdc2064d15ef1b192,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_d94b910f4fc7393cdc2064d15ef1b192 == cache_frame_d94b910f4fc7393cdc2064d15ef1b192) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_d94b910f4fc7393cdc2064d15ef1b192);
cache_frame_d94b910f4fc7393cdc2064d15ef1b192 = NULL;
}
assertFrameObject(frame_d94b910f4fc7393cdc2064d15ef1b192);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__7_Chart(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_1dc6b40eba990cd8c0bfecdfd42660bb;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb)) {
Py_XDECREF(cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb);
#if _DEBUG_REFCOUNTS
if (cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb = MAKE_FUNCTION_FRAME(codeobj_1dc6b40eba990cd8c0bfecdfd42660bb, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb->m_type_description == NULL);
frame_1dc6b40eba990cd8c0bfecdfd42660bb = cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb;
// Push the new frame as the currently active one.
pushFrameStack(frame_1dc6b40eba990cd8c0bfecdfd42660bb);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_1dc6b40eba990cd8c0bfecdfd42660bb) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 45;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 45;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[10];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 45;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_1dc6b40eba990cd8c0bfecdfd42660bb);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_1dc6b40eba990cd8c0bfecdfd42660bb);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_1dc6b40eba990cd8c0bfecdfd42660bb);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_1dc6b40eba990cd8c0bfecdfd42660bb, exception_lineno);
} else if (exception_tb->tb_frame != &frame_1dc6b40eba990cd8c0bfecdfd42660bb->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_1dc6b40eba990cd8c0bfecdfd42660bb, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_1dc6b40eba990cd8c0bfecdfd42660bb,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_1dc6b40eba990cd8c0bfecdfd42660bb == cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb);
cache_frame_1dc6b40eba990cd8c0bfecdfd42660bb = NULL;
}
assertFrameObject(frame_1dc6b40eba990cd8c0bfecdfd42660bb);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__8_DdeSource(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_77cf5466e50e612953fc7f75db7ee8f4;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_77cf5466e50e612953fc7f75db7ee8f4 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_77cf5466e50e612953fc7f75db7ee8f4)) {
Py_XDECREF(cache_frame_77cf5466e50e612953fc7f75db7ee8f4);
#if _DEBUG_REFCOUNTS
if (cache_frame_77cf5466e50e612953fc7f75db7ee8f4 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_77cf5466e50e612953fc7f75db7ee8f4 = MAKE_FUNCTION_FRAME(codeobj_77cf5466e50e612953fc7f75db7ee8f4, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_77cf5466e50e612953fc7f75db7ee8f4->m_type_description == NULL);
frame_77cf5466e50e612953fc7f75db7ee8f4 = cache_frame_77cf5466e50e612953fc7f75db7ee8f4;
// Push the new frame as the currently active one.
pushFrameStack(frame_77cf5466e50e612953fc7f75db7ee8f4);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_77cf5466e50e612953fc7f75db7ee8f4) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 48;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 48;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[11];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 48;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_77cf5466e50e612953fc7f75db7ee8f4);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_77cf5466e50e612953fc7f75db7ee8f4);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_77cf5466e50e612953fc7f75db7ee8f4);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_77cf5466e50e612953fc7f75db7ee8f4, exception_lineno);
} else if (exception_tb->tb_frame != &frame_77cf5466e50e612953fc7f75db7ee8f4->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_77cf5466e50e612953fc7f75db7ee8f4, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_77cf5466e50e612953fc7f75db7ee8f4,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_77cf5466e50e612953fc7f75db7ee8f4 == cache_frame_77cf5466e50e612953fc7f75db7ee8f4) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_77cf5466e50e612953fc7f75db7ee8f4);
cache_frame_77cf5466e50e612953fc7f75db7ee8f4 = NULL;
}
assertFrameObject(frame_77cf5466e50e612953fc7f75db7ee8f4);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__9_Document(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_version = python_pars[0];
PyObject *par_args = python_pars[1];
struct Nuitka_FrameObject *frame_723ac53635997a6b5af5c9e07d302166;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_723ac53635997a6b5af5c9e07d302166 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_723ac53635997a6b5af5c9e07d302166)) {
Py_XDECREF(cache_frame_723ac53635997a6b5af5c9e07d302166);
#if _DEBUG_REFCOUNTS
if (cache_frame_723ac53635997a6b5af5c9e07d302166 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_723ac53635997a6b5af5c9e07d302166 = MAKE_FUNCTION_FRAME(codeobj_723ac53635997a6b5af5c9e07d302166, module_odf$office, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_723ac53635997a6b5af5c9e07d302166->m_type_description == NULL);
frame_723ac53635997a6b5af5c9e07d302166 = cache_frame_723ac53635997a6b5af5c9e07d302166;
// Push the new frame as the currently active one.
pushFrameStack(frame_723ac53635997a6b5af5c9e07d302166);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_723ac53635997a6b5af5c9e07d302166) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 51;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 51;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[12];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 2 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[13];
CHECK_OBJECT(par_version);
tmp_dict_value_1 = par_version;
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 51;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_723ac53635997a6b5af5c9e07d302166);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_723ac53635997a6b5af5c9e07d302166);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_723ac53635997a6b5af5c9e07d302166);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_723ac53635997a6b5af5c9e07d302166, exception_lineno);
} else if (exception_tb->tb_frame != &frame_723ac53635997a6b5af5c9e07d302166->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_723ac53635997a6b5af5c9e07d302166, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_723ac53635997a6b5af5c9e07d302166,
type_description_1,
par_version,
par_args
);
// Release cached frame if used for exception.
if (frame_723ac53635997a6b5af5c9e07d302166 == cache_frame_723ac53635997a6b5af5c9e07d302166) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_723ac53635997a6b5af5c9e07d302166);
cache_frame_723ac53635997a6b5af5c9e07d302166 = NULL;
}
assertFrameObject(frame_723ac53635997a6b5af5c9e07d302166);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__10_DocumentContent(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_version = python_pars[0];
PyObject *par_args = python_pars[1];
struct Nuitka_FrameObject *frame_935ae013c5d20c1f71c9d42cfe23245c;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_935ae013c5d20c1f71c9d42cfe23245c = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_935ae013c5d20c1f71c9d42cfe23245c)) {
Py_XDECREF(cache_frame_935ae013c5d20c1f71c9d42cfe23245c);
#if _DEBUG_REFCOUNTS
if (cache_frame_935ae013c5d20c1f71c9d42cfe23245c == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_935ae013c5d20c1f71c9d42cfe23245c = MAKE_FUNCTION_FRAME(codeobj_935ae013c5d20c1f71c9d42cfe23245c, module_odf$office, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_935ae013c5d20c1f71c9d42cfe23245c->m_type_description == NULL);
frame_935ae013c5d20c1f71c9d42cfe23245c = cache_frame_935ae013c5d20c1f71c9d42cfe23245c;
// Push the new frame as the currently active one.
pushFrameStack(frame_935ae013c5d20c1f71c9d42cfe23245c);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_935ae013c5d20c1f71c9d42cfe23245c) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 54;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 54;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[14];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 2 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[13];
CHECK_OBJECT(par_version);
tmp_dict_value_1 = par_version;
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 54;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_935ae013c5d20c1f71c9d42cfe23245c);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_935ae013c5d20c1f71c9d42cfe23245c);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_935ae013c5d20c1f71c9d42cfe23245c);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_935ae013c5d20c1f71c9d42cfe23245c, exception_lineno);
} else if (exception_tb->tb_frame != &frame_935ae013c5d20c1f71c9d42cfe23245c->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_935ae013c5d20c1f71c9d42cfe23245c, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_935ae013c5d20c1f71c9d42cfe23245c,
type_description_1,
par_version,
par_args
);
// Release cached frame if used for exception.
if (frame_935ae013c5d20c1f71c9d42cfe23245c == cache_frame_935ae013c5d20c1f71c9d42cfe23245c) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_935ae013c5d20c1f71c9d42cfe23245c);
cache_frame_935ae013c5d20c1f71c9d42cfe23245c = NULL;
}
assertFrameObject(frame_935ae013c5d20c1f71c9d42cfe23245c);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__11_DocumentMeta(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_version = python_pars[0];
PyObject *par_args = python_pars[1];
struct Nuitka_FrameObject *frame_1d18808f7ff5e7625a980d80d0ac6e33;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_1d18808f7ff5e7625a980d80d0ac6e33 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_1d18808f7ff5e7625a980d80d0ac6e33)) {
Py_XDECREF(cache_frame_1d18808f7ff5e7625a980d80d0ac6e33);
#if _DEBUG_REFCOUNTS
if (cache_frame_1d18808f7ff5e7625a980d80d0ac6e33 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_1d18808f7ff5e7625a980d80d0ac6e33 = MAKE_FUNCTION_FRAME(codeobj_1d18808f7ff5e7625a980d80d0ac6e33, module_odf$office, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_1d18808f7ff5e7625a980d80d0ac6e33->m_type_description == NULL);
frame_1d18808f7ff5e7625a980d80d0ac6e33 = cache_frame_1d18808f7ff5e7625a980d80d0ac6e33;
// Push the new frame as the currently active one.
pushFrameStack(frame_1d18808f7ff5e7625a980d80d0ac6e33);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_1d18808f7ff5e7625a980d80d0ac6e33) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 57;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 57;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[15];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 2 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[13];
CHECK_OBJECT(par_version);
tmp_dict_value_1 = par_version;
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 57;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_1d18808f7ff5e7625a980d80d0ac6e33);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_1d18808f7ff5e7625a980d80d0ac6e33);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_1d18808f7ff5e7625a980d80d0ac6e33);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_1d18808f7ff5e7625a980d80d0ac6e33, exception_lineno);
} else if (exception_tb->tb_frame != &frame_1d18808f7ff5e7625a980d80d0ac6e33->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_1d18808f7ff5e7625a980d80d0ac6e33, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_1d18808f7ff5e7625a980d80d0ac6e33,
type_description_1,
par_version,
par_args
);
// Release cached frame if used for exception.
if (frame_1d18808f7ff5e7625a980d80d0ac6e33 == cache_frame_1d18808f7ff5e7625a980d80d0ac6e33) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_1d18808f7ff5e7625a980d80d0ac6e33);
cache_frame_1d18808f7ff5e7625a980d80d0ac6e33 = NULL;
}
assertFrameObject(frame_1d18808f7ff5e7625a980d80d0ac6e33);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__12_DocumentSettings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_version = python_pars[0];
PyObject *par_args = python_pars[1];
struct Nuitka_FrameObject *frame_a8c00d42e7d10bacc1bba6f3b9e815e3;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3)) {
Py_XDECREF(cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3);
#if _DEBUG_REFCOUNTS
if (cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3 = MAKE_FUNCTION_FRAME(codeobj_a8c00d42e7d10bacc1bba6f3b9e815e3, module_odf$office, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3->m_type_description == NULL);
frame_a8c00d42e7d10bacc1bba6f3b9e815e3 = cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3;
// Push the new frame as the currently active one.
pushFrameStack(frame_a8c00d42e7d10bacc1bba6f3b9e815e3);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_a8c00d42e7d10bacc1bba6f3b9e815e3) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 60;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 60;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[16];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 2 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[13];
CHECK_OBJECT(par_version);
tmp_dict_value_1 = par_version;
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 60;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_a8c00d42e7d10bacc1bba6f3b9e815e3);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_a8c00d42e7d10bacc1bba6f3b9e815e3);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_a8c00d42e7d10bacc1bba6f3b9e815e3);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_a8c00d42e7d10bacc1bba6f3b9e815e3, exception_lineno);
} else if (exception_tb->tb_frame != &frame_a8c00d42e7d10bacc1bba6f3b9e815e3->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_a8c00d42e7d10bacc1bba6f3b9e815e3, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_a8c00d42e7d10bacc1bba6f3b9e815e3,
type_description_1,
par_version,
par_args
);
// Release cached frame if used for exception.
if (frame_a8c00d42e7d10bacc1bba6f3b9e815e3 == cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3);
cache_frame_a8c00d42e7d10bacc1bba6f3b9e815e3 = NULL;
}
assertFrameObject(frame_a8c00d42e7d10bacc1bba6f3b9e815e3);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__13_DocumentStyles(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_version = python_pars[0];
PyObject *par_args = python_pars[1];
struct Nuitka_FrameObject *frame_a05dc37fa5d0b7580b5aa09b89952cf8;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8)) {
Py_XDECREF(cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8);
#if _DEBUG_REFCOUNTS
if (cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8 = MAKE_FUNCTION_FRAME(codeobj_a05dc37fa5d0b7580b5aa09b89952cf8, module_odf$office, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8->m_type_description == NULL);
frame_a05dc37fa5d0b7580b5aa09b89952cf8 = cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8;
// Push the new frame as the currently active one.
pushFrameStack(frame_a05dc37fa5d0b7580b5aa09b89952cf8);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_a05dc37fa5d0b7580b5aa09b89952cf8) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 63;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 63;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[17];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 2 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[13];
CHECK_OBJECT(par_version);
tmp_dict_value_1 = par_version;
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 63;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_a05dc37fa5d0b7580b5aa09b89952cf8);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_a05dc37fa5d0b7580b5aa09b89952cf8);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_a05dc37fa5d0b7580b5aa09b89952cf8);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_a05dc37fa5d0b7580b5aa09b89952cf8, exception_lineno);
} else if (exception_tb->tb_frame != &frame_a05dc37fa5d0b7580b5aa09b89952cf8->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_a05dc37fa5d0b7580b5aa09b89952cf8, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_a05dc37fa5d0b7580b5aa09b89952cf8,
type_description_1,
par_version,
par_args
);
// Release cached frame if used for exception.
if (frame_a05dc37fa5d0b7580b5aa09b89952cf8 == cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8);
cache_frame_a05dc37fa5d0b7580b5aa09b89952cf8 = NULL;
}
assertFrameObject(frame_a05dc37fa5d0b7580b5aa09b89952cf8);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_version);
Py_DECREF(par_version);
par_version = NULL;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__14_Drawing(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_6febd2ce22c3e8ae7afaed40f9be0a6e;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e)) {
Py_XDECREF(cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e);
#if _DEBUG_REFCOUNTS
if (cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e = MAKE_FUNCTION_FRAME(codeobj_6febd2ce22c3e8ae7afaed40f9be0a6e, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e->m_type_description == NULL);
frame_6febd2ce22c3e8ae7afaed40f9be0a6e = cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e;
// Push the new frame as the currently active one.
pushFrameStack(frame_6febd2ce22c3e8ae7afaed40f9be0a6e);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_6febd2ce22c3e8ae7afaed40f9be0a6e) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 66;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 66;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[18];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 66;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_6febd2ce22c3e8ae7afaed40f9be0a6e);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_6febd2ce22c3e8ae7afaed40f9be0a6e);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_6febd2ce22c3e8ae7afaed40f9be0a6e);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_6febd2ce22c3e8ae7afaed40f9be0a6e, exception_lineno);
} else if (exception_tb->tb_frame != &frame_6febd2ce22c3e8ae7afaed40f9be0a6e->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_6febd2ce22c3e8ae7afaed40f9be0a6e, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_6febd2ce22c3e8ae7afaed40f9be0a6e,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_6febd2ce22c3e8ae7afaed40f9be0a6e == cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e);
cache_frame_6febd2ce22c3e8ae7afaed40f9be0a6e = NULL;
}
assertFrameObject(frame_6febd2ce22c3e8ae7afaed40f9be0a6e);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__15_EventListeners(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_e01965a7d4ee2acb53d50ca23a1a8e8f;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f)) {
Py_XDECREF(cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f);
#if _DEBUG_REFCOUNTS
if (cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f = MAKE_FUNCTION_FRAME(codeobj_e01965a7d4ee2acb53d50ca23a1a8e8f, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f->m_type_description == NULL);
frame_e01965a7d4ee2acb53d50ca23a1a8e8f = cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f;
// Push the new frame as the currently active one.
pushFrameStack(frame_e01965a7d4ee2acb53d50ca23a1a8e8f);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_e01965a7d4ee2acb53d50ca23a1a8e8f) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 69;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 69;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[19];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 69;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_e01965a7d4ee2acb53d50ca23a1a8e8f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_e01965a7d4ee2acb53d50ca23a1a8e8f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_e01965a7d4ee2acb53d50ca23a1a8e8f);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_e01965a7d4ee2acb53d50ca23a1a8e8f, exception_lineno);
} else if (exception_tb->tb_frame != &frame_e01965a7d4ee2acb53d50ca23a1a8e8f->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_e01965a7d4ee2acb53d50ca23a1a8e8f, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_e01965a7d4ee2acb53d50ca23a1a8e8f,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_e01965a7d4ee2acb53d50ca23a1a8e8f == cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f);
cache_frame_e01965a7d4ee2acb53d50ca23a1a8e8f = NULL;
}
assertFrameObject(frame_e01965a7d4ee2acb53d50ca23a1a8e8f);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__16_FontFaceDecls(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_66d9769f5db8a4e20bdea3992aa6a804;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_66d9769f5db8a4e20bdea3992aa6a804 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_66d9769f5db8a4e20bdea3992aa6a804)) {
Py_XDECREF(cache_frame_66d9769f5db8a4e20bdea3992aa6a804);
#if _DEBUG_REFCOUNTS
if (cache_frame_66d9769f5db8a4e20bdea3992aa6a804 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_66d9769f5db8a4e20bdea3992aa6a804 = MAKE_FUNCTION_FRAME(codeobj_66d9769f5db8a4e20bdea3992aa6a804, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_66d9769f5db8a4e20bdea3992aa6a804->m_type_description == NULL);
frame_66d9769f5db8a4e20bdea3992aa6a804 = cache_frame_66d9769f5db8a4e20bdea3992aa6a804;
// Push the new frame as the currently active one.
pushFrameStack(frame_66d9769f5db8a4e20bdea3992aa6a804);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_66d9769f5db8a4e20bdea3992aa6a804) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 72;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 72;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[20];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 72;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_66d9769f5db8a4e20bdea3992aa6a804);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_66d9769f5db8a4e20bdea3992aa6a804);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_66d9769f5db8a4e20bdea3992aa6a804);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_66d9769f5db8a4e20bdea3992aa6a804, exception_lineno);
} else if (exception_tb->tb_frame != &frame_66d9769f5db8a4e20bdea3992aa6a804->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_66d9769f5db8a4e20bdea3992aa6a804, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_66d9769f5db8a4e20bdea3992aa6a804,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_66d9769f5db8a4e20bdea3992aa6a804 == cache_frame_66d9769f5db8a4e20bdea3992aa6a804) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_66d9769f5db8a4e20bdea3992aa6a804);
cache_frame_66d9769f5db8a4e20bdea3992aa6a804 = NULL;
}
assertFrameObject(frame_66d9769f5db8a4e20bdea3992aa6a804);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__17_Forms(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_7f2a419759912addd095be93652f4480;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_7f2a419759912addd095be93652f4480 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_7f2a419759912addd095be93652f4480)) {
Py_XDECREF(cache_frame_7f2a419759912addd095be93652f4480);
#if _DEBUG_REFCOUNTS
if (cache_frame_7f2a419759912addd095be93652f4480 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_7f2a419759912addd095be93652f4480 = MAKE_FUNCTION_FRAME(codeobj_7f2a419759912addd095be93652f4480, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_7f2a419759912addd095be93652f4480->m_type_description == NULL);
frame_7f2a419759912addd095be93652f4480 = cache_frame_7f2a419759912addd095be93652f4480;
// Push the new frame as the currently active one.
pushFrameStack(frame_7f2a419759912addd095be93652f4480);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_7f2a419759912addd095be93652f4480) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 75;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 75;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[21];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 75;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_7f2a419759912addd095be93652f4480);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_7f2a419759912addd095be93652f4480);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_7f2a419759912addd095be93652f4480);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_7f2a419759912addd095be93652f4480, exception_lineno);
} else if (exception_tb->tb_frame != &frame_7f2a419759912addd095be93652f4480->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_7f2a419759912addd095be93652f4480, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_7f2a419759912addd095be93652f4480,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_7f2a419759912addd095be93652f4480 == cache_frame_7f2a419759912addd095be93652f4480) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_7f2a419759912addd095be93652f4480);
cache_frame_7f2a419759912addd095be93652f4480 = NULL;
}
assertFrameObject(frame_7f2a419759912addd095be93652f4480);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__18_Image(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_91f1758e0dd3616faec1babe72520424;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_91f1758e0dd3616faec1babe72520424 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_91f1758e0dd3616faec1babe72520424)) {
Py_XDECREF(cache_frame_91f1758e0dd3616faec1babe72520424);
#if _DEBUG_REFCOUNTS
if (cache_frame_91f1758e0dd3616faec1babe72520424 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_91f1758e0dd3616faec1babe72520424 = MAKE_FUNCTION_FRAME(codeobj_91f1758e0dd3616faec1babe72520424, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_91f1758e0dd3616faec1babe72520424->m_type_description == NULL);
frame_91f1758e0dd3616faec1babe72520424 = cache_frame_91f1758e0dd3616faec1babe72520424;
// Push the new frame as the currently active one.
pushFrameStack(frame_91f1758e0dd3616faec1babe72520424);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_91f1758e0dd3616faec1babe72520424) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 78;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 78;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[22];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 78;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_91f1758e0dd3616faec1babe72520424);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_91f1758e0dd3616faec1babe72520424);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_91f1758e0dd3616faec1babe72520424);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_91f1758e0dd3616faec1babe72520424, exception_lineno);
} else if (exception_tb->tb_frame != &frame_91f1758e0dd3616faec1babe72520424->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_91f1758e0dd3616faec1babe72520424, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_91f1758e0dd3616faec1babe72520424,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_91f1758e0dd3616faec1babe72520424 == cache_frame_91f1758e0dd3616faec1babe72520424) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_91f1758e0dd3616faec1babe72520424);
cache_frame_91f1758e0dd3616faec1babe72520424 = NULL;
}
assertFrameObject(frame_91f1758e0dd3616faec1babe72520424);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__19_MasterStyles(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_55890a31d951ef738738d564ab493cc5;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_55890a31d951ef738738d564ab493cc5 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_55890a31d951ef738738d564ab493cc5)) {
Py_XDECREF(cache_frame_55890a31d951ef738738d564ab493cc5);
#if _DEBUG_REFCOUNTS
if (cache_frame_55890a31d951ef738738d564ab493cc5 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_55890a31d951ef738738d564ab493cc5 = MAKE_FUNCTION_FRAME(codeobj_55890a31d951ef738738d564ab493cc5, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_55890a31d951ef738738d564ab493cc5->m_type_description == NULL);
frame_55890a31d951ef738738d564ab493cc5 = cache_frame_55890a31d951ef738738d564ab493cc5;
// Push the new frame as the currently active one.
pushFrameStack(frame_55890a31d951ef738738d564ab493cc5);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_55890a31d951ef738738d564ab493cc5) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 81;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 81;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[23];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 81;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_55890a31d951ef738738d564ab493cc5);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_55890a31d951ef738738d564ab493cc5);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_55890a31d951ef738738d564ab493cc5);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_55890a31d951ef738738d564ab493cc5, exception_lineno);
} else if (exception_tb->tb_frame != &frame_55890a31d951ef738738d564ab493cc5->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_55890a31d951ef738738d564ab493cc5, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_55890a31d951ef738738d564ab493cc5,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_55890a31d951ef738738d564ab493cc5 == cache_frame_55890a31d951ef738738d564ab493cc5) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_55890a31d951ef738738d564ab493cc5);
cache_frame_55890a31d951ef738738d564ab493cc5 = NULL;
}
assertFrameObject(frame_55890a31d951ef738738d564ab493cc5);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__20_Meta(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_ecf29d69a4f6d2d6682518c2cfb2ec3a;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a)) {
Py_XDECREF(cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a);
#if _DEBUG_REFCOUNTS
if (cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a = MAKE_FUNCTION_FRAME(codeobj_ecf29d69a4f6d2d6682518c2cfb2ec3a, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a->m_type_description == NULL);
frame_ecf29d69a4f6d2d6682518c2cfb2ec3a = cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a;
// Push the new frame as the currently active one.
pushFrameStack(frame_ecf29d69a4f6d2d6682518c2cfb2ec3a);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_ecf29d69a4f6d2d6682518c2cfb2ec3a) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 84;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 84;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[24];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 84;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_ecf29d69a4f6d2d6682518c2cfb2ec3a);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_ecf29d69a4f6d2d6682518c2cfb2ec3a);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_ecf29d69a4f6d2d6682518c2cfb2ec3a);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_ecf29d69a4f6d2d6682518c2cfb2ec3a, exception_lineno);
} else if (exception_tb->tb_frame != &frame_ecf29d69a4f6d2d6682518c2cfb2ec3a->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_ecf29d69a4f6d2d6682518c2cfb2ec3a, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_ecf29d69a4f6d2d6682518c2cfb2ec3a,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_ecf29d69a4f6d2d6682518c2cfb2ec3a == cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a);
cache_frame_ecf29d69a4f6d2d6682518c2cfb2ec3a = NULL;
}
assertFrameObject(frame_ecf29d69a4f6d2d6682518c2cfb2ec3a);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__21_Presentation(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_235c8e78abca15fd1d1e83e9a2b433f1;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_235c8e78abca15fd1d1e83e9a2b433f1 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_235c8e78abca15fd1d1e83e9a2b433f1)) {
Py_XDECREF(cache_frame_235c8e78abca15fd1d1e83e9a2b433f1);
#if _DEBUG_REFCOUNTS
if (cache_frame_235c8e78abca15fd1d1e83e9a2b433f1 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_235c8e78abca15fd1d1e83e9a2b433f1 = MAKE_FUNCTION_FRAME(codeobj_235c8e78abca15fd1d1e83e9a2b433f1, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_235c8e78abca15fd1d1e83e9a2b433f1->m_type_description == NULL);
frame_235c8e78abca15fd1d1e83e9a2b433f1 = cache_frame_235c8e78abca15fd1d1e83e9a2b433f1;
// Push the new frame as the currently active one.
pushFrameStack(frame_235c8e78abca15fd1d1e83e9a2b433f1);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_235c8e78abca15fd1d1e83e9a2b433f1) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 87;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 87;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[25];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 87;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_235c8e78abca15fd1d1e83e9a2b433f1);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_235c8e78abca15fd1d1e83e9a2b433f1);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_235c8e78abca15fd1d1e83e9a2b433f1);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_235c8e78abca15fd1d1e83e9a2b433f1, exception_lineno);
} else if (exception_tb->tb_frame != &frame_235c8e78abca15fd1d1e83e9a2b433f1->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_235c8e78abca15fd1d1e83e9a2b433f1, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_235c8e78abca15fd1d1e83e9a2b433f1,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_235c8e78abca15fd1d1e83e9a2b433f1 == cache_frame_235c8e78abca15fd1d1e83e9a2b433f1) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_235c8e78abca15fd1d1e83e9a2b433f1);
cache_frame_235c8e78abca15fd1d1e83e9a2b433f1 = NULL;
}
assertFrameObject(frame_235c8e78abca15fd1d1e83e9a2b433f1);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__22_Script(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_7e906560a40ebdc264feb9ebe5b43075;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_7e906560a40ebdc264feb9ebe5b43075 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_7e906560a40ebdc264feb9ebe5b43075)) {
Py_XDECREF(cache_frame_7e906560a40ebdc264feb9ebe5b43075);
#if _DEBUG_REFCOUNTS
if (cache_frame_7e906560a40ebdc264feb9ebe5b43075 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_7e906560a40ebdc264feb9ebe5b43075 = MAKE_FUNCTION_FRAME(codeobj_7e906560a40ebdc264feb9ebe5b43075, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_7e906560a40ebdc264feb9ebe5b43075->m_type_description == NULL);
frame_7e906560a40ebdc264feb9ebe5b43075 = cache_frame_7e906560a40ebdc264feb9ebe5b43075;
// Push the new frame as the currently active one.
pushFrameStack(frame_7e906560a40ebdc264feb9ebe5b43075);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_7e906560a40ebdc264feb9ebe5b43075) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 90;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 90;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[26];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 90;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_7e906560a40ebdc264feb9ebe5b43075);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_7e906560a40ebdc264feb9ebe5b43075);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_7e906560a40ebdc264feb9ebe5b43075);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_7e906560a40ebdc264feb9ebe5b43075, exception_lineno);
} else if (exception_tb->tb_frame != &frame_7e906560a40ebdc264feb9ebe5b43075->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_7e906560a40ebdc264feb9ebe5b43075, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_7e906560a40ebdc264feb9ebe5b43075,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_7e906560a40ebdc264feb9ebe5b43075 == cache_frame_7e906560a40ebdc264feb9ebe5b43075) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_7e906560a40ebdc264feb9ebe5b43075);
cache_frame_7e906560a40ebdc264feb9ebe5b43075 = NULL;
}
assertFrameObject(frame_7e906560a40ebdc264feb9ebe5b43075);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__23_Scripts(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_54a7913d8c2090921701ddce412d43ac;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_54a7913d8c2090921701ddce412d43ac = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_54a7913d8c2090921701ddce412d43ac)) {
Py_XDECREF(cache_frame_54a7913d8c2090921701ddce412d43ac);
#if _DEBUG_REFCOUNTS
if (cache_frame_54a7913d8c2090921701ddce412d43ac == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_54a7913d8c2090921701ddce412d43ac = MAKE_FUNCTION_FRAME(codeobj_54a7913d8c2090921701ddce412d43ac, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_54a7913d8c2090921701ddce412d43ac->m_type_description == NULL);
frame_54a7913d8c2090921701ddce412d43ac = cache_frame_54a7913d8c2090921701ddce412d43ac;
// Push the new frame as the currently active one.
pushFrameStack(frame_54a7913d8c2090921701ddce412d43ac);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_54a7913d8c2090921701ddce412d43ac) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 93;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 93;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[27];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 93;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_54a7913d8c2090921701ddce412d43ac);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_54a7913d8c2090921701ddce412d43ac);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_54a7913d8c2090921701ddce412d43ac);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_54a7913d8c2090921701ddce412d43ac, exception_lineno);
} else if (exception_tb->tb_frame != &frame_54a7913d8c2090921701ddce412d43ac->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_54a7913d8c2090921701ddce412d43ac, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_54a7913d8c2090921701ddce412d43ac,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_54a7913d8c2090921701ddce412d43ac == cache_frame_54a7913d8c2090921701ddce412d43ac) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_54a7913d8c2090921701ddce412d43ac);
cache_frame_54a7913d8c2090921701ddce412d43ac = NULL;
}
assertFrameObject(frame_54a7913d8c2090921701ddce412d43ac);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__24_Settings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_3050d0d81a0853b055a92d430e54fab1;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_3050d0d81a0853b055a92d430e54fab1 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_3050d0d81a0853b055a92d430e54fab1)) {
Py_XDECREF(cache_frame_3050d0d81a0853b055a92d430e54fab1);
#if _DEBUG_REFCOUNTS
if (cache_frame_3050d0d81a0853b055a92d430e54fab1 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_3050d0d81a0853b055a92d430e54fab1 = MAKE_FUNCTION_FRAME(codeobj_3050d0d81a0853b055a92d430e54fab1, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_3050d0d81a0853b055a92d430e54fab1->m_type_description == NULL);
frame_3050d0d81a0853b055a92d430e54fab1 = cache_frame_3050d0d81a0853b055a92d430e54fab1;
// Push the new frame as the currently active one.
pushFrameStack(frame_3050d0d81a0853b055a92d430e54fab1);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_3050d0d81a0853b055a92d430e54fab1) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 96;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 96;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[28];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 96;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_3050d0d81a0853b055a92d430e54fab1);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_3050d0d81a0853b055a92d430e54fab1);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_3050d0d81a0853b055a92d430e54fab1);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_3050d0d81a0853b055a92d430e54fab1, exception_lineno);
} else if (exception_tb->tb_frame != &frame_3050d0d81a0853b055a92d430e54fab1->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_3050d0d81a0853b055a92d430e54fab1, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_3050d0d81a0853b055a92d430e54fab1,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_3050d0d81a0853b055a92d430e54fab1 == cache_frame_3050d0d81a0853b055a92d430e54fab1) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_3050d0d81a0853b055a92d430e54fab1);
cache_frame_3050d0d81a0853b055a92d430e54fab1 = NULL;
}
assertFrameObject(frame_3050d0d81a0853b055a92d430e54fab1);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__25_Spreadsheet(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_e113a5eaca056cde69105441f5d7392a;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_e113a5eaca056cde69105441f5d7392a = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_e113a5eaca056cde69105441f5d7392a)) {
Py_XDECREF(cache_frame_e113a5eaca056cde69105441f5d7392a);
#if _DEBUG_REFCOUNTS
if (cache_frame_e113a5eaca056cde69105441f5d7392a == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_e113a5eaca056cde69105441f5d7392a = MAKE_FUNCTION_FRAME(codeobj_e113a5eaca056cde69105441f5d7392a, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_e113a5eaca056cde69105441f5d7392a->m_type_description == NULL);
frame_e113a5eaca056cde69105441f5d7392a = cache_frame_e113a5eaca056cde69105441f5d7392a;
// Push the new frame as the currently active one.
pushFrameStack(frame_e113a5eaca056cde69105441f5d7392a);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_e113a5eaca056cde69105441f5d7392a) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 99;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 99;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[29];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 99;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_e113a5eaca056cde69105441f5d7392a);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_e113a5eaca056cde69105441f5d7392a);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_e113a5eaca056cde69105441f5d7392a);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_e113a5eaca056cde69105441f5d7392a, exception_lineno);
} else if (exception_tb->tb_frame != &frame_e113a5eaca056cde69105441f5d7392a->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_e113a5eaca056cde69105441f5d7392a, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_e113a5eaca056cde69105441f5d7392a,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_e113a5eaca056cde69105441f5d7392a == cache_frame_e113a5eaca056cde69105441f5d7392a) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_e113a5eaca056cde69105441f5d7392a);
cache_frame_e113a5eaca056cde69105441f5d7392a = NULL;
}
assertFrameObject(frame_e113a5eaca056cde69105441f5d7392a);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__26_Styles(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_202992c4f8b7f72ac9b2cc5dd77e41b9;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9)) {
Py_XDECREF(cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9);
#if _DEBUG_REFCOUNTS
if (cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9 = MAKE_FUNCTION_FRAME(codeobj_202992c4f8b7f72ac9b2cc5dd77e41b9, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9->m_type_description == NULL);
frame_202992c4f8b7f72ac9b2cc5dd77e41b9 = cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9;
// Push the new frame as the currently active one.
pushFrameStack(frame_202992c4f8b7f72ac9b2cc5dd77e41b9);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_202992c4f8b7f72ac9b2cc5dd77e41b9) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 102;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 102;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[30];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 102;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_202992c4f8b7f72ac9b2cc5dd77e41b9);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_202992c4f8b7f72ac9b2cc5dd77e41b9);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_202992c4f8b7f72ac9b2cc5dd77e41b9);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_202992c4f8b7f72ac9b2cc5dd77e41b9, exception_lineno);
} else if (exception_tb->tb_frame != &frame_202992c4f8b7f72ac9b2cc5dd77e41b9->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_202992c4f8b7f72ac9b2cc5dd77e41b9, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_202992c4f8b7f72ac9b2cc5dd77e41b9,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_202992c4f8b7f72ac9b2cc5dd77e41b9 == cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9);
cache_frame_202992c4f8b7f72ac9b2cc5dd77e41b9 = NULL;
}
assertFrameObject(frame_202992c4f8b7f72ac9b2cc5dd77e41b9);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_odf$office$$$function__27_Text(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_args = python_pars[0];
struct Nuitka_FrameObject *frame_9814c7b94455e9e4aa129b17104fe5c1;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_9814c7b94455e9e4aa129b17104fe5c1 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_9814c7b94455e9e4aa129b17104fe5c1)) {
Py_XDECREF(cache_frame_9814c7b94455e9e4aa129b17104fe5c1);
#if _DEBUG_REFCOUNTS
if (cache_frame_9814c7b94455e9e4aa129b17104fe5c1 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_9814c7b94455e9e4aa129b17104fe5c1 = MAKE_FUNCTION_FRAME(codeobj_9814c7b94455e9e4aa129b17104fe5c1, module_odf$office, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_9814c7b94455e9e4aa129b17104fe5c1->m_type_description == NULL);
frame_9814c7b94455e9e4aa129b17104fe5c1 = cache_frame_9814c7b94455e9e4aa129b17104fe5c1;
// Push the new frame as the currently active one.
pushFrameStack(frame_9814c7b94455e9e4aa129b17104fe5c1);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_9814c7b94455e9e4aa129b17104fe5c1) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5]);
if (unlikely(tmp_dircall_arg1_1 == NULL)) {
tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]);
}
if (tmp_dircall_arg1_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 105;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_key_1 = mod_consts[1];
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 105;
type_description_1 = "o";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = PyTuple_New(2);
PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = mod_consts[31];
PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_1);
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
CHECK_OBJECT(par_args);
tmp_dircall_arg3_1 = par_args;
Py_INCREF(tmp_dircall_arg1_1);
Py_INCREF(tmp_dircall_arg3_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___main__$$$function__6_complex_call_helper_keywords_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 105;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_9814c7b94455e9e4aa129b17104fe5c1);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_9814c7b94455e9e4aa129b17104fe5c1);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_9814c7b94455e9e4aa129b17104fe5c1);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_9814c7b94455e9e4aa129b17104fe5c1, exception_lineno);
} else if (exception_tb->tb_frame != &frame_9814c7b94455e9e4aa129b17104fe5c1->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_9814c7b94455e9e4aa129b17104fe5c1, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_9814c7b94455e9e4aa129b17104fe5c1,
type_description_1,
par_args
);
// Release cached frame if used for exception.
if (frame_9814c7b94455e9e4aa129b17104fe5c1 == cache_frame_9814c7b94455e9e4aa129b17104fe5c1) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_9814c7b94455e9e4aa129b17104fe5c1);
cache_frame_9814c7b94455e9e4aa129b17104fe5c1 = NULL;
}
assertFrameObject(frame_9814c7b94455e9e4aa129b17104fe5c1);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_args);
Py_DECREF(par_args);
par_args = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__10_DocumentContent(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__10_DocumentContent,
mod_consts[56],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_935ae013c5d20c1f71c9d42cfe23245c,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__11_DocumentMeta(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__11_DocumentMeta,
mod_consts[57],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_1d18808f7ff5e7625a980d80d0ac6e33,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__12_DocumentSettings(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__12_DocumentSettings,
mod_consts[58],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_a8c00d42e7d10bacc1bba6f3b9e815e3,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__13_DocumentStyles(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__13_DocumentStyles,
mod_consts[59],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_a05dc37fa5d0b7580b5aa09b89952cf8,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__14_Drawing() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__14_Drawing,
mod_consts[60],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_6febd2ce22c3e8ae7afaed40f9be0a6e,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__15_EventListeners() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__15_EventListeners,
mod_consts[61],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_e01965a7d4ee2acb53d50ca23a1a8e8f,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__16_FontFaceDecls() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__16_FontFaceDecls,
mod_consts[62],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_66d9769f5db8a4e20bdea3992aa6a804,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__17_Forms() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__17_Forms,
mod_consts[63],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_7f2a419759912addd095be93652f4480,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__18_Image() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__18_Image,
mod_consts[64],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_91f1758e0dd3616faec1babe72520424,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__19_MasterStyles() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__19_MasterStyles,
mod_consts[65],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_55890a31d951ef738738d564ab493cc5,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__1_Annotation() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__1_Annotation,
mod_consts[46],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_b5992c2571f69f7060ce37481e664f5f,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__20_Meta() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__20_Meta,
mod_consts[66],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_ecf29d69a4f6d2d6682518c2cfb2ec3a,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__21_Presentation() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__21_Presentation,
mod_consts[67],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_235c8e78abca15fd1d1e83e9a2b433f1,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__22_Script() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__22_Script,
mod_consts[68],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_7e906560a40ebdc264feb9ebe5b43075,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__23_Scripts() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__23_Scripts,
mod_consts[69],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_54a7913d8c2090921701ddce412d43ac,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__24_Settings() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__24_Settings,
mod_consts[70],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_3050d0d81a0853b055a92d430e54fab1,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__25_Spreadsheet() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__25_Spreadsheet,
mod_consts[71],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_e113a5eaca056cde69105441f5d7392a,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__26_Styles() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__26_Styles,
mod_consts[72],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_202992c4f8b7f72ac9b2cc5dd77e41b9,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__27_Text() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__27_Text,
mod_consts[73],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_9814c7b94455e9e4aa129b17104fe5c1,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__2_AnnotationEnd() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__2_AnnotationEnd,
mod_consts[47],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_de4c1a822da9a6806b3bab781118e9f8,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__3_AutomaticStyles() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__3_AutomaticStyles,
mod_consts[48],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_6ced9d97fe7c988a8fdb2702a23d7a91,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__4_BinaryData() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__4_BinaryData,
mod_consts[49],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_51618898c44cc6108c56644ddcc19d0f,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__5_Body() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__5_Body,
mod_consts[50],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_c925519d733aa3ef51d655e6e3f0d3be,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__6_ChangeInfo() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__6_ChangeInfo,
mod_consts[51],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_d94b910f4fc7393cdc2064d15ef1b192,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__7_Chart() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__7_Chart,
mod_consts[52],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_1dc6b40eba990cd8c0bfecdfd42660bb,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__8_DdeSource() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__8_DdeSource,
mod_consts[53],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_77cf5466e50e612953fc7f75db7ee8f4,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_odf$office$$$function__9_Document(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_odf$office$$$function__9_Document,
mod_consts[55],
#if PYTHON_VERSION >= 0x300
NULL,
#endif
codeobj_723ac53635997a6b5af5c9e07d302166,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_odf$office,
NULL,
NULL,
0
);
return (PyObject *)result;
}
extern void _initCompiledCellType();
extern void _initCompiledGeneratorType();
extern void _initCompiledFunctionType();
extern void _initCompiledMethodType();
extern void _initCompiledFrameType();
extern PyTypeObject Nuitka_Loader_Type;
#ifdef _NUITKA_PLUGIN_DILL_ENABLED
// Provide a way to create find a function via its C code and create it back
// in another process, useful for multiprocessing extensions like dill
extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function);
function_impl_code functable_odf$office[] = {
impl_odf$office$$$function__1_Annotation,
impl_odf$office$$$function__2_AnnotationEnd,
impl_odf$office$$$function__3_AutomaticStyles,
impl_odf$office$$$function__4_BinaryData,
impl_odf$office$$$function__5_Body,
impl_odf$office$$$function__6_ChangeInfo,
impl_odf$office$$$function__7_Chart,
impl_odf$office$$$function__8_DdeSource,
impl_odf$office$$$function__9_Document,
impl_odf$office$$$function__10_DocumentContent,
impl_odf$office$$$function__11_DocumentMeta,
impl_odf$office$$$function__12_DocumentSettings,
impl_odf$office$$$function__13_DocumentStyles,
impl_odf$office$$$function__14_Drawing,
impl_odf$office$$$function__15_EventListeners,
impl_odf$office$$$function__16_FontFaceDecls,
impl_odf$office$$$function__17_Forms,
impl_odf$office$$$function__18_Image,
impl_odf$office$$$function__19_MasterStyles,
impl_odf$office$$$function__20_Meta,
impl_odf$office$$$function__21_Presentation,
impl_odf$office$$$function__22_Script,
impl_odf$office$$$function__23_Scripts,
impl_odf$office$$$function__24_Settings,
impl_odf$office$$$function__25_Spreadsheet,
impl_odf$office$$$function__26_Styles,
impl_odf$office$$$function__27_Text,
NULL
};
static char const *_reduce_compiled_function_argnames[] = {
"func",
NULL
};
static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) {
PyObject *func;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) {
return NULL;
}
if (Nuitka_Function_Check(func) == false) {
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function");
return NULL;
}
struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func;
function_impl_code *current = functable_odf$office;
int offset = 0;
while (*current != NULL) {
if (*current == function->m_c_code) {
break;
}
current += 1;
offset += 1;
}
if (*current == NULL) {
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module.");
return NULL;
}
PyObject *code_object_desc = PyTuple_New(6);
PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename);
PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name);
PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno));
PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames);
PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount));
PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags));
CHECK_OBJECT_DEEP(code_object_desc);
PyObject *result = PyTuple_New(4);
PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset));
PyTuple_SET_ITEM(result, 1, code_object_desc);
PyTuple_SET_ITEM0(result, 2, function->m_defaults);
PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None);
CHECK_OBJECT_DEEP(result);
return result;
}
static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function,
METH_VARARGS | METH_KEYWORDS, NULL};
static char const *_create_compiled_function_argnames[] = {
"func",
"code_object_desc",
"defaults",
"doc",
NULL
};
static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) {
CHECK_OBJECT_DEEP(args);
PyObject *func;
PyObject *code_object_desc;
PyObject *defaults;
PyObject *doc;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) {
return NULL;
}
int offset = PyLong_AsLong(func);
if (offset == -1 && ERROR_OCCURRED()) {
return NULL;
}
if (offset > sizeof(functable_odf$office) || offset < 0) {
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function.");
return NULL;
}
PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0);
PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1);
PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2);
int line_int = PyLong_AsLong(line);
assert(!ERROR_OCCURRED());
PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3);
PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4);
int arg_count_int = PyLong_AsLong(arg_count);
assert(!ERROR_OCCURRED());
PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5);
int flags_int = PyLong_AsLong(flags);
assert(!ERROR_OCCURRED());
PyCodeObject *code_object = MAKE_CODEOBJECT(
filename,
line_int,
flags_int,
function_name,
argnames,
NULL, // freevars
arg_count_int,
0, // TODO: Missing kw_only_count
0 // TODO: Missing pos_only_count
);
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
functable_odf$office[offset],
code_object->co_name,
#if PYTHON_VERSION >= 0x300
NULL, // TODO: Not transferring qualname yet
#endif
code_object,
defaults,
#if PYTHON_VERSION >= 0x300
NULL, // kwdefaults are done on the outside currently
NULL, // TODO: Not transferring annotations
#endif
module_odf$office,
doc,
NULL,
0
);
return (PyObject *)result;
}
static PyMethodDef _method_def_create_compiled_function = {
"create_compiled_function",
(PyCFunction)_create_compiled_function,
METH_VARARGS | METH_KEYWORDS, NULL
};
#endif
// Internal entry point for module code.
PyObject *modulecode_odf$office(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) {
module_odf$office = module;
#ifdef _NUITKA_MODULE
// In case of a stand alone extension module, need to call initialization
// the init here because that's the first and only time we are going to get
// called here.
// Initialize the constant values used.
_initBuiltinModule();
createGlobalConstants();
/* Initialize the compiled types of Nuitka. */
_initCompiledCellType();
_initCompiledGeneratorType();
_initCompiledFunctionType();
_initCompiledMethodType();
_initCompiledFrameType();
#if PYTHON_VERSION < 0x300
_initSlotCompare();
#endif
#if PYTHON_VERSION >= 0x270
_initSlotIternext();
#endif
patchBuiltinModule();
patchTypeComparison();
// Enable meta path based loader if not already done.
#ifdef _NUITKA_TRACE
PRINT_STRING("odf.office: Calling setupMetaPathBasedLoader().\n");
#endif
setupMetaPathBasedLoader();
#if PYTHON_VERSION >= 0x300
patchInspectModule();
#endif
#endif
/* The constants only used by this module are created now. */
#ifdef _NUITKA_TRACE
PRINT_STRING("odf.office: Calling createModuleConstants().\n");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
PRINT_STRING("odf.office: Calling createModuleCodeObjects().\n");
#endif
createModuleCodeObjects();
// PRINT_STRING("in initodf$office\n");
// Create the module object first. There are no methods initially, all are
// added dynamically in actual code only. Also no "__doc__" is initially
// set at this time, as it could not contain NUL characters this way, they
// are instead set in early module code. No "self" for modules, we have no
// use for it.
moduledict_odf$office = MODULE_DICT(module_odf$office);
#ifdef _NUITKA_PLUGIN_DILL_ENABLED
registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function);
#endif
// Set "__compiled__" to what version information we have.
UPDATE_STRING_DICT0(
moduledict_odf$office,
(Nuitka_StringObject *)const_str_plain___compiled__,
Nuitka_dunder_compiled_value
);
// Update "__package__" value to what it ought to be.
{
#if 0
UPDATE_STRING_DICT0(
moduledict_odf$office,
(Nuitka_StringObject *)const_str_plain___package__,
const_str_empty
);
#elif 0
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)const_str_plain___name__);
UPDATE_STRING_DICT0(
moduledict_odf$office,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 0x300
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)const_str_plain___name__);
char const *module_name_cstr = PyString_AS_STRING(module_name);
char const *last_dot = strrchr(module_name_cstr, '.');
if (last_dot != NULL) {
UPDATE_STRING_DICT1(
moduledict_odf$office,
(Nuitka_StringObject *)const_str_plain___package__,
PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr)
);
}
#else
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)const_str_plain___name__);
Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1);
if (dot_index != -1) {
UPDATE_STRING_DICT1(
moduledict_odf$office,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring(module_name, 0, dot_index)
);
}
#endif
#endif
}
CHECK_OBJECT(module_odf$office);
// For deep importing of a module we need to have "__builtins__", so we set
// it ourselves in the same way than CPython does. Note: This must be done
// before the frame object is allocated, or else it may fail.
if (GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) {
PyObject *value = (PyObject *)builtin_module;
// Check if main module, not a dict then but the module itself.
#if !defined(_NUITKA_EXE) || !0
value = PyModule_GetDict(value);
#endif
UPDATE_STRING_DICT0(moduledict_odf$office, (Nuitka_StringObject *)const_str_plain___builtins__, value);
}
#if PYTHON_VERSION >= 0x300
UPDATE_STRING_DICT0(moduledict_odf$office, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type);
#endif
#if PYTHON_VERSION >= 0x340
// Set the "__spec__" value
#if 0
// Main modules just get "None" as spec.
UPDATE_STRING_DICT0(moduledict_odf$office, (Nuitka_StringObject *)const_str_plain___spec__, Py_None);
#else
// Other modules get a "ModuleSpec" from the standard mechanism.
{
PyObject *bootstrap_module = getImportLibBootstrapModule();
CHECK_OBJECT(bootstrap_module);
PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module");
CHECK_OBJECT(_spec_from_module);
PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_odf$office);
Py_DECREF(_spec_from_module);
// We can assume this to never fail, or else we are in trouble anyway.
// CHECK_OBJECT(spec_value);
if (spec_value == NULL) {
PyErr_PrintEx(0);
abort();
}
// Mark the execution in the "__spec__" value.
SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True);
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)const_str_plain___spec__, spec_value);
}
#endif
#endif
// Temp variables if any
struct Nuitka_FrameObject *frame_f50bc24f1c6299f343c0efb456043864;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
bool tmp_result;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = Py_None;
UPDATE_STRING_DICT0(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[32], tmp_assign_source_1);
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = mod_consts[33];
UPDATE_STRING_DICT0(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[34], tmp_assign_source_2);
}
// Frame without reuse.
frame_f50bc24f1c6299f343c0efb456043864 = MAKE_MODULE_FRAME(codeobj_f50bc24f1c6299f343c0efb456043864, module_odf$office);
// Push the new frame as the currently active one, and we should be exclusively
// owning it.
pushFrameStack(frame_f50bc24f1c6299f343c0efb456043864);
assert(Py_REFCNT(frame_f50bc24f1c6299f343c0efb456043864) == 2);
// Framed code:
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_assattr_target_1;
tmp_assattr_name_1 = mod_consts[33];
tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[35]);
if (unlikely(tmp_assattr_target_1 == NULL)) {
tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[35]);
}
assert(!(tmp_assattr_target_1 == NULL));
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[36], tmp_assattr_name_1);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 1;
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_2;
PyObject *tmp_assattr_target_2;
tmp_assattr_name_2 = Py_True;
tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[35]);
if (unlikely(tmp_assattr_target_2 == NULL)) {
tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[35]);
}
assert(!(tmp_assattr_target_2 == NULL));
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[37], tmp_assattr_name_2);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 1;
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assign_source_3;
tmp_assign_source_3 = Py_None;
UPDATE_STRING_DICT0(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[38], tmp_assign_source_3);
}
{
PyObject *tmp_assign_source_4;
PyObject *tmp_import_name_from_1;
PyObject *tmp_name_name_1;
PyObject *tmp_globals_arg_name_1;
PyObject *tmp_locals_arg_name_1;
PyObject *tmp_fromlist_name_1;
PyObject *tmp_level_name_1;
tmp_name_name_1 = mod_consts[39];
tmp_globals_arg_name_1 = (PyObject *)moduledict_odf$office;
tmp_locals_arg_name_1 = Py_None;
tmp_fromlist_name_1 = mod_consts[40];
tmp_level_name_1 = mod_consts[41];
frame_f50bc24f1c6299f343c0efb456043864->m_frame.f_lineno = 21;
tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1);
if (tmp_import_name_from_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 21;
goto frame_exception_exit_1;
}
if (PyModule_Check(tmp_import_name_from_1)) {
tmp_assign_source_4 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_1,
(PyObject *)moduledict_odf$office,
mod_consts[2],
mod_consts[41]
);
} else {
tmp_assign_source_4 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[2]);
}
Py_DECREF(tmp_import_name_from_1);
if (tmp_assign_source_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 21;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_4);
}
{
PyObject *tmp_assign_source_5;
PyObject *tmp_import_name_from_2;
PyObject *tmp_name_name_2;
PyObject *tmp_globals_arg_name_2;
PyObject *tmp_locals_arg_name_2;
PyObject *tmp_fromlist_name_2;
PyObject *tmp_level_name_2;
tmp_name_name_2 = mod_consts[42];
tmp_globals_arg_name_2 = (PyObject *)moduledict_odf$office;
tmp_locals_arg_name_2 = Py_None;
tmp_fromlist_name_2 = mod_consts[43];
tmp_level_name_2 = mod_consts[41];
frame_f50bc24f1c6299f343c0efb456043864->m_frame.f_lineno = 22;
tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2);
if (tmp_import_name_from_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 22;
goto frame_exception_exit_1;
}
if (PyModule_Check(tmp_import_name_from_2)) {
tmp_assign_source_5 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_2,
(PyObject *)moduledict_odf$office,
mod_consts[5],
mod_consts[41]
);
} else {
tmp_assign_source_5 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[5]);
}
Py_DECREF(tmp_import_name_from_2);
if (tmp_assign_source_5 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 22;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[5], tmp_assign_source_5);
}
{
PyObject *tmp_assign_source_6;
PyObject *tmp_import_name_from_3;
PyObject *tmp_name_name_3;
PyObject *tmp_globals_arg_name_3;
PyObject *tmp_locals_arg_name_3;
PyObject *tmp_fromlist_name_3;
PyObject *tmp_level_name_3;
tmp_name_name_3 = mod_consts[44];
tmp_globals_arg_name_3 = (PyObject *)moduledict_odf$office;
tmp_locals_arg_name_3 = Py_None;
tmp_fromlist_name_3 = mod_consts[45];
tmp_level_name_3 = mod_consts[41];
frame_f50bc24f1c6299f343c0efb456043864->m_frame.f_lineno = 23;
tmp_import_name_from_3 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3);
if (tmp_import_name_from_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 23;
goto frame_exception_exit_1;
}
if (PyModule_Check(tmp_import_name_from_3)) {
tmp_assign_source_6 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_3,
(PyObject *)moduledict_odf$office,
mod_consts[0],
mod_consts[41]
);
} else {
tmp_assign_source_6 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[0]);
}
Py_DECREF(tmp_import_name_from_3);
if (tmp_assign_source_6 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 23;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_6);
}
// Restore frame exception if necessary.
#if 0
RESTORE_FRAME_EXCEPTION(frame_f50bc24f1c6299f343c0efb456043864);
#endif
popFrameStack();
assertFrameObject(frame_f50bc24f1c6299f343c0efb456043864);
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_f50bc24f1c6299f343c0efb456043864);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_f50bc24f1c6299f343c0efb456043864, exception_lineno);
} else if (exception_tb->tb_frame != &frame_f50bc24f1c6299f343c0efb456043864->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_f50bc24f1c6299f343c0efb456043864, exception_lineno);
}
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto module_exception_exit;
frame_no_exception_1:;
{
PyObject *tmp_assign_source_7;
tmp_assign_source_7 = MAKE_FUNCTION_odf$office$$$function__1_Annotation();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[46], tmp_assign_source_7);
}
{
PyObject *tmp_assign_source_8;
tmp_assign_source_8 = MAKE_FUNCTION_odf$office$$$function__2_AnnotationEnd();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[47], tmp_assign_source_8);
}
{
PyObject *tmp_assign_source_9;
tmp_assign_source_9 = MAKE_FUNCTION_odf$office$$$function__3_AutomaticStyles();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[48], tmp_assign_source_9);
}
{
PyObject *tmp_assign_source_10;
tmp_assign_source_10 = MAKE_FUNCTION_odf$office$$$function__4_BinaryData();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[49], tmp_assign_source_10);
}
{
PyObject *tmp_assign_source_11;
tmp_assign_source_11 = MAKE_FUNCTION_odf$office$$$function__5_Body();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[50], tmp_assign_source_11);
}
{
PyObject *tmp_assign_source_12;
tmp_assign_source_12 = MAKE_FUNCTION_odf$office$$$function__6_ChangeInfo();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[51], tmp_assign_source_12);
}
{
PyObject *tmp_assign_source_13;
tmp_assign_source_13 = MAKE_FUNCTION_odf$office$$$function__7_Chart();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[52], tmp_assign_source_13);
}
{
PyObject *tmp_assign_source_14;
tmp_assign_source_14 = MAKE_FUNCTION_odf$office$$$function__8_DdeSource();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[53], tmp_assign_source_14);
}
{
PyObject *tmp_assign_source_15;
PyObject *tmp_defaults_1;
tmp_defaults_1 = mod_consts[54];
Py_INCREF(tmp_defaults_1);
tmp_assign_source_15 = MAKE_FUNCTION_odf$office$$$function__9_Document(tmp_defaults_1);
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[55], tmp_assign_source_15);
}
{
PyObject *tmp_assign_source_16;
PyObject *tmp_defaults_2;
tmp_defaults_2 = mod_consts[54];
Py_INCREF(tmp_defaults_2);
tmp_assign_source_16 = MAKE_FUNCTION_odf$office$$$function__10_DocumentContent(tmp_defaults_2);
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[56], tmp_assign_source_16);
}
{
PyObject *tmp_assign_source_17;
PyObject *tmp_defaults_3;
tmp_defaults_3 = mod_consts[54];
Py_INCREF(tmp_defaults_3);
tmp_assign_source_17 = MAKE_FUNCTION_odf$office$$$function__11_DocumentMeta(tmp_defaults_3);
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[57], tmp_assign_source_17);
}
{
PyObject *tmp_assign_source_18;
PyObject *tmp_defaults_4;
tmp_defaults_4 = mod_consts[54];
Py_INCREF(tmp_defaults_4);
tmp_assign_source_18 = MAKE_FUNCTION_odf$office$$$function__12_DocumentSettings(tmp_defaults_4);
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[58], tmp_assign_source_18);
}
{
PyObject *tmp_assign_source_19;
PyObject *tmp_defaults_5;
tmp_defaults_5 = mod_consts[54];
Py_INCREF(tmp_defaults_5);
tmp_assign_source_19 = MAKE_FUNCTION_odf$office$$$function__13_DocumentStyles(tmp_defaults_5);
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[59], tmp_assign_source_19);
}
{
PyObject *tmp_assign_source_20;
tmp_assign_source_20 = MAKE_FUNCTION_odf$office$$$function__14_Drawing();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[60], tmp_assign_source_20);
}
{
PyObject *tmp_assign_source_21;
tmp_assign_source_21 = MAKE_FUNCTION_odf$office$$$function__15_EventListeners();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[61], tmp_assign_source_21);
}
{
PyObject *tmp_assign_source_22;
tmp_assign_source_22 = MAKE_FUNCTION_odf$office$$$function__16_FontFaceDecls();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[62], tmp_assign_source_22);
}
{
PyObject *tmp_assign_source_23;
tmp_assign_source_23 = MAKE_FUNCTION_odf$office$$$function__17_Forms();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[63], tmp_assign_source_23);
}
{
PyObject *tmp_assign_source_24;
tmp_assign_source_24 = MAKE_FUNCTION_odf$office$$$function__18_Image();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[64], tmp_assign_source_24);
}
{
PyObject *tmp_assign_source_25;
tmp_assign_source_25 = MAKE_FUNCTION_odf$office$$$function__19_MasterStyles();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[65], tmp_assign_source_25);
}
{
PyObject *tmp_assign_source_26;
tmp_assign_source_26 = MAKE_FUNCTION_odf$office$$$function__20_Meta();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[66], tmp_assign_source_26);
}
{
PyObject *tmp_assign_source_27;
tmp_assign_source_27 = MAKE_FUNCTION_odf$office$$$function__21_Presentation();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[67], tmp_assign_source_27);
}
{
PyObject *tmp_assign_source_28;
tmp_assign_source_28 = MAKE_FUNCTION_odf$office$$$function__22_Script();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[68], tmp_assign_source_28);
}
{
PyObject *tmp_assign_source_29;
tmp_assign_source_29 = MAKE_FUNCTION_odf$office$$$function__23_Scripts();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[69], tmp_assign_source_29);
}
{
PyObject *tmp_assign_source_30;
tmp_assign_source_30 = MAKE_FUNCTION_odf$office$$$function__24_Settings();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[70], tmp_assign_source_30);
}
{
PyObject *tmp_assign_source_31;
tmp_assign_source_31 = MAKE_FUNCTION_odf$office$$$function__25_Spreadsheet();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[71], tmp_assign_source_31);
}
{
PyObject *tmp_assign_source_32;
tmp_assign_source_32 = MAKE_FUNCTION_odf$office$$$function__26_Styles();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[72], tmp_assign_source_32);
}
{
PyObject *tmp_assign_source_33;
tmp_assign_source_33 = MAKE_FUNCTION_odf$office$$$function__27_Text();
UPDATE_STRING_DICT1(moduledict_odf$office, (Nuitka_StringObject *)mod_consts[73], tmp_assign_source_33);
}
return module_odf$office;
module_exception_exit:
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
}
|
290a86b8d89d3d926df923b2915c8db1b49adc9c
|
1e3d47f78846c2d2192b4d929cbad4123bb3143c
|
/Sources/Interface/Toolbox_SDL.h
|
1a144d6da3bb1fa3d2ca9513130fa9b5ed3d7624
|
[] |
no_license
|
EpitADN/OCR_Project
|
b7b24a8df545a58a16643b3a9997e58438786c4c
|
5d1c7e67bada507d7909c8757bf179ba46a145c1
|
refs/heads/master
| 2020-03-31T00:18:50.149453 | 2018-12-07T13:51:38 | 2018-12-07T13:51:38 | 151,734,755 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 609 |
h
|
Toolbox_SDL.h
|
//
// Created by root on 28/11/18.
//
#ifndef OCR_PROJECT_TOOLBOX_SDL_H
#define OCR_PROJECT_TOOLBOX_SDL_H
#include <err.h>
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
void init_sdl();
SDL_Surface* load_image(char *path);
SDL_Surface* display_image(SDL_Surface *img);
void update_surface(SDL_Surface* screen, SDL_Surface* image);
Uint8* pixel_ref(SDL_Surface *surf, unsigned x, unsigned y);
void put_pixel(SDL_Surface *surface, unsigned x, unsigned y, Uint32 pixel);
Uint32 get_pixel(SDL_Surface *surface, unsigned x, unsigned y);
void wait_for_keypressed();
#endif //OCR_PROJECT_TOOLBOX_SDL_H
|
1a8af301461104b3234ab35ac30651ef308743f2
|
229a9a94bf997f42bafd5e9e108a1248e49e2847
|
/prob2Interpreter/miniInter.h
|
b79d37ab5ac388ded2d70941e7ce40ffa2444eaf
|
[] |
no_license
|
dperny/100pUtils
|
c834a4346fddec3afdac1c0f56c6889d6c2fc697
|
6f29d53e054838d8f903b7ecb8f29fb49d181c46
|
refs/heads/master
| 2021-01-23T10:00:32.063127 | 2014-02-12T02:21:50 | 2014-02-12T02:21:50 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 153 |
h
|
miniInter.h
|
extern void process(Tree tree, char *flag, char *XXX);
extern void userInput(Tree tree);
extern void mainMenu(Tree tree);
extern void interpreter();
|
408171c46cdd8d58348b2f85cddf3ce3b9266ffa
|
976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f
|
/source/redis/src/extr_networking.c_writeToClient.c
|
8dc1f74ec86a7fd7b7597eb2041b58c248e86153
|
[] |
no_license
|
isabella232/AnghaBench
|
7ba90823cf8c0dd25a803d1688500eec91d1cf4e
|
9a5f60cdc907a0475090eef45e5be43392c25132
|
refs/heads/master
| 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 5,875 |
c
|
extr_networking.c_writeToClient.c
|
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward declarations */
typedef struct TYPE_10__ TYPE_4__ ;
typedef struct TYPE_9__ TYPE_2__ ;
typedef struct TYPE_8__ TYPE_1__ ;
/* Type definitions */
typedef scalar_t__ ssize_t ;
struct TYPE_8__ {size_t used; scalar_t__ size; scalar_t__ buf; } ;
typedef TYPE_1__ clientReplyBlock ;
struct TYPE_9__ {size_t bufpos; size_t sentlen; scalar_t__ reply_bytes; int flags; int /*<<< orphan*/ conn; int /*<<< orphan*/ lastinteraction; int /*<<< orphan*/ reply; scalar_t__ buf; } ;
typedef TYPE_2__ client ;
struct TYPE_10__ {scalar_t__ maxmemory; int /*<<< orphan*/ unixtime; int /*<<< orphan*/ stat_net_output_bytes; } ;
/* Variables and functions */
int CLIENT_CLOSE_AFTER_REPLY ;
int CLIENT_MASTER ;
int CLIENT_SLAVE ;
scalar_t__ CONN_STATE_CONNECTED ;
int C_ERR ;
int C_OK ;
int /*<<< orphan*/ LL_VERBOSE ;
scalar_t__ NET_MAX_WRITES_PER_EVENT ;
scalar_t__ clientHasPendingReplies (TYPE_2__*) ;
int /*<<< orphan*/ connGetLastError (int /*<<< orphan*/ ) ;
scalar_t__ connGetState (int /*<<< orphan*/ ) ;
int /*<<< orphan*/ connSetWriteHandler (int /*<<< orphan*/ ,int /*<<< orphan*/ *) ;
scalar_t__ connWrite (int /*<<< orphan*/ ,scalar_t__,size_t) ;
int /*<<< orphan*/ freeClientAsync (TYPE_2__*) ;
int /*<<< orphan*/ listDelNode (int /*<<< orphan*/ ,int /*<<< orphan*/ ) ;
int /*<<< orphan*/ listFirst (int /*<<< orphan*/ ) ;
scalar_t__ listLength (int /*<<< orphan*/ ) ;
TYPE_1__* listNodeValue (int /*<<< orphan*/ ) ;
TYPE_4__ server ;
int /*<<< orphan*/ serverAssert (int) ;
int /*<<< orphan*/ serverLog (int /*<<< orphan*/ ,char*,int /*<<< orphan*/ ) ;
scalar_t__ zmalloc_used_memory () ;
int writeToClient(client *c, int handler_installed) {
ssize_t nwritten = 0, totwritten = 0;
size_t objlen;
clientReplyBlock *o;
while(clientHasPendingReplies(c)) {
if (c->bufpos > 0) {
nwritten = connWrite(c->conn,c->buf+c->sentlen,c->bufpos-c->sentlen);
if (nwritten <= 0) break;
c->sentlen += nwritten;
totwritten += nwritten;
/* If the buffer was sent, set bufpos to zero to continue with
* the remainder of the reply. */
if ((int)c->sentlen == c->bufpos) {
c->bufpos = 0;
c->sentlen = 0;
}
} else {
o = listNodeValue(listFirst(c->reply));
objlen = o->used;
if (objlen == 0) {
c->reply_bytes -= o->size;
listDelNode(c->reply,listFirst(c->reply));
continue;
}
nwritten = connWrite(c->conn, o->buf + c->sentlen, objlen - c->sentlen);
if (nwritten <= 0) break;
c->sentlen += nwritten;
totwritten += nwritten;
/* If we fully sent the object on head go to the next one */
if (c->sentlen == objlen) {
c->reply_bytes -= o->size;
listDelNode(c->reply,listFirst(c->reply));
c->sentlen = 0;
/* If there are no longer objects in the list, we expect
* the count of reply bytes to be exactly zero. */
if (listLength(c->reply) == 0)
serverAssert(c->reply_bytes == 0);
}
}
/* Note that we avoid to send more than NET_MAX_WRITES_PER_EVENT
* bytes, in a single threaded server it's a good idea to serve
* other clients as well, even if a very large request comes from
* super fast link that is always able to accept data (in real world
* scenario think about 'KEYS *' against the loopback interface).
*
* However if we are over the maxmemory limit we ignore that and
* just deliver as much data as it is possible to deliver.
*
* Moreover, we also send as much as possible if the client is
* a slave (otherwise, on high-speed traffic, the replication
* buffer will grow indefinitely) */
if (totwritten > NET_MAX_WRITES_PER_EVENT &&
(server.maxmemory == 0 ||
zmalloc_used_memory() < server.maxmemory) &&
!(c->flags & CLIENT_SLAVE)) break;
}
server.stat_net_output_bytes += totwritten;
if (nwritten == -1) {
if (connGetState(c->conn) == CONN_STATE_CONNECTED) {
nwritten = 0;
} else {
serverLog(LL_VERBOSE,
"Error writing to client: %s", connGetLastError(c->conn));
freeClientAsync(c);
return C_ERR;
}
}
if (totwritten > 0) {
/* For clients representing masters we don't count sending data
* as an interaction, since we always send REPLCONF ACK commands
* that take some time to just fill the socket output buffer.
* We just rely on data / pings received for timeout detection. */
if (!(c->flags & CLIENT_MASTER)) c->lastinteraction = server.unixtime;
}
if (!clientHasPendingReplies(c)) {
c->sentlen = 0;
/* Note that writeToClient() is called in a threaded way, but
* adDeleteFileEvent() is not thread safe: however writeToClient()
* is always called with handler_installed set to 0 from threads
* so we are fine. */
if (handler_installed) connSetWriteHandler(c->conn, NULL);
/* Close connection after entire reply has been sent. */
if (c->flags & CLIENT_CLOSE_AFTER_REPLY) {
freeClientAsync(c);
return C_ERR;
}
}
return C_OK;
}
|
becd04875f031d882ead2b8d75cfb7883de9799f
|
2837859d64eb8258ea6f8817b3f3dc651dec261a
|
/gst/gstledwallvideosink.h
|
fcb537ec3a4e967375f8d6a45d4f5e7c7a3ac6c3
|
[] |
no_license
|
chrisa23/led_wall
|
1789e5675c5cb8e1beea163df190f773e9551930
|
6ae4f36ed3e0d4d957d08125999e8b407a660766
|
refs/heads/master
| 2020-12-26T00:35:28.305701 | 2012-10-12T15:52:30 | 2012-10-12T15:52:30 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,978 |
h
|
gstledwallvideosink.h
|
/* GStreamer
* Copyright (C) 2012 FIXME <fixme@example.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef _GST_LED_WALL_VIDEO_SINK_H_
#define _GST_LED_WALL_VIDEO_SINK_H_
#include <gst/video/gstvideosink.h>
G_BEGIN_DECLS
#define GST_TYPE_LED_WALL_VIDEO_SINK (gst_led_wall_video_sink_get_type())
#define GST_LED_WALL_VIDEO_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_LED_WALL_VIDEO_SINK,GstLedWallVideoSink))
#define GST_LED_WALL_VIDEO_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_LED_WALL_VIDEO_SINK,GstLedWallVideoSinkClass))
#define GST_IS_LED_WALL_VIDEO_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_LED_WALL_VIDEO_SINK))
#define GST_IS_LED_WALL_VIDEO_SINK_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_LED_WALL_VIDEO_SINK))
typedef struct _GstLedWallVideoSink GstLedWallVideoSink;
typedef struct _GstLedWallVideoSinkClass GstLedWallVideoSinkClass;
struct _GstLedWallVideoSink
{
GstVideoSink base_ledwallvideosink;
GstPad *sinkpad;
guint8 *led_buffer;
gchar *device;
gint requested_rows;
gint requested_cols;
gint rows;
gint cols;
};
struct _GstLedWallVideoSinkClass
{
GstVideoSinkClass base_ledwallvideosink_class;
};
GType gst_led_wall_video_sink_get_type (void);
G_END_DECLS
#endif
|
8f6e10d731ba1766e705868c9614366e71485abd
|
48e29604d49c52faa1992a0db86462651a8f8ab2
|
/aula20160929/fpr3.c
|
b35b5aeee0bf6e97c482c7233f74ef49b01a1f7c
|
[] |
no_license
|
ericcantarutti/MTP
|
6fa6470099a8e91aed8e361615900204eee84f46
|
502d93039371ce81fe8db1a1f641e847f6981a85
|
refs/heads/master
| 2020-07-03T19:09:03.914085 | 2016-11-24T13:56:46 | 2016-11-24T13:56:46 | 65,994,140 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 766 |
c
|
fpr3.c
|
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
void iguais();
int main(){
iguais();
return 0;
}
void iguais(){
int vetor1[5], vetor2[5];;
int i, j, l,n;
for(i=0; i<5; i++){
printf("Escreva o valor %d do vetor A com elementos: \n", i);
scanf("%d", &vetor1[i]);
}
for(j=0; j<5; j++){
printf("Escreva o valor %d do vetor B com elementos: \n", j);
scanf("%d", &vetor2[j]);
}
for (i=0; i<5; i++){
printf("%d ", vetor1[i]);
}
printf("\n");
for (j=0; j<5; j++){
printf("%d ", vetor2[j]);
}
for(l=0; l<5; l++){
for (n=0; n<5; n++){
if(vetor1[l]==vetor2[n]){
printf("\n");
printf(" %d ", vetor1[l]);
}
}
}
}
|
3aca7909012e538ee7e2fec714225a82edd0f47e
|
179a739d5f4d672b461ecbe88af285e946f898af
|
/src/world/area_flo/flo_17/CD7350.c
|
4697b21998d6a495eb22a0d793fe1cf6c2289ce1
|
[] |
no_license
|
farisawan-2000/papermario
|
38e2ef57ce9099202e064ab9b3fb582bb6df8218
|
3a918a952b1a7ef326c76b03b0d6af26100ab650
|
refs/heads/master
| 2023-02-23T07:02:55.730335 | 2021-01-28T08:39:38 | 2021-01-28T08:39:38 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,416 |
c
|
CD7350.c
|
#include "flo_17.h"
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80240070_CD7350);
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80240220_CD7500);
#include "world/common/UnkNpcAIFunc1.inc.c"
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80240908_CD7BE8);
#include "world/common/UnkNpcAIFunc2.inc.c"
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80240CC4_CD7FA4);
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80240D30_CD8010);
#include "world/common/UnkNpcAIFunc3.inc.c"
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80240EC8_CD81A8);
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80241258_CD8538);
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_8024137C_CD865C);
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80241568_CD8848);
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_802415B0_CD8890);
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80241A14_CD8CF4);
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80241C64_CD8F44);
#include "world/common/set_script_owner_npc_anim.inc.c"
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_802421C0_CD94A0);
#include "world/common/UnkNpcAIFunc12.inc.c"
#include "world/common/set_script_owner_npc_col_height.inc.c"
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_802424D8_CD97B8);
INCLUDE_ASM(s32, "world/area_flo/flo_17/CD7350", func_80242918_CD9BF8);
|
9f07155b3dda77a40e0feec653e280e2067e44f5
|
075ed80a041ae98a7ae9bb20a9551b4be6493a86
|
/d/Empire/empire.h
|
7319b52aa58e4c85d62b90791aa76f700ef950bf
|
[] |
no_license
|
simonthoresen/viking
|
959c53f97c5dcb6c242d22464e3d7e2c42f65c66
|
c3b0de23a8cfa89862000d2c8bc01aaf8bf824ea
|
refs/heads/master
| 2021-03-12T21:54:46.636466 | 2014-10-10T07:28:55 | 2014-10-10T07:28:55 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 8,859 |
h
|
empire.h
|
#ifndef EMPIRE_H
#define EMPIRE_H
#include <alignment.h>
#include <armour.h>
#include <bits.h>
#include <daemons.h>
#include <feelit.h>
#include <levels.h>
#include <mem.h>
#include <mudlib.h>
#include <origin.h>
#include <room.h>
#include <status.h>
#include <std.h>
#define EMP_DIR ("/d/Empire/")
#define EMP_DIR_COM (EMP_DIR + "com/")
#define EMP_DIR_COM_M (EMP_DIR_COM + "m/")
#define EMP_DIR_COM_W (EMP_DIR_COM + "w/")
#define EMP_DIR_DAEMONS (EMP_DIR + "daemons/")
#define EMP_DIR_ETC (EMP_DIR + "etc/")
#define EMP_DIR_ETC_ACHIEVEMENTS (EMP_DIR_ETC + "achievements/")
#define EMP_DIR_ETC_FONTS (EMP_DIR_ETC + "fonts/")
#define EMP_DIR_ETC_NAMES (EMP_DIR_ETC + "names/")
#define EMP_DIR_HELP (EMP_DIR + "help/")
#define EMP_DIR_ISLANDS (EMP_DIR + "islands/")
#define EMP_DIR_LOG (EMP_DIR + "log/")
#define EMP_DIR_OBJ (EMP_DIR + "obj/")
#define EMP_DIR_STD (EMP_DIR + "std/")
#define EMP_DIR_STD_MOD (EMP_DIR_STD + "mod/")
#define EMP_DIR_VAR (EMP_DIR + "var/")
#define EMP_DIR_VAR_BOARDS (EMP_DIR_VAR + "boards/")
#define EMP_DIR_VAR_EVENTS (EMP_DIR_VAR + "events/")
#define EMP_DIR_VAR_ISLANDS (EMP_DIR_VAR + "islands/")
#define EMP_C_ARMOUR (EMP_DIR_OBJ + "armour")
#define EMP_C_BADGE (EMP_DIR_OBJ + "badge")
#define EMP_C_BLOOD (EMP_DIR_OBJ + "blood")
#define EMP_C_CONTAINER (EMP_DIR_OBJ + "container")
#define EMP_C_ISLANDGEN (EMP_DIR_OBJ + "islandgen")
#define EMP_C_LIMB (EMP_DIR_OBJ + "limb")
#define EMP_C_LIMBLOSS (EMP_DIR_OBJ + "limbloss")
#define EMP_C_LIQUID (EMP_DIR_OBJ + "liquid")
#define EMP_C_REINS (EMP_DIR_OBJ + "reins")
#define EMP_C_STUN (EMP_DIR_OBJ + "stun")
#define EMP_C_TASKLIST (EMP_DIR_OBJ + "tasklist")
#define EMP_C_TOKEN (EMP_DIR_OBJ + "token")
#define EMP_C_WEAPON (EMP_DIR_OBJ + "weapon")
#define EMP_C_WOUND (EMP_DIR_OBJ + "wound")
#define EMP_D_ACHIEVEMENT (EMP_DIR_DAEMONS + "achievementd")
#define EMP_D_ANARCHY (EMP_DIR_DAEMONS + "anarchyd")
#define EMP_D_ANIMAL (EMP_DIR_DAEMONS + "animald")
#define EMP_D_ARMOUR (EMP_DIR_DAEMONS + "armourd")
#define EMP_D_CLOTH (EMP_DIR_DAEMONS + "clothd")
#define EMP_D_COLOR (EMP_DIR_DAEMONS + "colord")
#define EMP_D_COMBAT (EMP_DIR_DAEMONS + "combatd")
#define EMP_D_CONTAINER (EMP_DIR_DAEMONS + "containerd")
#define EMP_D_CRITICAL (EMP_DIR_DAEMONS + "criticald")
#define EMP_D_DEBUG (EMP_DIR_DAEMONS + "debugd")
#define EMP_D_ENCHANT (EMP_DIR_DAEMONS + "enchantd")
#define EMP_D_EXP (EMP_DIR_DAEMONS + "expd")
#define EMP_D_FONT (EMP_DIR_DAEMONS + "fontd")
#define EMP_D_FUR (EMP_DIR_DAEMONS + "furd")
#define EMP_D_GEMSTONE (EMP_DIR_DAEMONS + "gemstoned")
#define EMP_D_GRAPH (EMP_DIR_DAEMONS + "graphd")
#define EMP_D_LEATHER (EMP_DIR_DAEMONS + "leatherd")
#define EMP_D_LIMB (EMP_DIR_DAEMONS + "limbd")
#define EMP_D_LIST (EMP_DIR_DAEMONS + "listd")
#define EMP_D_LOG (EMP_DIR_DAEMONS + "logd")
#define EMP_D_METAL (EMP_DIR_DAEMONS + "metald")
#define EMP_D_NAME (EMP_DIR_DAEMONS + "named")
#define EMP_D_QUALITY (EMP_DIR_DAEMONS + "qualityd")
#define EMP_D_SYMBOL (EMP_DIR_DAEMONS + "symbold")
#define EMP_D_TIME (EMP_DIR_DAEMONS + "timed")
#define EMP_D_TREASURE (EMP_DIR_DAEMONS + "treasured")
#define EMP_D_WANDER (EMP_DIR_DAEMONS + "wanderd")
#define EMP_D_WEAPON (EMP_DIR_DAEMONS + "weapond")
#define EMP_D_WEATHER (EMP_DIR_DAEMONS + "weatherd")
#define EMP_D_WOOD (EMP_DIR_DAEMONS + "woodd")
#define EMP_P_CRITTER ("emp_critter")
#define EMP_P_IGNORE ("emp_ignore")
#define EMP_P_LIMBS ("emp_limbs")
#define EMP_P_NOBLOOD ("no_blood")
#define EMP_P_NOCRIT ("no_crit")
#define EMP_P_NOEVENT ("no_event")
#define EMP_P_NOREGEN ("no_regen")
#define EMP_P_NOSTUN ("no_stun")
#define EMP_P_SHOWDEBUG ("emp_debug")
#define EMP_I_ARMOUR (EMP_DIR_STD + "armour")
#define EMP_I_COMMAND (EMP_DIR_STD + "command")
#define EMP_I_DAEMON (EMP_DIR_STD + "daemon")
#define EMP_I_EVENT (EMP_DIR_STD + "event")
#define EMP_I_FEELINGS (EMP_DIR_STD + "feelings")
#define EMP_I_ISLAND (EMP_DIR_STD + "island")
#define EMP_I_ISLAND_BASE (EMP_DIR_STD + "island_base")
#define EMP_I_ISLAND_CRITTERS (EMP_DIR_STD + "island_critters")
#define EMP_I_ISLAND_EVENTS (EMP_DIR_STD + "island_events")
#define EMP_I_ISLAND_LIVINGS (EMP_DIR_STD + "island_livings")
#define EMP_I_ISLAND_TIME (EMP_DIR_STD + "island_time")
#define EMP_I_ISLAND_VIEW (EMP_DIR_STD + "island_view")
#define EMP_I_ISLAND_WANDER (EMP_DIR_STD + "island_wander")
#define EMP_I_ITEM (EMP_DIR_STD + "item")
#define EMP_I_LOGD (EMP_DIR_STD + "logd")
#define EMP_I_SCORED (EMP_DIR_STD + "scored")
#define EMP_I_MONSTER (EMP_DIR_STD + "monster")
#define EMP_I_MONSTER_BASE (EMP_DIR_STD + "monster_base")
#define EMP_I_MONSTER_BORED (EMP_DIR_STD + "monster_bored")
#define EMP_I_MONSTER_EXP (EMP_DIR_STD + "monster_exp")
#define EMP_I_MONSTER_FACTION (EMP_DIR_STD + "monster_faction")
#define EMP_I_MONSTER_GREETING (EMP_DIR_STD + "monster_greeting")
#define EMP_I_MONSTER_LOGGER (EMP_DIR_STD + "monster_logger")
#define EMP_I_MONSTER_MESSAGE (EMP_DIR_STD + "monster_message")
#define EMP_I_MONSTER_RESPONSE (EMP_DIR_STD + "monster_response")
#define EMP_I_MONSTER_SCARY (EMP_DIR_STD + "monster_scary")
#define EMP_I_MONSTER_WANDER (EMP_DIR_STD + "monster_wander")
#define EMP_I_OBJECT (EMP_DIR_STD + "object")
#define EMP_I_ROOM (EMP_DIR_STD + "room")
#define EMP_I_ROOM_BASE (EMP_DIR_STD + "room_base")
#define EMP_I_ROOM_CRUMB (EMP_DIR_STD + "room_crumb")
#define EMP_I_ROOM_DESC (EMP_DIR_STD + "room_desc")
#define EMP_I_SHOP (EMP_DIR_STD + "shop")
#define EMP_I_TOKEN (EMP_DIR_STD + "token")
#define EMP_I_UNLOCKD (EMP_DIR_STD + "unlockd")
#define EMP_I_WEAPON (EMP_DIR_STD + "weapon")
#define EMP_I_ALIGNED (EMP_DIR_STD_MOD + "aligned")
#define EMP_I_ANSI (EMP_DIR_STD_MOD + "ansi")
#define EMP_I_ANARCHY (EMP_DIR_STD_MOD + "anarchy")
#define EMP_I_ARRAY (EMP_DIR_STD_MOD + "array")
#define EMP_I_CALL_OUT (EMP_DIR_STD_MOD + "call_out")
#define EMP_I_CAN (EMP_DIR_STD_MOD + "can")
#define EMP_I_DESTROY (EMP_DIR_STD_MOD + "destroy")
#define EMP_I_FILE (EMP_DIR_STD_MOD + "file")
#define EMP_I_GRAPH (EMP_DIR_STD_MOD + "graph")
#define EMP_I_LOCATION (EMP_DIR_STD_MOD + "location")
#define EMP_I_MATH (EMP_DIR_STD_MOD + "math")
#define EMP_I_NOTIFY_FAIL (EMP_DIR_STD_MOD + "notify_fail")
#define EMP_I_POS (EMP_DIR_STD_MOD + "pos")
#define EMP_I_STRING (EMP_DIR_STD_MOD + "string")
#define EMP_I_TIME (EMP_DIR_STD_MOD + "time")
#define EMP_I_UTIL (EMP_DIR_STD_MOD + "util")
#define EMP_MAP_PLAYER ('@')
#define EMP_MAP_DEFAULT ('?')
#define EMP_MAP_COAST ('c')
#define EMP_MAP_DESERT ('d')
#define EMP_MAP_FOREST ('f')
#define EMP_MAP_HILL ('h')
#define EMP_MAP_JUNGLE ('j')
#define EMP_MAP_LAVA ('l')
#define EMP_MAP_MOUNTAIN ('m')
#define EMP_MAP_PLAIN ('p')
#define EMP_MAP_ROAD ('r')
#define EMP_MAP_SWAMP ('s')
#define EMP_MAP_TUNDRA ('t')
#define EMP_MAP_VOID (' ')
#define EMP_MAP_WATER ('a')
#define EMP_SEASON_SPRING (0)
#define EMP_SEASON_SUMMER (1)
#define EMP_SEASON_AUTUMN (2)
#define EMP_SEASON_WINTER (3)
#define EMP_DEBUG(ply, msg) (EMP_D_DEBUG->debug((ply), (msg)))
#define EMP_LOG(file, msg) (EMP_D_LOG->log((file), (msg)))
#define EMP_LOGX EMP_D_LOG->log
#endif
|
0406f1971366b07d313d91d6cd582a262fd07da2
|
aa92c0319df5c3e207fc30510c7d095c4a03f90c
|
/ExamFinal/3-0-pgcd/rendu/pgcd.c
|
46ea5af7aa5441dd403bf2967b07f30436512f29
|
[] |
no_license
|
Pausemana/ExamShell
|
1bec1d7906bd1bb0cbec5a1b977a40e51da89c19
|
5d59e95a8b1e187ccd15f84f4b2baabec7d50a76
|
refs/heads/master
| 2021-04-27T22:19:33.335545 | 2018-02-22T23:30:54 | 2018-02-22T23:30:54 | 122,416,464 | 14 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 1,279 |
c
|
pgcd.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pgcd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: exam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/09/26 10:46:25 by exam #+# #+# */
/* Updated: 2015/09/26 11:01:27 by exam ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include <stdlib.h>
void pgcd(int nb1, int nb2)
{
int div;
int pgcd;
div = 1;
if (nb1 <= 0 || nb2 <= 0)
return ;
while (div <= nb1 || div <= nb2)
{
if (nb1 % div == 0 && nb2 % div == 0)
pgcd = div;
div++;
}
printf("%d", pgcd);
}
int main(int argc, char **argv)
{
if (argc == 3)
pgcd(atoi(argv[1]), atoi(argv[2]));
printf("\n");
return (0);
}
|
f317887ebd014590764717adcd6098e76137206e
|
383c50f76ac6b834fcfff1eafacae96b2753660f
|
/src/utils/types/routine.h
|
cfb12489be339dde0248406d96cf989cbca18596
|
[] |
no_license
|
wrpaape/mysql_seed
|
72c1614a6a8265c01f18fa8c45a0f148bcc6c31f
|
43245922c54646a60d724d58a095faf7d31f2bde
|
refs/heads/master
| 2020-04-12T06:42:40.346037 | 2017-03-15T15:09:56 | 2017-03-15T15:09:56 | 61,662,373 | 1 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 1,716 |
h
|
routine.h
|
#ifndef MYSQL_SEED_UTILS_TYPES_ROUTINE_H_
#define MYSQL_SEED_UTILS_TYPES_ROUTINE_H_
/* EXTERNAL DEPENDENCIES
* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */
/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲
* EXTERNAL DEPENDENCIES
*
*
* TYPEDEFS, ENUM AND STRUCT DEFINITIONS
* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */
typedef void *
Routine(void *arg);
/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲
* TYPEDEFS, ENUM AND STRUCT DEFINITIONS
*
*
* CONSTANTS
* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */
/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲
* CONSTANTS */
#endif /* ifndef MYSQL_SEED_UTILS_TYPES_ROUTINE_H_ */
|
0220f49603fa3fc7652cdc29feca9941d6283e90
|
50b4655a0744c7951ad0b9c4279b4f6c41dc2b1c
|
/d03/ex09/main.c
|
a34f3842ae44dfc6576e855b956d4b489bf376be
|
[] |
no_license
|
incognito-bri/C
|
85220447045d3437bb0b53816307ef9bd66dbdcd
|
60784a052b49d3b85dcc5f2d7e8eb86bcb056bb9
|
refs/heads/main
| 2023-03-18T15:45:31.541045 | 2021-03-16T20:31:29 | 2021-03-16T20:31:29 | 333,987,845 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 655 |
c
|
main.c
|
#include <stdio.h>
#include <stdlib.h>
void ft_sort_integer_table(int *tab, int size);
int main(int argc, char **argv)
{
int *table;
int i;
int elements;
elements = argc - 1;
table = (int*)malloc(elements * sizeof(int));
i = 0;
while (i < argc)
{
table[i] = atoi(argv[i]);
i++;
}
i = 1;
printf("%s", "Original Set: ");
while(i < argc)
{
printf("%d", table[i]);
if (i < argc - 1)
printf("%s", ", ");
i++;
}
printf("%s",".\n");
ft_sort_integer_table(table, argc);
i = 1;
printf("%s", "Ordered Set: ");
while(i < argc)
{
printf("%d", table[i]);
if (i < argc - 1)
printf("%s", ", ");
i++;
}
printf("%s",".\n");
}
|
2a4613037355f7ce0478479de3eb39aef8cd62da
|
306a349b03ad2bef3a4c953f78298842b8e30222
|
/AppWarrior/Source/Libs/QTDataHandler/AppWarrior/Networking/CNetAddress.h
|
61e5a6c85b4e518ef43edb7759287666638e705b
|
[] |
no_license
|
Schala/GLoarbLine
|
812fcc0f0b6d99fde7be880b3bf903903cfa17bc
|
9e700253050afd3b0968a424f320a3908eeb17e9
|
refs/heads/master
| 2021-01-10T15:33:39.220985 | 2016-04-12T00:13:28 | 2016-04-12T00:13:28 | 55,819,341 | 0 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 1,541 |
h
|
CNetAddress.h
|
// =====================================================================
// CNetAddress.h (C) Hotline Communications 1999
// =====================================================================
// IP address
#ifndef _H_CNetAddress_
#define _H_CNetAddress_
#if PRAGMA_ONCE
#pragma once
#endif
HL_Begin_Namespace_BigRedH
class CNetAddress
{
friend class CNetworkException;
public:
// ** Construction **
CNetAddress();
CNetAddress( const CString& inName,
UInt16 inPort,
bool inInit = false );
explicit CNetAddress( UInt32 inIP, UInt16 inPort = 0 );
CNetAddress( const CNetAddress &inOther );
~CNetAddress();
bool operator == ( const CNetAddress &inOther ) const
{ return (mPort == inOther.mPort) &&
(GetIP() == inOther.GetIP()); }
// throws CNetworkException
bool operator != ( const CNetAddress &inOther ) const
{ return (mPort != inOther.mPort) ||
(GetIP() != inOther.GetIP()); }
// throws CNetworkException
CNetAddress& operator = ( const CNetAddress &inOther );
// ** Protocol **
UInt32 GetIP() const;
// throws CNetworkException
UInt16 GetPort() const
{ return mPort; }
const CString& GetName() const;
// throws CNetworkException
void GetHostAddress() const;
// throws CNetworkException
private:
mutable UInt32 mIP;
UInt16 mPort;
mutable CString mName;
};
HL_End_Namespace_BigRedH
#endif // _H_CNetAddress_
|
51466f7e8e8d6d0c74bd9662413b50c5f37d58f4
|
a9aa074f0d0bbbd75bc5ea72c4a60c3985407762
|
/attitude/lib/coord/quat.h
|
28bee7fa18727148ac769103953ffd1ed1969764
|
[] |
no_license
|
Areustle/heasoft-6.20
|
d54e5d5b8769a2544472d98b1ac738a1280da6c1
|
1162716527d9d275cdca064a82bf4d678fbafa15
|
refs/heads/master
| 2021-01-21T10:29:55.195578 | 2017-02-28T14:26:43 | 2017-02-28T14:26:43 | 83,440,883 | 0 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 16,166 |
h
|
quat.h
|
#ifndef QUAT_INCLUDED
#include "rotmatrix.h"
#include "euler.h"
#include "xform2d.h"
/**********************************************************
* roudoff error tolerance used in quaternion calculations *
**********************************************************/
#define QUAT_ROUNDOFF_ERR 1e-14
/*************************************************************
* Quat structure
**************************************************************/
typedef struct {
double p[4];
} QUAT;
/***************************************************************
****************************************************************
* allocate space for a new quaternion structure
****************************************************************/
QUAT* allocateQuat();
/***************************************************************
****************************************************************
* allocate space for an array of quaternion structures
* note allocateQuatArray(1) is the same as allocateQuat
****************************************************************/
QUAT* allocateQuatArray(int dimen);
/*********************************************************************
*********************************************************************
* Change the size of a previously allocated quaternion array
********************************************************************/
QUAT* changeQuatArraySize(QUAT* q, int newdimen);
/***************************************************************
****************************************************************
* free storage for a quaternion structure
****************************************************************/
void destroyQuat(QUAT* q);
/**************************************************************************
***************************************************************************
* Set the four components of a quaternion and makes sure they are normalized
***************************************************************************/
void setQuat(QUAT* q, double q0, double q1, double q2, double q3);
/**************************************************************************
***************************************************************************
* Set a quaternion to the identity quaternion (0,0,0,1)
***************************************************************************/
void setQuatToIdentity(QUAT* q);
/* Copy a quaternion. */
void copyQuat(QUAT* dest, QUAT* source);
/* Renormalize a quaternion if its norm is not close to unity. */
void renormalizeQuat(QUAT* q);
/* Renormalize a quaternion regardless of its norm. */
void forceRenormalizeQuat(QUAT * q);
/**************************************************************************
***************************************************************************
* Report that there is an inconsistency in a quaternion
* This would usually be due to bad normalization
* The program prints a message to stderr and exits with status "1"
***************************************************************************/
void badQuatError(QUAT* q);
/***************************************************************
****************************************************************
* give the magnitude of a quaternion
* attitude quaternions should be normalized to 1.
****************************************************************/
double normOfQuat(QUAT* q);
/***************************************************************
****************************************************************
* Computes the quaternion product q = q1 q2
* This gives the result of sucessive rotations by q1 and then q2
* Note that the quaternion product does not commute.
****************************************************************/
void productOfQuats(QUAT* q, QUAT* q1, QUAT* q2);
/***************************************************************
****************************************************************
* determine the quaternion q such that q1*q=q2
* In terms of rotations, this gives the quaternion of the rotation
* between the orientations specified by q1 and q2.
* Intuitively it's the "difference" - though mathematically it's
* more like division: q=inv(q1)*q2.
* Note this can also be done using invertQuat and productofQuats,
* but this function is more efficient since it is coded directly
* with the quaternion components.
****************************************************************/
void getQuatOfChange(QUAT* q, QUAT* q1, QUAT* q2);
/***************************************************************
****************************************************************
* calculate the compliment of a quaternion. The compliment of a
* quaternion represents a rotation in the opposite direction.
****************************************************************/
void invertQuat(QUAT* q, QUAT* q1);
/***************************************************************
****************************************************************
* calculate the compliment of a quaternion. The compliment of a
* quaternion represents a rotation in the opposite direction.
****************************************************************/
void invertQuatInPlace(QUAT* q);
/***************************************************************
****************************************************************
* Calculates the angle in radians of the rotation represented by the
* quaternion q divided by 2.
* This routine assumes the quaternion is properly normalized
* also note that by convention, the rotation angle is always
* positive.
****************************************************************/
double getQuatHalfRotation(QUAT* q);
/***************************************************************
****************************************************************
* q represents a rotation about the same axis as q1, but through
* a rotation angle of a times the rotation angle of q1
* This is useful for interpolation and extrapolation.
* Note this routine assumes the quaternions are normalized
* to within roundoff error.
****************************************************************/
void multiplyQuatByScalar(QUAT* q, QUAT* q1,double a);
/***************************************************************************
****************************************************************************
* get the quaternion which will give the shortest "great circle" rotation
* which will transform unit vector hat1 into unit vector hat2
***************************************************************************/
void greatCircleQuat(QUAT* q, double hat1[3], double hat2[3]);
/***************************************************************************
****************************************************************************
* convert a quaternion to a direction cosine rotation matrix
***************************************************************************/
void convertQuatToRotMatrix(ROTMATRIX* rot,QUAT* q);
/***************************************************************************
****************************************************************************
* convert a direction cosine rotation matrix to a quaternion
***************************************************************************/
void convertRotMatrixToQuat(QUAT* q, ROTMATRIX* rot);
/***************************************************************************
****************************************************************************
* convert a quaternion to a set of euler angles
* This routine achieves the same result as first converting to a rotation
* matrix and then converting to euler angles, but is more efficient
* since not all the rotation matrix elements are needed.
* On the other hand if you already have the rotation matrix available
* it is more efficient to convert that into the euler angles.
***************************************************************************/
void convertQuatToEuler(EULER* e, QUAT* q);
/***************************************************************************
****************************************************************************
* convert a set of Euler angles to a quaternion
* This routine does exactly the same calculation ar first converting
* to a rotation matrix and then to a quaternion, but it saves having
* to handle the intermediate storage.
* If you already have the rotation matrix, then it is much more
* efficient to convert that to a quaternion.
*****************************************************************************/
void convertEulerToQuat(QUAT* q, EULER* e);
/***************************************************************************
****************************************************************************
* Determine the two dimensional transformation from one tangent plane
* projection coordinate system to another, which has been rotated by
* a given quaternion from the first. This transformation can be used
* for detector to sky transformations.
* Note that the exact transformation is non-linear but the linear
* approximation is very good for small angles.
* (oldx0, oldy0) and (newx0, newy0) are the tangent points in the
* old and new projected coordinate systems.
* pixels_per_radian is the scale of both new and old coordinate systems
* at the tangent point.
* deltaq is the rotation from the new coordinate system to the old one.
* note this may seem counter-intuitive at first, but the usual use of this
* is from a tilting coordinate system (detector) to a fixed one (sky).
* In this case deltaq is the relative rotation with respect to the
* fixed reference attitude
*
* The equations used in this function can be derived in the following way.
* First, calculate the three dimensional unit vector direction
* corresponding to a set of coordinates in the tangent plane.
* The trick here is that by convention the X axis in the tangent plane points
* in the opposite direction of the X axis in 3-D space.
* Next, rotate this vector by the inverse of
* deltaq and convert the resulting unit vector back to tangent plane
* coordinates. The resulting transformation becomes linear in the limit
* where -m20*(oldx-oldx0)/pixels_per_radian +
* m21*(oldy-oldy0)/pixels_per_radian << m22
* which is true if the sin of the "theta" Euler angle corresponding to deltaq
* is small or if the event is near the tangent point in radians.
* For typical applications both conditions are met.
*
* This function returns the cosine of the angle between the z axes of the
* old and new coordinate systems. That value can be used to detect absurdly
* large tilt angles (e.g. >= 90 degrees ).
*
****************************************************************************/
double convertQuatToXform2d(XFORM2D* xform, QUAT* deltaq,
double oldx0, double oldy0,
double newx0, double newy0,
double pixels_per_radian);
/*****************************************************************************
******************************************************************************
* This is the inverse of convertQuatToXform2d. It takes an arbitrary
* two dimensional transform from one tangent plane coordinate
* system to another, and gives the quaternion representing the
* relative orientation of these two coordinate systems.
* Note that an arbitrary 2 dimensional transform may not correspond
* exactly to any quaternion. For instance xform may contain extra
* scaling. In this case the function does the best it can to
* return a quaternion which corresponds to a 2-d transform which is
* similar to xform. The resulting quaternion is guaranteed to be correctly
* normalized for any input xform.
******************************************************************************/
void convertXform2dToQuat(QUAT* q, XFORM2D* xform, double oldx0, double oldy0,
double newx0, double newy0,
double pixels_per_radian);
/***************************************************************************
****************************************************************************
* for a pointing defined by the quaternion q, determine the three unit
* vectors, xhat, yhat, and zhat which define the plane tangent to the line
* of sight.
* The vector xhat points in the negative "R.A." direction, yhat in the positive
* "Dec" direction, and zhat points along the line of sight.
*
* At the pole xhat points along the meridian (R.A.=0).
***************************************************************************/
void getPlaneTangentToQuat(QUAT* q,
double xhat[3], double yhat[3], double zhat[3] );
/*****************************************************************************
******************************************************************************
* Given a set of points (x0,y0), find the linear transform which moves
* the points closest to (x1,y1). The linear transform is restricted to
* be a transform corresponding to a three dimensional rotation between
* two tangent plane coordinate systems.
* "Closeness" is defined in the same way as for findBestRigidXform2d.
* And the linear transform is defined as in convertQuatToXform2d.
*
* The function returns the error in the transform, and sets q to the
* three dimensional rotation and xform to the corresponding 2 dimensional
* transformation. Using NULL for wgt is the same as setting all weights
* to unity.
*
* We use an iterative method where we find the closest rigid transform,
* then find the "quat" transform which approximates the rigid transform,
* and then repeat this proceedure on the residuals left from the
* previous approximation. The routine converges rapidly for small
* transforms. It begins to diverge if the Euler angles corresponding to
* q have theta > about 40 degrees, but even then +it will give a reasonable
* approximation if you restrict max_iterations to only a few iterations.
* There is probably a way to solve for q directly without iterating, but
* this method works in practical cases and who needs all that algebra?
*
******************************************************************************/
double findBestQuatXform2d(QUAT* q, XFORM2D* xform, double x0[], double y0[],
double x1[], double y1[],
double wgt[], int npoints,
double oldx0, double oldy0,
double newx0, double newy0,
double pixels_per_radian,
double tolerance, int max_iterations);
/**************************
* Print a Quat to a stream.
**************************/
void printQuat(QUAT* q, FILE* stream);
/*******************************************************
* Set a null QUAT (all elements zero, not normalized) *
*******************************************************/
void setNullQuat(QUAT* q);
/********************************************************************************
* Determine if a QUAT is null (all elements essentially zero, not normalized). *
********************************************************************************/
int isQuatNull(QUAT* q);
/* Linearly interpolate the attitude quaternion given a pair of
* bracketing quaternions. The independent variable (t in q(t))
* is called time in this function, but it could be any
* floating-point quantity. The half-angle calculation is
* performed using its sine rather than its cosine because
* the sine retains more numerical precision, and this is needed
* for interpolating within small-angle rotations. */
void interpolateQuat
(
QUAT* q, /* Desired interpolated quaternion at a time t (output) */
QUAT* q0, /* Earlier bracketing quaternion at time t0 (input) */
QUAT* q1, /* Later bracketing quaternion at time t1 (input) */
QUAT* dq, /* Quaternion of change from q0 to q1 (input) */
QUAT* dq_int, /* Quaternion of change from q0 to interpolated q (output) */
double tfrac /* Time fraction, tfrac = (t - t0)/(t1 - t0) */
);
#define QUAT_INCLUDED
#endif /* QUAT_INCLUDED */
|
04a2da6e60e6be313808b2d301752b1d3dc08530
|
663c9e48b77147ab02fb2c8d7ed03ae77a8020b3
|
/mass_sort/main.c
|
5260b546524395561753c6d20a1a2479e742448d
|
[] |
no_license
|
ilkoch008/2_sem_exercises
|
3f2b0c641c692372811b0b3c913b5b2e7345aa6e
|
f1ac323533cbd56798781132b7e3fd93b1685d94
|
refs/heads/master
| 2020-03-28T21:14:57.247156 | 2018-11-29T12:29:00 | 2018-11-29T12:29:00 | 148,985,429 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 637 |
c
|
main.c
|
#include <stdio.h>
#include <malloc.h>
int main() {
int i;
scanf("%d", &i);
float *xx = malloc(i * sizeof(float));
int test = 1;
float save;
for (int j = 0; j < i; j++)
scanf("%f", &xx[j]);
while (test != 0) {
test = 0;
for (int j = 0; j < i - 1; j++) {
if (xx[j] > xx[j + 1]) {
save = xx[j];
xx[j] = xx[j + 1];
xx[j + 1] = save;
test++;
}
}
}
for (int j = 0; j < i; j++)
printf("%f ", xx[j]);
free(xx);
printf("\n");
printf("Hello, World!\n");
return 0;
}
|
0d1beff565a6decf233ea7dad6f471c599a6b591
|
976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f
|
/source/linux/drivers/gpu/drm/msm/extr_msm_fence.c_msm_fence_context_alloc.c
|
84cce28b46e8fe4797d3a5a23ea7b5d0921d745b
|
[] |
no_license
|
isabella232/AnghaBench
|
7ba90823cf8c0dd25a803d1688500eec91d1cf4e
|
9a5f60cdc907a0475090eef45e5be43392c25132
|
refs/heads/master
| 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,444 |
c
|
extr_msm_fence.c_msm_fence_context_alloc.c
|
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward declarations */
/* Type definitions */
struct msm_fence_context {int /*<<< orphan*/ spinlock; int /*<<< orphan*/ event; int /*<<< orphan*/ context; int /*<<< orphan*/ name; struct drm_device* dev; } ;
struct drm_device {int dummy; } ;
/* Variables and functions */
int /*<<< orphan*/ ENOMEM ;
struct msm_fence_context* ERR_PTR (int /*<<< orphan*/ ) ;
int /*<<< orphan*/ GFP_KERNEL ;
int /*<<< orphan*/ dma_fence_context_alloc (int) ;
int /*<<< orphan*/ init_waitqueue_head (int /*<<< orphan*/ *) ;
struct msm_fence_context* kzalloc (int,int /*<<< orphan*/ ) ;
int /*<<< orphan*/ spin_lock_init (int /*<<< orphan*/ *) ;
int /*<<< orphan*/ strncpy (int /*<<< orphan*/ ,char const*,int) ;
struct msm_fence_context *
msm_fence_context_alloc(struct drm_device *dev, const char *name)
{
struct msm_fence_context *fctx;
fctx = kzalloc(sizeof(*fctx), GFP_KERNEL);
if (!fctx)
return ERR_PTR(-ENOMEM);
fctx->dev = dev;
strncpy(fctx->name, name, sizeof(fctx->name));
fctx->context = dma_fence_context_alloc(1);
init_waitqueue_head(&fctx->event);
spin_lock_init(&fctx->spinlock);
return fctx;
}
|
10082ff3e194521f4bf38635c74de8b45462dbf9
|
fbe68d84e97262d6d26dd65c704a7b50af2b3943
|
/third_party/virtualbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GnuGenBootSector/GnuGenBootSector.c
|
851dede51672907c9c768caa5c418add0cfdaf19
|
[
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LGPL-2.1-or-later",
"GPL-2.0-or-later",
"MPL-1.0",
"LicenseRef-scancode-generic-exception",
"Apache-2.0",
"OpenSSL",
"MIT",
"BSD-2-Clause"
] |
permissive
|
thalium/icebox
|
c4e6573f2b4f0973b6c7bb0bf068fe9e795fdcfb
|
6f78952d58da52ea4f0e55b2ab297f28e80c1160
|
refs/heads/master
| 2022-08-14T00:19:36.984579 | 2022-02-22T13:10:31 | 2022-02-22T13:10:31 | 190,019,914 | 585 | 109 |
MIT
| 2022-01-13T20:58:15 | 2019-06-03T14:18:12 |
C++
|
UTF-8
|
C
| false | false | 11,039 |
c
|
GnuGenBootSector.c
|
/** @file
Reading/writing MBR/DBR.
NOTE:
If we write MBR to disk, we just update the MBR code and the partition table wouldn't be over written.
If we process DBR, we will patch MBR to set first partition active if no active partition exists.
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#include "CommonLib.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <Common/UefiBaseTypes.h>
#include "ParseInf.h"
#include "EfiUtilityMsgs.h"
//
// Utility Name
//
#define UTILITY_NAME "GnuGenBootSector"
//
// Utility version information
//
#define UTILITY_MAJOR_VERSION 0
#define UTILITY_MINOR_VERSION 1
#define MAX_DRIVE 26
#define PARTITION_TABLE_OFFSET 0x1BE
#define SIZE_OF_PARTITION_ENTRY 0x10
#define PARTITION_ENTRY_STARTLBA_OFFSET 8
#define PARTITION_ENTRY_NUM 4
#define DRIVE_UNKNOWN 0
#define DRIVE_NO_ROOT_DIR 1
#define DRIVE_REMOVABLE 2
#define DRIVE_FIXED 3
#define DRIVE_REMOTE 4
#define DRIVE_CDROM 5
#define DRIVE_RAMDISK 6
typedef struct _DRIVE_TYPE_DESC {
UINTN Type;
CHAR8 *Description;
} DRIVE_TYPE_DESC;
#define DRIVE_TYPE_ITEM(x) {x, #x}
DRIVE_TYPE_DESC DriveTypeDesc[] = {
DRIVE_TYPE_ITEM (DRIVE_UNKNOWN),
DRIVE_TYPE_ITEM (DRIVE_NO_ROOT_DIR),
DRIVE_TYPE_ITEM (DRIVE_REMOVABLE),
DRIVE_TYPE_ITEM (DRIVE_FIXED),
DRIVE_TYPE_ITEM (DRIVE_REMOTE),
DRIVE_TYPE_ITEM (DRIVE_CDROM),
DRIVE_TYPE_ITEM (DRIVE_RAMDISK),
{(UINTN) -1, NULL}
};
typedef struct _DRIVE_INFO {
CHAR8 VolumeLetter;
DRIVE_TYPE_DESC *DriveType;
UINTN DiskNumber;
} DRIVE_INFO;
typedef enum {
PathUnknown,
PathFile,
PathFloppy,
PathUsb,
PathIde
} PATH_TYPE;
typedef struct _PATH_INFO {
CHAR8 *Path;
CHAR8 PhysicalPath[260];
PATH_TYPE Type;
BOOLEAN Input;
} PATH_INFO;
typedef enum {
ErrorSuccess,
ErrorFileCreate,
ErrorFileReadWrite,
ErrorNoMbr,
ErrorFatType,
ErrorPath,
} ERROR_STATUS;
CHAR8 *ErrorStatusDesc[] = {
"Success",
"Failed to create files",
"Failed to read/write files",
"No MBR exists",
"Failed to detect Fat type",
"Inavlid path"
};
//UnSupported Windows API functions.
UINTN GetLogicalDrives(void) { return 1; }
/**
Get path information, including physical path for Linux platform.
@param PathInfo Point to PATH_INFO structure.
@return whether path is valid.
**/
ERROR_STATUS
GetPathInfo (
PATH_INFO *PathInfo
)
{
FILE *f;
if (strncmp(PathInfo->Path, "/dev/", 5) == 0) {
//
// Process disk path here.
//
// Process floppy disk
if (PathInfo->Path[5] == 'f' && PathInfo->Path[6] == 'd' && PathInfo->Path[8] == '\0') {
PathInfo->Type = PathFloppy;
strcpy (PathInfo->PhysicalPath, PathInfo->Path);
return ErrorSuccess;
} else {
// Other disk types is not supported yet.
fprintf (stderr, "ERROR: It's not a floppy disk!\n");
return ErrorPath;
}
// Try to open the device.
f = fopen (LongFilePath (PathInfo->Path),"r");
if (f == NULL) {
printf ("error :open device failed!\n");
return ErrorPath;
}
fclose (f);
return ErrorSuccess;
}
// Process file path here.
PathInfo->Type = PathFile;
if (PathInfo->Input) {
// If path is file path, check whether file is valid.
printf("Path = %s\n",PathInfo->Path);
f = fopen (LongFilePath (PathInfo->Path), "r");
if (f == NULL) {
fprintf (stderr, "Test error E2003: File was not provided!\n");
return ErrorPath;
}
fclose (f);
}
strcpy(PathInfo->PhysicalPath, PathInfo->Path);
return ErrorSuccess;
}
VOID
ListDrive (
VOID
)
{
printf("-l or -list not supported!\n");
}
/**
Writing or reading boot sector or MBR according to the argument.
@param InputInfo PATH_INFO instance for input path
@param OutputInfo PATH_INFO instance for output path
@param ProcessMbr TRUE is to process MBR, otherwise, processing boot sector
@return ERROR_STATUS
**/
ERROR_STATUS
ProcessBsOrMbr (
PATH_INFO *InputInfo,
PATH_INFO *OutputInfo,
BOOLEAN ProcessMbr
)
{
CHAR8 FirstSector[0x200] = {0};
CHAR8 FirstSectorBackup[0x200] = {0};
FILE *InputFile;
FILE *OutputFile;
InputFile = fopen (LongFilePath (InputInfo->PhysicalPath), "r");
if (InputFile == NULL) {
return ErrorFileReadWrite;
}
if (0x200 != fread(FirstSector, 1, 0x200, InputFile)) {
fclose(InputFile);
return ErrorFileReadWrite;
}
fclose(InputFile);
//Not support USB and IDE.
if (InputInfo->Type == PathUsb) {
printf("USB has not been supported yet!");
return ErrorSuccess;
}
if (InputInfo->Type == PathIde) {
printf("IDE has not been supported yet!");
return ErrorSuccess;
}
//Process Floppy Disk
OutputFile = fopen (LongFilePath (OutputInfo->PhysicalPath), "r+");
if (OutputFile == NULL) {
OutputFile = fopen (LongFilePath (OutputInfo->PhysicalPath), "w");
if (OutputFile == NULL) {
return ErrorFileReadWrite;
}
}
if (OutputInfo->Type != PathFile) {
if (ProcessMbr) {
//
// Use original partition table
//
if (0x200 != fread (FirstSectorBackup, 1, 0x200, OutputFile)) {
fclose(OutputFile);
return ErrorFileReadWrite;
}
memcpy (FirstSector + 0x1BE, FirstSectorBackup + 0x1BE, 0x40);
}
}
if(0x200 != fwrite(FirstSector, 1, 0x200, OutputFile)) {
fclose(OutputFile);
return ErrorFileReadWrite;
}
fclose(OutputFile);
return ErrorSuccess;
}
/**
Displays the standard utility information to SDTOUT
**/
VOID
Version (
VOID
)
{
printf ("%s v%d.%d %s-Utility to retrieve and update the boot sector or MBR.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
printf ("Copyright (c) 2007-2014 Intel Corporation. All rights reserved.\n");
}
VOID
PrintUsage (
VOID
)
{
Version();
printf ("\nUsage: \n\
GenBootSector\n\
[-l, --list list disks]\n\
[-i, --input Filename]\n\
[-o, --output Filename]\n\
[-m, --mbr process the MBR also]\n\
[-v, --verbose]\n\
[--version]\n\
[-q, --quiet disable all messages except fatal errors]\n\
[-d, --debug[#]\n\
[-h, --help]\n");
}
int
main (
int argc,
char *argv[]
)
{
INTN Index;
BOOLEAN ProcessMbr;
ERROR_STATUS Status;
EFI_STATUS EfiStatus;
PATH_INFO InputPathInfo;
PATH_INFO OutputPathInfo;
UINT64 LogLevel;
SetUtilityName (UTILITY_NAME);
ZeroMem(&InputPathInfo, sizeof(PATH_INFO));
ZeroMem(&OutputPathInfo, sizeof(PATH_INFO));
argv ++;
argc --;
ProcessMbr = FALSE;
if (argc == 0) {
PrintUsage();
return 0;
}
//
// Parse command line
//
for (Index = 0; Index < argc; Index ++) {
if ((stricmp (argv[Index], "-l") == 0) || (stricmp (argv[Index], "--list") == 0)) {
ListDrive ();
return 0;
}
if ((stricmp (argv[Index], "-m") == 0) || (stricmp (argv[Index], "--mbr") == 0)) {
ProcessMbr = TRUE;
continue;
}
if ((stricmp (argv[Index], "-i") == 0) || (stricmp (argv[Index], "--input") == 0)) {
InputPathInfo.Path = argv[Index + 1];
InputPathInfo.Input = TRUE;
if (InputPathInfo.Path == NULL) {
Error (NULL, 0, 1003, "Invalid option value", "Input file name can't be NULL");
return 1;
}
if (InputPathInfo.Path[0] == '-') {
Error (NULL, 0, 1003, "Invalid option value", "Input file is missing");
return 1;
}
++Index;
continue;
}
if ((stricmp (argv[Index], "-o") == 0) || (stricmp (argv[Index], "--output") == 0)) {
OutputPathInfo.Path = argv[Index + 1];
OutputPathInfo.Input = FALSE;
if (OutputPathInfo.Path == NULL) {
Error (NULL, 0, 1003, "Invalid option value", "Output file name can't be NULL");
return 1;
}
if (OutputPathInfo.Path[0] == '-') {
Error (NULL, 0, 1003, "Invalid option value", "Output file is missing");
return 1;
}
++Index;
continue;
}
if ((stricmp (argv[Index], "-h") == 0) || (stricmp (argv[Index], "--help") == 0)) {
PrintUsage ();
return 0;
}
if (stricmp (argv[Index], "--version") == 0) {
Version ();
return 0;
}
if ((stricmp (argv[Index], "-v") == 0) || (stricmp (argv[Index], "--verbose") == 0)) {
continue;
}
if ((stricmp (argv[Index], "-q") == 0) || (stricmp (argv[Index], "--quiet") == 0)) {
continue;
}
if ((stricmp (argv[Index], "-d") == 0) || (stricmp (argv[Index], "--debug") == 0)) {
EfiStatus = AsciiStringToUint64 (argv[Index + 1], FALSE, &LogLevel);
if (EFI_ERROR (EfiStatus)) {
Error (NULL, 0, 1003, "Invalid option value", "%s = %s", argv[Index], argv[Index + 1]);
return 1;
}
if (LogLevel > 9) {
Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0-9, currnt input level is %d", (int) LogLevel);
return 1;
}
SetPrintLevel (LogLevel);
DebugMsg (NULL, 0, 9, "Debug Mode Set", "Debug Output Mode Level %s is set!", argv[Index + 1]);
++Index;
continue;
}
//
// Don't recognize the parameter.
//
Error (NULL, 0, 1000, "Unknown option", "%s", argv[Index]);
return 1;
}
if (InputPathInfo.Path == NULL) {
Error (NULL, 0, 1001, "Missing options", "Input file is missing");
return 1;
}
if (OutputPathInfo.Path == NULL) {
Error (NULL, 0, 1001, "Missing options", "Output file is missing");
return 1;
}
if (GetPathInfo(&InputPathInfo) != ErrorSuccess) {
Error (NULL, 0, 1003, "Invalid option value", "Input file can't be found.");
return 1;
}
if (GetPathInfo(&OutputPathInfo) != ErrorSuccess) {
Error (NULL, 0, 1003, "Invalid option value", "Output file can't be found.");
return 1;
}
//
// Process DBR (Patch or Read)
//
Status = ProcessBsOrMbr (&InputPathInfo, &OutputPathInfo, ProcessMbr);
if (Status == ErrorSuccess) {
fprintf (
stdout,
"%s %s: successful!\n",
(OutputPathInfo.Type != PathFile) ? "Write" : "Read",
ProcessMbr ? "MBR" : "DBR"
);
return 0;
} else {
fprintf (
stderr,
"%s: %s %s: failed - %s (LastError: 0x%x)!\n",
(Status == ErrorNoMbr) ? "WARNING" : "ERROR",
(OutputPathInfo.Type != PathFile) ? "Write" : "Read",
ProcessMbr ? "MBR" : "DBR",
ErrorStatusDesc[Status],
errno
);
return 1;
}
}
|
86346fe7647024f7e3c79219bd4777c72f37c725
|
0a695795c8230f980a4b23e74d11ebf0b961ca0d
|
/binary_tree.c
|
68d4c610b515ff5280ac46dc692cfd8d6f55bdf0
|
[] |
no_license
|
santileortiz/cutility
|
e1e9606364d157fe6a78e981d9722687c61f8d05
|
93c083d1c97a67c4f0a0e070b410fcfdc35bd5a6
|
refs/heads/master
| 2023-06-22T06:00:10.474899 | 2023-06-18T23:40:46 | 2023-06-18T23:44:00 | 177,440,963 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 19,274 |
c
|
binary_tree.c
|
/*
* Copyright (C) 2019 Santiago León O.
*/
#define BINARY_TREE_NEW(PREFIX,KEY_TYPE,VALUE_TYPE,CMP_A_TO_B) \
\
struct PREFIX ## _t { \
mem_pool_t _pool; \
mem_pool_t *pool; \
\
uint32_t num_nodes; \
\
struct PREFIX ## _node_t *root; \
}; \
\
/*Leftmost node will be the smallest.*/ \
struct PREFIX ## _node_t { \
KEY_TYPE key; \
\
VALUE_TYPE value; \
\
struct PREFIX ## _node_t *right; \
struct PREFIX ## _node_t *left; \
}; \
\
void PREFIX ## _destroy (struct PREFIX ## _t *tree) \
{ \
/*Only destroy our own pool*/ \
mem_pool_destroy (&tree->_pool); \
} \
\
struct PREFIX ## _node_t* PREFIX ## _allocate_node (struct PREFIX ## _t *tree) \
{ \
/*If pool pointer is null we use our own pool, the user must call _destroy*/ \
if (tree->pool == NULL) tree->pool = &tree->_pool; \
\
/* TODO: When we add removal of nodes, this should allocate them from a free
list of nodes.*/ \
struct PREFIX ## _node_t *new_node = \
mem_pool_push_struct (tree->pool, struct PREFIX ## _node_t); \
*new_node = ZERO_INIT(struct PREFIX ## _node_t); \
return new_node; \
} \
\
void PREFIX ## _insert (struct PREFIX ## _t *tree, KEY_TYPE key, VALUE_TYPE value) \
{ \
bool key_found = false; \
if (tree->root == NULL) { \
struct PREFIX ## _node_t *new_node = PREFIX ## _allocate_node (tree); \
new_node->key = key; \
new_node->value = value; \
\
tree->root = new_node; \
tree->num_nodes++; \
\
} else { \
struct PREFIX ## _node_t **curr_node = &tree->root; \
while (!key_found && *curr_node != NULL) { \
KEY_TYPE a = key; \
KEY_TYPE b = (*curr_node)->key; \
int c = CMP_A_TO_B; \
if (c < 0) { \
curr_node = &(*curr_node)->left; \
\
} else if (c > 0) { \
curr_node = &(*curr_node)->right; \
\
} else { \
/* Key already exists. Options of what we could do here:
- Assert that this will never happen.
- Overwrite the existing value with the new one. The problem
is if values are pointers in the future, then we could be
leaking stuff without knowing?
- Do nothing, but somehow let the caller know the key was
already there so we didn't insert the value they wanted.
I lean more towards the last option.*/ \
key_found = true; \
break; \
} \
} \
\
if (!key_found) { \
*curr_node = PREFIX ## _allocate_node (tree); \
(*curr_node)->key = key; \
(*curr_node)->value = value; \
\
tree->num_nodes++; \
} \
\
/* TODO: Rebalance the tree.*/ \
} \
} \
\
bool PREFIX ## _lookup (struct PREFIX ## _t *tree, \
KEY_TYPE key, \
struct PREFIX ## _node_t **result) \
{ \
bool key_found = false; \
struct PREFIX ## _node_t **curr_node = &tree->root; \
while (*curr_node != NULL) { \
KEY_TYPE a = key; \
KEY_TYPE b = (*curr_node)->key; \
int c = CMP_A_TO_B; \
if (c < 0) { \
curr_node = &(*curr_node)->left; \
\
} else if (c > 0) { \
curr_node = &(*curr_node)->right; \
\
} else { \
key_found = true; \
break; \
} \
} \
\
if (result != NULL) { \
if (key_found) { \
*result = *curr_node; \
} else { \
*result = NULL; \
} \
} \
\
return key_found; \
} \
\
bool PREFIX ## _maybe_get (struct PREFIX ## _t *tree, \
KEY_TYPE key, VALUE_TYPE *value) \
{ \
struct PREFIX ## _node_t *result_node; \
if (PREFIX ## _lookup (tree, key, &result_node)) { \
*value = result_node->value; \
return true; \
} \
\
return false; \
} \
\
/*
* This is only a convenience function. A zeroed out value will be returned
* if the key is not found. There is no way to differentiate a zeroed out
* stored value from a non existing key, use *_lookup() for that.
*/ \
VALUE_TYPE PREFIX ## _get (struct PREFIX ## _t *tree, \
KEY_TYPE key) \
{ \
VALUE_TYPE res = ZERO_INIT(VALUE_TYPE); \
struct PREFIX ## _node_t *result_node; \
if (PREFIX ## _lookup (tree, key, &result_node)) { \
res = result_node->value; \
} \
\
return res; \
}
#define BINARY_TREE_FOR(PREFIX,TREE,VARNAME) \
\
struct PREFIX ## _node_t *VARNAME = (TREE)->root; \
for (struct { \
bool break_needed; \
bool visit_node; \
int stack_idx; \
struct PREFIX ## _node_t **stack; \
} _loop_ctx = { \
false, \
false, \
0, \
malloc ((TREE)->num_nodes*sizeof(struct PREFIX ## _node_t)) \
}; \
\
_loop_ctx.break_needed = false, \
_loop_ctx.visit_node = false, \
(VARNAME != NULL ? \
(_loop_ctx.stack[_loop_ctx.stack_idx++] = VARNAME, \
VARNAME = VARNAME->left, \
0) \
: \
(_loop_ctx.stack_idx == 0 ? \
(_loop_ctx.break_needed = true, 0) \
: \
(VARNAME = _loop_ctx.stack[--_loop_ctx.stack_idx], \
_loop_ctx.visit_node = true, \
0), \
0) \
), \
_loop_ctx.break_needed ? free (_loop_ctx.stack), false : true; \
\
_loop_ctx.visit_node ? \
(VARNAME = VARNAME->right, 0) : 0) \
\
if (_loop_ctx.visit_node)
|
758f54770f4921b7da6c09a86ccbdec759b37fd3
|
e9d8de6e97b50692a19cebbfc841fb1e0d665015
|
/lenv.c
|
37cca1cbd85facc79cf3134382c050b2af5bde99
|
[] |
no_license
|
cschellenger/lispy
|
607726f8cc5131f6c479a5b945e6def31da9af62
|
4e101eaad746375a038c5a7200baacdbeb3bfbfa
|
refs/heads/master
| 2020-04-29T19:23:10.259497 | 2018-10-08T04:06:15 | 2018-10-08T04:06:15 | 176,352,321 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 3,353 |
c
|
lenv.c
|
#include "lispy.h"
lenv* lenv_new(void) {
lenv* e = malloc(sizeof(lenv));
e->par = NULL;
e->count = 0;
e->syms = NULL;
e->vals = NULL;
return e;
}
void lenv_del(lenv* e) {
for (int i = 0; i < e->count; i++) {
free(e->syms[i]);
lval_del(e->vals[i]);
}
free(e->syms);
free(e->vals);
free(e);
}
lval* lenv_get(lenv* e, lval* k) {
for (int i = 0; i < e->count; i++) {
if (strcmp(e->syms[i], k->sym) == 0) {
return lval_copy(e->vals[i]);
}
}
if (e->par) {
return lenv_get(e->par, k);
} else {
return lval_err("unbound symbol '%s'", k->sym);
}
}
lenv* lenv_copy(lenv* e) {
lenv* n = malloc(sizeof(lenv));
n->par = e->par;
n->count = e->count;
n->syms = malloc(sizeof(char*) * n->count);
n->vals = malloc(sizeof(lval*) * n->count);
for (int i = 0; i < e->count; i++) {
n->syms[i] = malloc(strlen(e->syms[i]) + 1);
strcpy(n->syms[i], e->syms[i]);
n->vals[i] = lval_copy(e->vals[i]);
}
return n;
}
void lenv_add_builtin(lenv* e, char* name, lbuiltin func) {
lval* k = lval_sym(name);
lval* v = lval_fun(func);
lenv_put(e, k, v);
lval_del(k);
lval_del(v);
}
void lenv_add_builtins(lenv* e) {
lenv_add_builtin(e, "list", builtin_list);
lenv_add_builtin(e, "head", builtin_head);
lenv_add_builtin(e, "tail", builtin_tail);
lenv_add_builtin(e, "eval", builtin_eval);
lenv_add_builtin(e, "join", builtin_join);
lenv_add_builtin(e, "def", builtin_def);
lenv_add_builtin(e, "defmacro", builtin_defmacro);
lenv_add_builtin(e, "error", builtin_err);
lenv_add_builtin(e, "fun", builtin_fun);
lenv_add_builtin(e, "read", builtin_read);
lenv_add_builtin(e, "parse", builtin_parse);
lenv_add_builtin(e, "\\", builtin_lambda);
lenv_add_builtin(e, "=", builtin_put);
lenv_add_builtin(e, "+", builtin_add);
lenv_add_builtin(e, "-", builtin_sub);
lenv_add_builtin(e, "*", builtin_mul);
lenv_add_builtin(e, "/", builtin_div);
lenv_add_builtin(e, "%", builtin_mod);
lenv_add_builtin(e, "==", builtin_eq);
lenv_add_builtin(e, "!=", builtin_ne);
lenv_add_builtin(e, ">", builtin_gt);
lenv_add_builtin(e, "<", builtin_lt);
lenv_add_builtin(e, "<=", builtin_lte);
lenv_add_builtin(e, ">=", builtin_gte);
lenv_add_builtin(e, "if", builtin_if);
lenv_add_builtin(e, "!", builtin_not);
lenv_add_builtin(e, "&&", builtin_and);
lenv_add_builtin(e, "||", builtin_or);
lenv_add_builtin(e, "load", builtin_load);
}
void lenv_put(lenv* e, lval* k, lval* v) {
/* check and see if variable already exists */
for (int i = 0; i < e->count; i++) {
/* if we find an existing match, replace */
if (strcmp(e->syms[i], k->sym) == 0) {
lval_del(e->vals[i]);
e->vals[i] = lval_copy(v);
return;
}
}
/* no matching entry, so allocate space */
e->count++;
e->vals = realloc(e->vals, sizeof(lval*) * e->count);
e->syms = realloc(e->syms, sizeof(char*) * e->count);
/* copy lval into new location */
e->vals[e->count - 1] = lval_copy(v);
e->syms[e->count - 1] = malloc(strlen(k->sym) + 1);
strcpy(e->syms[e->count - 1], k->sym);
}
void lenv_def(lenv* e, lval* k, lval* v) {
while (e->par) {
e = e->par;
}
lenv_put(e, k, v);
}
|
109bc96c1abebfce8360e8eafc4e327c0a9c148b
|
91804915d765aa099639c78b7078cb0f649d33f0
|
/CMSIS/pwm.h
|
4e23274e3b887a590d57ca2ae1fe928327acbe25
|
[] |
no_license
|
bangjieding/Smart-car
|
72a9252de8f779ecee27831ed6d08dffd18c213e
|
c2b2fa16e7029c5867dfbd2f2230b461adb9cf43
|
refs/heads/master
| 2021-04-15T16:12:06.199255 | 2018-04-11T10:51:19 | 2018-04-11T10:51:19 | 126,017,814 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 107 |
h
|
pwm.h
|
#include "stm32f10x.h"
#ifndef __PWM_H
#define __PWM_H
void TIM1_PWM_Init(u16 arr,u16 psc);
#endif
|
940d8c94e392a66fc5a5ca93a1108b5bafef262b
|
6e45a8cdc70ff4f4c5f2eb3a2026212a9398cc23
|
/test/rc4/rc41.c
|
12bc00d562f4c2bbba746c7fc4b70f1d8ab7ba2f
|
[] |
no_license
|
sparlane/underscore
|
b4e998dc4eff032b2070e2a3a7c75a17f4c39bca
|
572ee4bde229e74e9f48ebb4fe9ce82f1960102d
|
refs/heads/master
| 2021-01-06T20:46:16.667379 | 2014-01-03T11:32:31 | 2014-01-03T11:34:10 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,098 |
c
|
rc41.c
|
#include <stdint.h>
#include <string.h>
#include <us_encryption.h>
#include <us_test.h>
int main(int argc, char *argv[]){
us_rc4 k1 = us_rc4_create();
us_rc4 k2 = us_rc4_create();
us_assert(k1 != NULL, "Key(1) CREATE failed");
us_assert(k2 != NULL, "Key(2) CREATE failed");
us_assert(us_rc4_setup(k1, (unsigned char *)"test", 4), "Key(1) Setup failed");
us_assert(us_rc4_setup(k2, (unsigned char *)"test", 4), "Key(2) Setup failed");
for(int i = 0; i < 26; i++)
{
us_assert(us_rc4_crypt(k2, us_rc4_crypt(k1, 'a' + i)) == ('a' + i), "Failed enCRYPT and deCRYPT %c", 'a' + i);
}
us_assert(us_rc4_unref(k1), "Failed to DESTROY Key(1)");
us_assert(us_rc4_unref(k2), "Failed to DESTROY Key(2)");
k1 = us_rc4_create();
us_assert(us_rc4_setup(k1, (unsigned char *)"Key", 3), "Key(1) Setup failed");
for(int i = 0; i < 256; i++)
{
printf("%02x ", (unsigned char)k1->S[i]);
}
char *text = us_rc4_crypt_string (k1, "Plaintext", 9);
us_assert(text != NULL, "Encrypting string");
for(int i = 0; i < 9; i++)
{
printf("%02x ", (unsigned char)text[i]);
}
return 0;
}
|
f67631059ec7d0fe8d5f61037a4c155ad69bfcb0
|
434c1a45998aee3fc8670d2ef254ba43e8916542
|
/Common/colossus/Exeapi.h
|
4714a7145d27f132d454942b4cd1775ce9e6e226
|
[] |
no_license
|
snaptv/hauppauge_hdpvr2
|
17f343710ebcdfd74842f14adcb654c645d5cb13
|
9807d4d2ba1d56a73966fe6bb6649c352b298492
|
refs/heads/master
| 2020-03-16T02:15:27.373182 | 2019-03-18T08:21:16 | 2019-03-18T08:21:16 | 132,460,741 | 1 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 3,379 |
h
|
Exeapi.h
|
#ifndef EXEAPI_H
#define EXEAPI_H
typedef enum
{
CAR_UNDEFINED,
CAR_4_3_FULL,
CAR_4_3_LB,
CAR_14_9_LB_CENTER,
CAR_14_9_LB_TOP,
CAR_16_9_LB_CENTER,
CAR_16_9_LB_TOP,
CAR_MORE_THAN_16_9_LB_CENTER,
CAR_14_9_FULL_CENTER,
CAR_16_9_FULL_ANAMORPHIC
} COL_ASPECT_RATIO;
#define HAUP_RES_KEY_NAME "\\Registry\\Machine\\System\\CurrentControlSet\\Services\\hcwE5bda\\Parameters"
#define HAUP_SDI_BITRATE "SDi"
#define HAUP_SDI_PEAK_BITRATE "SDi_peak"
#define HAUP_SDI_MODE "SDi_mode"
#define HAUP_SDP_BITRATE "SDp"
#define HAUP_SDP_PEAK_BITRATE "SDp_peak"
#define HAUP_SDP_MODE "SDp_mode"
#define HAUP_HD720P_BITRATE "HD720p"
#define HAUP_HD720P_PEAK_BITRATE "HD720p_peak"
#define HAUP_HD720P_MODE "HD720p_mode"
#define HAUP_HD1080I_BITRATE "HD1080i"
#define HAUP_HD1080I_PEAK_BITRATE "HD1080i_peak"
#define HAUP_HD1080I_MODE "HD1080i_mode"
#define RES_SDI_DEFAULT_BITRATE 4000000
#define RES_SDI_PEAK_DEFAULT_BITRATE 6000000
#define RES_SDP_DEFAULT_BITRATE 5000000
#define RES_SDP_PEAK_DEFAULT_BITRATE 7500000
#define RES_HD720P_DEFAULT_BITRATE 8000000
#define RES_HD720P_PEAK_DEFAULT_BITRATE 12000000
#define RES_HD1080I_DEFAULT_BITRATE 9000000
#define RES_HD1080I_PEAK_DEFAULT_BITRATE 13500000
#define RES_OTHERS_DEFAULT_BITRATE 8000000
#define RES_OTHERS_PEAK_DEFAULT_BITRATE 12000000
#define HAUP_ASPECT_RATIO_MODE "AspectRatioMode"
#define HAUP_ASPECT_RATIO_SDI "AspectRatioSDI"
#define HAUP_ASPECT_RATIO_SDP "AspectRatioSDP"
#define HAUP_PCM_AUDIO_MODE "PCM_AudioMode"
#define HAUP_SCALER_MODE "ScalerMode"
#define HAUP_SCALE_RES_1080I "ScaleRes1080I"
#define HAUP_SCALE_RES_1080P "ScaleRes1080P"
#define HAUP_SCALE_RES_720P "ScaleRes720P"
#define HAUP_SCALE_RES_SDP "ScaleResSDP"
#define HAUP_SCALE_RES_SDI "ScaleResSDI"
#define HAUP_SCALE_FPS_1080I "ScaleFps1080I"
#define HAUP_SCALE_FPS_1080P "ScaleFps1080P"
#define HAUP_SCALE_FPS_720P "ScaleFps720P"
#define HAUP_SCALE_FPS_SDP "ScaleFpsSDP"
#define HAUP_SCALE_FPS_SDI "ScaleFpsSDI"
#define HAUP_COMB_FILTER_MODE "CombFilterMode"
#define HAUP_COMB_DOT_CRAWL "CombDotCrawlDetect"
#define HAUP_COMB_LUMA_MOTION "CombLumaMotion"
#define HAUP_COMB_CHROMA_MOTION "CombChromaMotion"
#define HAUP_COMB_RESPONSE "CombResponse"
#define HAUP_NOISE_FILTER_MODE "NoiseFilterMode"
#define HAUP_NOISE_LUMA_MOTION "TempLumaMotion"
#define HAUP_NOISE_CHROMA_MOTION "TempChromaMotion"
#define HAUP_NOISE_LUMA_EDGE "SpatialLumaEdge"
#define HAUP_NOISE_CHROMA_EDGE "SpatialChromaEdge"
#define HAUP_NOISE_STRENGTH "SpatialStrength"
#define HAUP_AUDIO_ENCODER_BIT_RATE "AudioEncoderBitRate"
#define HAUP_AUDIO_ENC_SAMPLE_RATE_48 "AudioEncoderSampleRate48"
#define HAUP_AUDIO_ENC_SAMPLE_RATE_441 "AudioEncoderSampleRate441"
#define HAUP_AUDIO_BOOST_MODE "AudioBoostMode"
#define HAUP_FILTER_REGISTRATION "FilterRegistration"
#define HAUP_EDID_DATA "EdidData"
typedef struct
{
// AspectRatio aspect_ratio;
#ifdef HAUPPAUGE
// PVR_MODE pvr_mode;
// TBC_MODE tbc_mode;
ScalerSettings scaler;
// FilterSettings filter;
AudEncSettings audioEncoder;
// AUDBOOST_MODE audBoost_mode;
// BYTE filterRegistration;
// ResVideoBitRate bit_rates;
#endif
} ExtCapParams, *pExtCapParams;
#endif // EXEAPI_H
|
cd2212d25da0dc8d93e09435ec77333937341d07
|
f37c3546f39d7ebc4236c043e740d68bf826e8c1
|
/kinoma/AndroidJavaCodec/sources/FskAndroidJavaCommon.c
|
eeb686a7a479c6fdff3b80ecc04b349f90b424bc
|
[
"Apache-2.0"
] |
permissive
|
sandy-slin/kinomajs
|
f08f60352b63f1d3fad3f6b0e9a5e4bc8025f082
|
567b52be74ec1482e0bab2d370781a7188aeb0ab
|
refs/heads/master
| 2020-12-24T22:21:05.506599 | 2015-03-02T07:39:23 | 2015-03-02T07:39:23 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,614 |
c
|
FskAndroidJavaCommon.c
|
/*
Copyright (C) 2010-2015 Marvell International Ltd.
Copyright (C) 2002-2010 Kinoma, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#define __FSKIMAGE_PRIV__
#define __FSKBITMAP_PRIV__
#define __FSKTHREAD_PRIV__
#include "Fsk.h"
#include "FskBitmap.h"
#include "FskUtilities.h"
#include "FskImage.h"
#include <jni.h>
static JavaVM *gJavaVM;
jclass gMediaCodecCoreClass;
jint JNI_OnLoad(JavaVM *vm, void *reserved) {
JNIEnv *env;
gJavaVM = vm;
if ((*vm)->GetEnv(vm, (void**)&env, JNI_VERSION_1_4) != JNI_OK) {
return -1;
}
/* find class MediaCodecCore */
jclass cls = (*env)->FindClass(env, CLASSNAME);
gMediaCodecCoreClass = (*env)->NewGlobalRef(env, cls);
return JNI_VERSION_1_4;
}
void Init_JNI_Env()
{
int status;
JNIEnv *env;
FskThread self = FskThreadGetCurrent();
if (!self->jniEnv) {
status = (*gJavaVM)->GetEnv(gJavaVM, (void**)&env, JNI_VERSION_1_4);
if (status < 0) {
status = (*gJavaVM)->AttachCurrentThread(gJavaVM, &env, NULL);
if (status < 0) {
return;
}
self->attachedJava = 1;
}
self->jniEnv = (int)env;
}
}
|
d52a42871260c52be1ec519814bcff7a8e9b17df
|
d35cbd0957456f472fedeae4b753fd67d11ab86e
|
/dcp3000/app_src/utils/sim_encrypt.h
|
39245ecaf3206bae5f3e7cbbc6ed59e848c95d13
|
[] |
no_license
|
anoleo/dcp3000
|
31945e244844b754488ed6974963a146313c9725
|
3a9779123dc3d38d32d62fc2d2033e9b12a4686a
|
refs/heads/master
| 2021-01-19T04:44:07.043843 | 2016-09-30T04:16:37 | 2016-09-30T04:16:37 | 69,632,087 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 367 |
h
|
sim_encrypt.h
|
#ifdef __SIM_ENCRYPT_H__
#define __SIM_ENCRYPT_H__
#include <sys/types.h>
int str_encrypt(u_char *ciphertext, u_char *plaintext);
int str_decrypt(u_char *plaintext, u_char *ciphertext);
int data_encrypt(u_char *ciphertext, u_char *plaintext, int textlen);
int data_decrypt(u_char *plaintext, u_char *ciphertext, int textlen);
void init_sim_encrypt(void);
#endif
|
b1a6f80d3269dba0243f19382a5c07a6e78923c0
|
f5710b31b989ca6ea560e4148dd919ddeb80b42b
|
/ServSysLib/inc/FileNameMapBase.h
|
88e8ddab6ffc76159b8d79e609bbc38b1c8c9de9
|
[] |
no_license
|
fmalakhov/WebServerCore
|
95e899953a0bed7afe8d8ae50e641a095bbea39b
|
e2585b91f6ced34d1f3ae081f6d2c80d7003429d
|
refs/heads/master
| 2021-01-19T08:32:08.615249 | 2018-01-21T15:40:27 | 2018-01-21T15:40:27 | 87,643,631 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,718 |
h
|
FileNameMapBase.h
|
# if ! defined( FileNameMapBaseH )
# define FileNameMapBaseH /* only include me once */
/*
Copyright (c) 2012-2017 MFBS, Fedor Malakhov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#ifndef CommonPlatformH
#include "CommonPlatform.h"
#endif
#ifndef vistypesH
#include "vistypes.h"
#endif
#ifndef SysLibToolH
#include "SysLibTool.h"
#endif
#ifndef SysWebFunctionH
#include "SysWebFunction.h"
#endif
void FileNameMapDBLoad();
char* GetLocalFileNameByExtName(char *FileNameKey);
char* GetExtFileNameByLocalName(char *FileNameKey);
void FileNameMapDBClear();
//---------------------------------------------------------------------------
#endif /* if ! defined( FileNameMapBaseH ) */
|
3be7a97de3252e89a251091edc494a4734e51654
|
f7254da7b7fda9ec26801f547af8ccdc2f8fbb2d
|
/radio/ersky9x/src/mega64.h
|
bd9260eba58a461195658b57591bbe92e4807d48
|
[] |
no_license
|
lzq888/mbtx
|
3a882744a96a53893b4282e3fac4333f19480250
|
2daf21f1cd5f24aa36f31447c7712f952d6f3e4f
|
refs/heads/master
| 2021-01-17T08:56:04.185140 | 2015-09-08T13:11:09 | 2015-09-08T13:11:09 | 42,112,816 | 0 | 0 | null | 2015-09-08T13:10:05 | 2015-09-08T13:10:05 | null |
UTF-8
|
C
| false | false | 1,159 |
h
|
mega64.h
|
/****************************************************************************
* Copyright (c) 2015 by Michael Blandford. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
****************************************************************************/
extern uint8_t M64Buttons ;
extern uint8_t M64Trims ;
extern uint16_t M64Switches ;
extern uint16_t M64Analog[] ;
extern uint8_t M64Contrast ;
extern uint8_t M64SetContrast ;
extern uint16_t M64Overruns ;
extern uint16_t M64CountErrors ;
extern uint8_t M64Received ;
extern uint8_t M64Revision ;
extern uint8_t M64SetHaptic ;
extern uint8_t M64HapticOnOff ;
extern uint8_t M64HapticStrength ;
//void poll_mega64( void ) ;
void checkM64( void ) ;
void displayToM64( void ) ;
void initM64( void ) ;
|
d280c642b1e35e566b79a34a378661c083c1e76f
|
c28a6f2c8ce8f986b5c22fd602e7349e68af8f9c
|
/android/frameworks/native/include/media/hardware/HardwareAPI_RealtekExt.h
|
5a23ca7ea9bee8df7b2e8ab4a35afe433d515516
|
[
"LicenseRef-scancode-unicode",
"Apache-2.0"
] |
permissive
|
BPI-SINOVOIP/BPI-1296-Android6
|
d6ade74367696c644a1b053b308d164ba53d3f8c
|
1ba45ab7555440dc3721d6acda3e831e7a3e3ff3
|
refs/heads/master
| 2023-02-24T18:23:02.110515 | 2019-08-09T04:01:16 | 2019-08-09T04:01:16 | 166,341,197 | 0 | 5 | null | null | null | null |
UTF-8
|
C
| false | false | 749 |
h
|
HardwareAPI_RealtekExt.h
|
#ifndef HARDWARE_API_REALTEK_EXT_H_
#define HARDWARE_API_REALTEK_EXT_H_
#include "OMX_Types.h"
/**
* Structure used to pass the parent message when the extension
* index for the 'OMX.realtek.android.index.notifyParentInfo'
* extension is given.
*
* nSize : Size of the structure in bytes
* nVersion : OMX specification version information
* sComm : comm name
* nPid : pid
* nTid : tid
*/
typedef struct OMX_VIDEO_PARENT_INFO {
OMX_U32 nSize;
OMX_VERSIONTYPE nVersion;
OMX_U8 sComm[1024];
OMX_U32 nPid;
OMX_U32 nTid;
} OMX_VIDEO_PARENT_INFO;
#define OMX_VIDEO_PARENT_INFO OMX_VIDEO_PARENT_INFO
#endif /* end of HARDWARE_API_REALTEK_EXT_H_ */
|
0acbe3f4f9d9a2cc3289e546fcd7f340746fccee
|
1617a9a9c92146bcdac89b5efb1ef0d18408160b
|
/cont14lab/20/solution.c
|
fa1ba993e9148314c6192e8d32f471613b6c1fae
|
[] |
no_license
|
LitRidl/checker-content
|
1b1329b4462b87731e0755ab33480ff063a94a00
|
b5d0456c8d4d28db6e6022e272a95a385f253797
|
refs/heads/master
| 2023-08-17T18:08:07.377680 | 2018-02-04T11:16:34 | 2018-02-04T11:16:34 | 120,077,784 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,226 |
c
|
solution.c
|
/*
13 12 11 10
14 7 8 9
15 6 3 2
16 5 4 1
*/
#include <stdio.h>
int main(void)
{
int tests, max_size, cur_size, sign;
scanf("%d%d", &tests, &max_size);
int row, column;
int mas[max_size][max_size];
int way[2] = {0, 1};
for (int test = 0; test < tests; ++test) {
scanf("%d", &cur_size);
for (int i = 0; i < cur_size; ++i) {
for (int j = 0; j < cur_size; ++j) {
scanf("%d", &(mas[i][j]));
}
}
row = 0;
column = -1;
for (int i = 0, idx = 0; i < cur_size; ++i) {
for (int j = 0; j < 2 * i + 1; ++j) {
if (j == 0 || j == 1 || j == i + 1) {
++idx;
}
sign = j > i ? -1 : 1;
column += way[idx % 2] * sign;
row += way[(idx + 1) % 2] * sign;
// printf("%d %d\n", way[idx % 2] * sign, way[(idx + 1) % 2] * sign);
printf("%d ", mas[cur_size - row - 1][cur_size - column - 1]);
}
// printf("\n");
}
printf("\n");
}
return 0;
}
|
ce58fa1ea12bd4d69c20bbcfe8b6771794a74290
|
4e7c3a072bbb1fcb313d972765680172833e72d0
|
/war3ft/war3ft/XP.h
|
3819e987a0e95bea3813b6db23a919a14abb921b
|
[] |
no_license
|
Geesu/wc3mods
|
f0ace84ca867bb2cb63e3c8ea308a35f775f8c5a
|
3e3d47de8bed96c81bd03ee3a0bba1070ab2f417
|
refs/heads/master
| 2020-04-21T10:16:09.351004 | 2013-10-18T21:18:22 | 2013-10-18T21:18:22 | 13,690,144 | 14 | 5 | null | null | null | null |
UTF-8
|
C
| false | false | 2,162 |
h
|
XP.h
|
/*
* XP Header File
*/
// Objective Modifiers
#define DEFUSING_BOMB 10 // XP awarded when the user starts to defuse the bomb
#define DEFUSED_BOMB 20 // XP awarded when the user defuses the bomb
#define PLANTING_BOMB 10 // XP awarded when the user starts planting the bomb
#define PLANT_BOMB 20 // XP awarded when the user plants the bomb
#define SPAWN_BOMB 10 // XP awarded when the user spawns with the bomb
#define BOMB_PICKUP 10 // XP awarded when the user picks up the bomb
#define TOUCH_HOSTAGE 10 // XP awarded when the user touches a hostage
#define RESCUE_HOSTAGE 20 // XP awarded when the user rescues the hostage
#define KILL_HOSTAGE 10 // XP lost when killing a hostage
#define SPAWN_VIP 10 // XP awarded for spawning as the VIP
#define ESCAPE_VIP 20 // XP awarded for escaping as the VIP
#define OBJ_RADIUS 500 // Nearby radius to award XP for helping complete objectives
// Kill modifiers
#define KILL_HEADSHOT 10 // XP awarded for getting a headshot
#define KILL_HOSTAGE_SAVER 10 // XP awarded for killing the hostage saver
#define KILL_DEFUSER 10 // XP awarded for killing the defuser
#define KILL_PLANTER 10 // XP awarded for killing the planter
#define KILL_BOMB_CARRIER 10 // XP awarded for killing the bomb carrier
#define KILL_VIP 20 // XP awarded for killing the VIP
#define KILL_RADIUS 250 // Nearby radius to award XP
#define WIN_ROUND 20 // XP awarded for winning the round
// Holds information about the player
enum
{
PLR_BOMB_DEFUSER = 1,
PLR_BOMB_PLANTER,
PLR_HOSTAGE_RESCUER,
PLR_VIP,
PLR_BOMB_CARRIER,
};
new g_iPlayerRole[33];
new bool:bHasBegunPlantingOrDefusing[33];
// Holds the XP Multipliers per weapon
new Float:fWpnXPMultiplier[CSW_WAR3_MAX+1] = {1.0};
// Amount of XP needed to gain a level
new iXPLevelShortTerm[11] = {0,150,300,600,1000,1500,2100,2800,3400,4500,5500};
new iXPLevelSaved[11] = {0,100,200,400,800,1600,3200,6400,12800,25600,51200};
// Amount of XP awarded when killing a user of this level
new iXPGivenShortTerm[11] = {10,15,25,35,40,50,60,70,80,90,95};
new iXPGivenSaved[11] = {6,8,10,12,14,16,18,20,24,28,32};
|
1500efba54b0a78879c2737bcca6999cb910cfa4
|
dfd632c900873d1827f1ba04020ad974ee5c4f8f
|
/SingleLink/list.c
|
53fdc36629b3e598ae99ff17ee8d1e9fd08264f6
|
[] |
no_license
|
Luke97030/NodeList
|
f8692c6358612ffd98fcfc833aadf85c6b74ed4b
|
6a6afe7c27d7e8f141751a536584f49aa36a4288
|
refs/heads/master
| 2020-09-12T21:45:59.735492 | 2015-12-09T02:28:49 | 2015-12-09T02:28:49 | 222,567,447 | 1 | 0 | null | 2019-11-18T23:50:02 | 2019-11-18T23:50:02 | null |
UTF-8
|
C
| false | false | 3,098 |
c
|
list.c
|
/*************************************************************************
> File Name: list.c
> Author: Manfred Zhao
> Mail: manfredzhaoshubo@foxmail.com
> Created Time: Sun 06 Dec 2015 01:08:45 AM PST
************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include "list.h"
link make_head(link l)
{
l = (link)malloc(sizeof(NODE));
l->next = NULL;
return l;
}
link search(link l,item data)
{
while(l!=NULL)
{
if(l->data==data)
break;
l = l->next;
}
if(l==NULL)
{
printf("您要查找的内容在链表中不存在!\n请添加相应内容!\n");
return NULL;
}
else
{
printf("查询得到的数据为:%d\n",l->data);
return l;
}
}
void delete(link l,item data)
{
link tmp;
item d_data;
if(!l)
{
printf("当前链表为空\n");
return;
}
while(l!=NULL)
{
if(l->next!=NULL && l->next->data==data)
{
tmp = l->next;
l->next = tmp->next;
d_data = tmp->data;
free(tmp);
break;
}
l = l->next;
}
if(l==NULL)
{
printf("当前链表中没有找到数值为%d的数据块!\n",data);
printf("更新失败!\n");
}
else
{
printf("删除数据项%d成功!\n",d_data);
}
}
void modify(link l,item data,item value)
{
if(!l)
{
printf("当前链表为空\n");
return;
}
while(l!=NULL)
{
if(l->data==data)
{
l->data = value;
break;
}
l = l->next;
}
if(l==NULL)
{
printf("当前链表中没有找到数值为%d的数据块!\n",data);
printf("更新失败!\n");
}
else
{
printf("更新成功!\n");
}
}
void insert(link pos,item data,item value)
{
if(!pos)
{
printf("当前链表为空\n");
return;
}
while(pos!=NULL)
{
if(pos->data==data)
{
link temp = (link)malloc(sizeof(NODE));
temp->data = value;
temp->next = pos->next;
pos->next = temp;
break;
}
pos = pos->next;
}
if(pos==NULL)
{
printf("当前链表中没有找到数值为%d的数据块!\n",data);
printf("插入失败!\n");
}
else
{
printf("插入成功!\n");
}
}
void print_link(link p)
{
while(p->next != NULL)
{
p = p->next;
printf("%d ",p->data);
}
printf("\n");
}
void add_tail(link p,item data)
{
if(!p)
return;
while(p->next != NULL)
p = p->next;
link temp = (link)malloc(sizeof(NODE));
temp->data = data;
temp->next = p->next;
p->next = temp;
}
int is_empty(link l)
{
return l->next == NULL;
}
link destory(link l)
{
link tmp;
while(l->next!=NULL)
{
tmp = l->next;
l->next = tmp->next;
free(tmp);
}
return l;
}
|
8dfcaa1f3012ff3f9ca4ed0224a8cc06d5ace055
|
0d063e757fb808d564b456466f00a52b874aaf0d
|
/DRTCPS-FinalProject/src/movement.c
|
d043dac8af399714c0aa0007a2552afd92251ae4
|
[] |
no_license
|
rsalca01/Byzantine
|
c62a4db01b56459310bca812fda34dca0f4da7eb
|
4f025f517999c89f308df49a767eb88c64fb6048
|
refs/heads/master
| 2022-12-16T20:47:42.492384 | 2020-08-30T09:35:37 | 2020-08-30T09:35:37 | 291,306,589 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 3,175 |
c
|
movement.c
|
#include <kilombo.h>
#include "includes/main.h"
#include "includes/inicializar.h"
#include "includes/movement.h"
#include "includes/comunication.h"
#include "includes/time.h"
#include "includes/game.h"
#include "includes/colors.h"
extern USERDATA * mydata;
void setMotion(motion_t new_motion){
switch(new_motion){
case STOP:
set_motors(0,0);
break;
case FORWARD:
set_motors(kilo_straight_left, kilo_straight_right);
break;
case LEFT:
set_motors(kilo_straight_left, 0);
break;
case RIGHT:
set_motors(0, kilo_straight_right);
break;
}
}
void rectoPhase(uint8_t option){
switch(option){
case 1:
if (collisionDetected())
{
upDateClock();
saveToMatrix();
mydata->game_state=STOP_PHASE;
}else{
setMotion(FORWARD);
}
break;
case 2:
if (waitTime(130))
{
mydata->giro=0;
}else{
setMotion(FORWARD);
}
break;
case 3:
if (waitTime(230))
{
setMotion(STOP);
mydata->my_state=STOPPED;
}else{
setMotion(FORWARD);
}
break;
}
}
void giroPhase(){
set_color(mydata->my_color);
if(waitTime(72)){
mydata->giro=1;
mydata->game_state=RECTO_PHASE;
}else{
setMotion(LEFT);
}
}
void funcionStop(){
if(waitTime(20))
{
mydata->game_state=GIRO_PHASE;
mydata->messagesSent=mydata->messagesSent+1;
if (mydata->messagesSent==3)
{
terminatedKilobots=terminatedKilobots+1;
}
}else{
setMotion(STOP);
cambioColorSegunMensaje();
}
}
//Check if the moving kilobot has already sent all its messages so that another kilobot starts moving
void calculateNextOne(){
if (terminatedKilobots<=3)
{
if (mydata->messagesSent==3)
{
mydata->messagesSent=0;
checkIdOfNextKilobot(kilo_uid);
mydata->my_state=TERMINATED;//If it has sent all its messages it has finished
}
}else{
if (mydata->messagesSent==3)
{
mydata->messagesSent=0;
mydata->my_state=TERMINATED;//If it has sent all its messages it has finished
}
numberNextMoving=9;
}
}
//Calculate the id of the next kilobot to move
void checkIdOfNextKilobot(uint8_t id){
if (id==3)
{
numberNextMoving=0;
}else{
numberNextMoving=kilo_uid+1;
}
}
//Change the state of the next kilobot so that it starts moving
void nextKilobot(){
if (terminatedKilobots<=3)//If all the kilobots have been in motion, no kilobot will change their state again to move
{
if (kilo_uid==numberNextMoving)
{
mydata->my_state=MOVING;
numberNextMoving=9;
}
}
}
//This function check wheter all the kilobots have sent their messages, if so it analysis the final matrix of the kilobots and ends the game
void checkTerminatedKilobots(){
if (terminatedKilobots==4)
{
analyzedFinalMatrix();
movimientoFinal();
}
}
//This function is used to analyzed the matrix in wich the kilobots have been introducing the receive messages
void analyzedFinalMatrix(){
uint8_t attack=0;
uint8_t noattack=0;
for (int i = 0; i < 4; i++)
{
if(mydata->matrix_analyzed[i]==ATTACK){
attack=attack+1;
}else if (mydata->matrix_analyzed[i]==NOATTACK)
{
noattack=noattack+1;
}
}
if (attack < noattack)
{
mydata->decision=NOATTACK;
}else{
mydata->decision=ATTACK;
}
}
|
592401d5142f8bd07b5bfc57ba73091a2f7eeff2
|
91a9ec0e6fafb497bd3c2eeb52d90996a0ebe334
|
/libft/ft_memset.c
|
fde577ab3c5801c906fb2af89fe5a07c28718d83
|
[] |
no_license
|
FunkyOctopus/42_so_long
|
63040ffd35ca5d62fd1324d6ec4948be9419e0ea
|
aee9b1ade0a6e7efa5bc92246ce900b77f305740
|
refs/heads/master
| 2023-08-20T21:42:44.472574 | 2021-10-01T11:20:47 | 2021-10-01T11:20:47 | 412,436,849 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,106 |
c
|
ft_memset.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memset.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: olgerret <olgerret@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/06/15 10:46:25 by olgerret #+# #+# */
/* Updated: 2021/06/19 11:42:56 by olgerret ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void *ft_memset(void *b, int c, size_t len)
{
size_t i;
unsigned char *ptr;
i = 0;
ptr = (unsigned char *)b;
while (i < len)
{
ptr[i] = (unsigned char)c;
i++;
}
return (&b[0]);
}
|
93c56e0d4870a8a24ea7e5d79036ae06ab8f7561
|
70f63f6b356c665842e359469a89287106a5a754
|
/src/mudlib/d/simauria/comun/pnj/gundistyr/jefetroll.c
|
0212f0f3a5ad585ea5b34c80fd225e883a9a19d1
|
[] |
no_license
|
DPrenC/endor-mud
|
2aebc7af384db692c7dbc6c0a0dbb3c600e93ecc
|
3ca7605715ce2c02734c68766470f5d581b9fc98
|
refs/heads/master
| 2021-01-21T18:53:26.493953 | 2017-05-21T23:04:36 | 2017-05-21T23:04:36 | null | 0 | 0 | null | null | null | null |
ISO-8859-1
|
C
| false | false | 1,590 |
c
|
jefetroll.c
|
/* jefetroll.c
Autor: [n] Nemesis@simauria
[a] Articman
Descripción: El jefe de la banda de kobolds. Fuerte e hijoputa,
tendrá alrededor de nivel 40.
Modificado: 26-Jul-2001 [n] Creación
27-Ago-2001 [a] Modificaciones y adaptaciones
*/
#include <combat.h>
#include <properties.h>
#include <rooms.h>
#include "path.h"
#include <gremios.h>
inherit NPC;
create() {
::create();
SetStandard("Korthal","troll",([GC_LUCHADOR:37+random(5)]),GENERO_MASCULINO);
SetName("Korthal");
SetShort("Korthal el troll");
SetLong(W("Este es Korthal,un enorme troll, más de lo que suele ser la "
"media de su raza. Es una criatura bastante fuerte y fiera. Lidera a los "
"sucios kobolds a quienes tiraniza y esclaviza aprovechando su mayor "
"fuerza física y su levemente mayor inteligencia. No duda en abusar de "
"ellos e incluso sacrificarlos si lo cree conveniente.\n"));
SetIds(({"Korthal","korthal","troll"}));
SetAds(({"un"}));
SetMaxHP(450);
SetHP(450);
SetAlign(-5000);
SetAC(4);
SetAggressive(1);
InitAChats(5,({
"Korthal grita: '¡Te arrancaremos el alma a pedazos!'\n",
"Korthal grita: '¿Que haces aquí? ¡Te mataré!'",
"Korthal grita: '¡Atacad, inmundas criaturas!'"
}) );
AddItem(GOBJETO("arma/gundistyr/espada_ancha"),REFRESH_REMOVE,SF(wieldme));
AddItem(GOBJETO("proteccion/gundistyr/armadtroll"),REFRESH_REMOVE,SF(wearme));
AddItem(GOBJETO("proteccion/gundistyr/escudotroll"),REFRESH_REMOVE,SF(wearme));
}
public varargs void Die(mixed silent){
RemoveId(({"Korthal","korthal","troll"}));
::Die(silent);
}
|
581d975f853efddd11dba0ae956f028b2a8b3af3
|
57ce092e7a953b076613b36a0b95a01acc856c57
|
/EstruturadeDadosUFS/105Aula - EDD Listas Estaticas.c
|
fc30ac25ce5c20cd09ad8547b5edb46cd27f8ac7
|
[] |
no_license
|
denisfreitas999/learn-c
|
8c4f1806824611723059b3d47337980339e17d2f
|
013c417d89584c696d3ee66638cc55a902600028
|
refs/heads/master
| 2023-01-22T02:26:20.696072 | 2020-11-27T18:44:58 | 2020-11-27T18:44:58 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 652 |
c
|
105Aula - EDD Listas Estaticas.c
|
#include <stdio.h>
#include <stdlib.h>
#define MAX 10
struct aluno{
int matricula;
char nome[30];
float nota1,nota2,nota3;
};
typedef struct lista{
int qtd; //Quantidade de posições ocupadas na minha lista
struct aluno dados[MAX]; //Vetor que aloca 100 alunos com os dados da estrutura Aluno
}Lista;
Lista* cria_lista(){
Lista *li;
li = (Lista*)malloc(sizeof(Lista));
if(li != NULL){ // Verifica se a alocação funcionou;
li->qtd = 0;
return li;
}
}
void libera_lista(Lista* li){
free(li);
}
int main(void){
Lista *li;
li = cria_lista();
libera_lista(li);
return 0;
}
|
88fc2682468fc4cde63b6be9f01486845d6a1cce
|
83214753e9183327e98af0e6768e9be5385e5282
|
/d/hainan/taotree3.c
|
18d27094dfb636b1a75aa87a2ca0bb2211703597
|
[] |
no_license
|
MudRen/hymud
|
f5b3bb0e0232f23a48cb5f1db2e34f08be99614e
|
b9433df6cf48e936b07252b15b60806ff55bb2f3
|
refs/heads/main
| 2023-04-04T22:44:23.880558 | 2021-04-07T15:45:16 | 2021-04-07T15:45:16 | 318,484,633 | 1 | 5 | null | null | null | null |
GB18030
|
C
| false | false | 1,142 |
c
|
taotree3.c
|
// Room: /d/hainan/taotree3
#include <ansi.h>
inherit ROOM;
void create ()
{
set ("short", "桃花林");
set ("long", @LONG
一片绚烂的桃花林,正中有一个大理石砌成的水池,四边是绿茵草地,
白色的蒸汽从水池中冒出来,把这地方弄得蒙蒙胧胧,看来是[31m温泉[37m了,在白
雾中,似乎有几个窈窕身影.
LONG);
set("item_desc", ([ /* sizeof() == 1 */
"温泉" : "蒙蒙的雾气笼罩着温泉水池,看来洗个澡是个好主意!
想着,你都快忍不住要跳下去了(jump down)!
",
]));
set("objects", ([ /* sizeof() == 1 */
__DIR__"npc/ziyun.c" : 1,
]));
set("outdoors", "/d/hainan");
set("exits", ([ /* sizeof() == 2 */
"north" : __DIR__"outtree2",
"south" : __DIR__"taotree1",
]));
setup();
}
void init()
{
add_action("do_jump", "jump");
}
int do_jump(string sss)
{object ob;
ob=this_player();
if (sss!="down") return 0;
message_vision("$N飞快地脱掉衣服,噗通一声跳下了"+RED+"温泉!\n"+NOR,ob);
tell_room("/d/hainan/wenquan.c",ob->query("name")+"跳了下来,溅起一片水花!\n");
ob->move("/d/hainan/wenquan.c");
return 1;
}
|
2acd3065743295773dbb7483650305adf42629ad
|
325e984af30c0ab757a44548f95da6b7b6c8e432
|
/lib/matcalc/catalans.c
|
04e202cd649885a395625b47d7ad52afe3d705a9
|
[
"WTFPL"
] |
permissive
|
theoden8/matcalc
|
811e8ee4e1a3107f60b7f0c12db32f09900a5925
|
ff71e31d5aa854547b1f32280a83486e21a4e6a1
|
refs/heads/master
| 2021-01-13T10:14:46.814698 | 2020-06-10T17:29:48 | 2020-06-10T17:29:48 | 69,510,308 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 731 |
c
|
catalans.c
|
#include "catalans.h"
// catalan numbers are cowpowers of combinatorics which stand for the total
// possible ways to make up a balanced sequence of range twice as big as the
// index of a catalan number itself
//
// recursively,
// (1) c(n) = sum(c(i - 1) * c(n - i) | i <- [1..n]) : c(0) = 1
// iteratively,
// (1) c(n) = c_nk(2n, n) * 1/(n + 1)
// (2) c(n) = product( 2 * (2 * i - 1) / (i + 1) | i <- [1..n] )
void calc_catalans(size_t n, mpz_visitor visitor_func) {
mpz_t catalan;
mpz_init(catalan);
mpz_set_si(catalan, 1);
visitor_func(&catalan);
for(int i = 1; i < n; ++i) {
mpz_mul_ui(catalan, catalan, 2*(2*i - 1));
mpz_fdiv_q_ui(catalan, catalan, i + 1);
visitor_func(&catalan);
}
mpz_clear(catalan);
}
|
412b68e3719f24780a88a14521ae3d16f559a670
|
976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f
|
/source/freebsd/usr.bin/rpcgen/extr_rpc_main.c_file_name.c
|
6e29b17e1d0029448391679c64573713a17a9d16
|
[] |
no_license
|
isabella232/AnghaBench
|
7ba90823cf8c0dd25a803d1688500eec91d1cf4e
|
9a5f60cdc907a0475090eef45e5be43392c25132
|
refs/heads/master
| 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 716 |
c
|
extr_rpc_main.c_file_name.c
|
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward declarations */
/* Type definitions */
/* Variables and functions */
int /*<<< orphan*/ F_OK ;
int access (char*,int /*<<< orphan*/ ) ;
char* extendfile (char const*,char const*) ;
__attribute__((used)) static const char *
file_name(const char *file, const char *ext)
{
char *temp;
temp = extendfile(file, ext);
if (access(temp, F_OK) != -1)
return (temp);
else
return (" ");
}
|
a45b992da27899782f4b0af38b6aafb80ff50759
|
5ccf12d51fd8e7f2319baf793e5b3e6998c6da14
|
/src/game_loop.c
|
ba0d7b26d21cc447a9b90796b583f815b6f0e036
|
[
"MIT"
] |
permissive
|
Nilexplr/matchstick
|
fa8f8a4d8e939040867f5b2c121959706761076f
|
aba4562d4f8a13f66e85dc4700c075a8c160bc03
|
refs/heads/master
| 2020-03-11T06:45:29.237745 | 2018-04-17T03:16:27 | 2018-04-17T03:16:27 | 129,838,811 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,146 |
c
|
game_loop.c
|
/*
** EPITECH PROJECT, 2018
** game_loop.c
** File description:
** game loop function
*/
#include "matchstick.h"
mt_t *init_matchstick(int ligne_max, int nb_m)
{
mt_t *new = malloc(sizeof(mt_t));
new->ligne_max = ligne_max;
new->nb_m = nb_m;
new->nb = init_nb(ligne_max);
new->nb_off = init_nboff(ligne_max);
return (new);
}
static int check_error(mt_t *list, int i)
{
while ((i = updated_board_game(list)) != 0)
if (i == 84)
return (84);
return (0);
}
static void display_ia_turn(mt_t *mtchstk)
{
turn_ia(mtchstk);
print_game_board(mtchstk);
if (!finish_loop(mtchstk)) {
my_putstr("I lost... snif... but I'll ");
my_putstr("get you next time!!\n");
}
}
int run_game(int ligne_max, int nb_m)
{
mt_t *mtchstk = init_matchstick(ligne_max, nb_m);
int i;
print_game_board(mtchstk);
while (finish_loop(mtchstk)) {
my_putstr("\nYour turn:\n");
if ((i = check_error(mtchstk, i)) == 84)
return (84);
print_game_board(mtchstk);
if (!finish_loop(mtchstk)) {
my_putstr("You lost, too bad...\n");
return (2);
}
display_ia_turn(mtchstk);
if (!finish_loop(mtchstk)) {
return (1);
}
}
return (0);
}
|
abf0e3f54d5bc71f7bae6e207edf24444c4a8317
|
ccece961481c3c733ea0beb694ad0c531887acd3
|
/WorkSpace/WorkSpace/MK309_Simulator/TargetCalculation.c
|
1991e9dfd9e93d5d6859b6d6e92bdbabf7e5ef77
|
[] |
no_license
|
afreier8/Amcorp
|
2d1f2e1050c3909fc9e424359f804f80e8ee2f8b
|
516853cd0f7ae0f9063547c919a80ea6a1106a84
|
refs/heads/master
| 2020-03-19T00:56:25.432312 | 2018-06-30T04:55:10 | 2018-06-30T04:55:10 | 135,511,088 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 50 |
c
|
TargetCalculation.c
|
// Target Motion analysis, or target calculations
|
bdf5012025c98f3b675fb2773d74d0e3bfbcfca2
|
075ed80a041ae98a7ae9bb20a9551b4be6493a86
|
/d/Empire/islands/altdorf/obj/drink_firebreather.c
|
f9d31cef8a9e781c3faddbefc492518a5c2b7795
|
[] |
no_license
|
simonthoresen/viking
|
959c53f97c5dcb6c242d22464e3d7e2c42f65c66
|
c3b0de23a8cfa89862000d2c8bc01aaf8bf824ea
|
refs/heads/master
| 2021-03-12T21:54:46.636466 | 2014-10-10T07:28:55 | 2014-10-10T07:28:55 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 509 |
c
|
drink_firebreather.c
|
#include "/d/Empire/islands/altdorf.h"
inherit I_DRINK;
static void
create()
{
::create();
set_name("firebreather");
set_short("a firebreather");
set_long("This is a bottle filled with a steaming purple liquid.");
set_drinking_mess(" drinks a firebreather.\n");
set_drinker_mess("A shock wave runs through your body.\n");
set_strength(20);
set_soft_strength(0);
set_heal(25);
set_value(150);
set_weight(1);
set_full(1);
set_empty_container("bottle");
}
|
d8c6043d8b60d9085ca082af647f6ca597f0f25c
|
4065821a5733f750a6628e9f08dbdf275f00d2c7
|
/Motorola/MCore Dumper/C/Diab/5.2.1.0/include/diab/rta/rtaenv.h
|
2828070daabac83834e3b7ef8a60cabfca9e40c5
|
[
"MIT"
] |
permissive
|
erithion/old_junk
|
d0fa1bf2b1b85a3255b7482fb9e9ed56b0f3e794
|
b2dcaa23320824f8b2c17571f27826869ccd0d4b
|
refs/heads/master
| 2020-09-08T08:13:07.993843 | 2019-11-11T21:46:09 | 2019-11-11T21:46:09 | 221,074,417 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 31 |
h
|
rtaenv.h
|
#include "../../rta/rtaenv.h"
|
c81719577841a98849e7daef06c44a8385f4a537
|
dda8e991f487f5849ca3c64a312bb20bccd8cac4
|
/h/nmh.h
|
e3dd3c6c1a186f45c959ecc2bd3da3bc2fd3ba2e
|
[
"BSD-3-Clause"
] |
permissive
|
mcr/nmh
|
cf897f44612be9b7d8f4bd12d4921e5e3ae18937
|
e9d8f9d13bb4396be20832b2c1ec003f3edbe9ed
|
refs/heads/master
| 2021-03-12T19:56:01.610850 | 2019-09-30T15:06:16 | 2019-09-30T15:06:16 | 1,839,294 | 6 | 2 | null | null | null | null |
UTF-8
|
C
| false | false | 1,321 |
h
|
nmh.h
|
/* nmh.h -- system configuration header file
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <unistd.h>
#include <stdio.h>
#include <ctype.h>
#ifndef NDEBUG
/* See etc/gen-ctype-checked.c. */
#include "sbr/ctype-checked.h"
#endif
#include <assert.h>
#ifdef HAVE_STDBOOL_H
# include <stdbool.h>
#else
# define bool int
# define true 1
# define false 0
#endif
#include <sys/stat.h>
#include <sys/wait.h>
# include <dirent.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
#include <locale.h>
#include <limits.h>
#include <errno.h>
/*
* we should be getting this value from pathconf(_PC_PATH_MAX)
*/
#ifndef PATH_MAX
# ifdef MAXPATHLEN
# define PATH_MAX MAXPATHLEN
# else
/* so we will just pick something */
# define PATH_MAX 1024
# endif
#endif
/*
* we should get this value from sysconf(_SC_NGROUPS_MAX)
*/
#ifndef NGROUPS_MAX
# ifdef NGROUPS
# define NGROUPS_MAX NGROUPS
# else
# define NGROUPS_MAX 16
# endif
#endif
/*
* we should be getting this value from sysconf(_SC_OPEN_MAX)
*/
#ifndef OPEN_MAX
# ifdef NOFILE
# define OPEN_MAX NOFILE
# else
/* so we will just pick something */
# define OPEN_MAX 64
# endif
#endif
#ifndef HAVE_GETLINE
ssize_t getline(char **lineptr, size_t *n, FILE *stream);
#endif
|
94ab0b77d54a74b3c8e0fe68dbaccaae03ed5e6d
|
ba5b9dd49689ebc241b839c320ed58847cdd6933
|
/cf/umread_lib/c-lib/error.c
|
5734318bbc487906bb897b3d03531cd1dc57e577
|
[
"MIT"
] |
permissive
|
NCAS-CMS/cf-python
|
9b3f6d64603cdebfb627f832041d49fa33af3ff9
|
ed9e4c82740d5472a501f9e387354c865d450935
|
refs/heads/main
| 2023-09-04T01:11:34.715767 | 2023-08-31T13:53:45 | 2023-08-31T13:53:45 | 208,229,281 | 81 | 18 |
MIT
| 2023-08-31T12:10:37 | 2019-09-13T08:57:37 |
Python
|
UTF-8
|
C
| false | false | 1,313 |
c
|
error.c
|
#include <stdio.h>
#include <stdarg.h>
#include "umfileint.h"
static FILE *output = NULL;
static int verbose;
static const int do_debug = 1;
void switch_bug(const char *routine)
{
gripe("no match in switch statement in routine; "
"may indicate coding bug in umfile or unexpected header value");
}
void gripe(const char *routine)
{
if (verbose || do_debug)
{
fprintf(output, "umfile: error condition detected in routine %s\n",
routine);
fflush(output);
}
verbose = 0;
}
void error_mesg(const char *fmt, ...)
{
va_list args;
if (verbose || do_debug)
{
va_start(args, fmt);
vfprintf(output, fmt, args);
fprintf(output, "\n");
va_end(args);
fflush(output);
}
verbose = 0;
}
void debug(const char *fmt, ...)
{
va_list args;
if (do_debug)
{
va_start(args, fmt);
fprintf(output, "DEBUG: ");
vfprintf(output, fmt, args);
fprintf(output, "\n");
va_end(args);
fflush(output);
}
}
void errorhandle_init()
{
/* init sets verbose -- called at start of each of the interface routines --
* then first call to error will cause a diagnostic to be printed,
* but then unsets verbose to avoid series of knock-on messages
*/
verbose = 1;
if (output == NULL)
output = stderr;
}
|
5fc6f1163da88e6ba94c8a031618edee2ebc5015
|
d2afd625705a38a12c3505ddb4c163fce76b0a55
|
/Code/Task 4-Functions/new_functions/set_traffic_status.c
|
092773fa79de1d7ab825e63072cc9739f75f6fb6
|
[] |
no_license
|
nile1/TrAn-SiSS-Traffic-Analyser-and-Signaling-System-Simulator
|
55f743bf76416a808f713272fd820a7dcffcc7e3
|
e5a6f4abce698b3396cbc572bfec82f2b8b7beeb
|
refs/heads/master
| 2021-08-28T07:04:37.032909 | 2017-12-11T14:07:58 | 2017-12-11T14:07:58 | 113,865,823 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,159 |
c
|
set_traffic_status.c
|
float set_traffic_status(street_t *s, traffic_sig_jn_t *t)
{
lane *l;
int i, j, k, street type, sum=0 ;
i = get_tsj_index(s,t);
street = get_street_type(s);
if(i==0)
{
l= streets->lanes[i];
}
else if(i==1)
{
l= streets->lanes[i];
}
if(street==2)
{
K=l[0]->current_vehicles;
float array[K];
for(i=0 ; i<K ; i++)
{
array[i] = vehicle_type(l[0]->queue[i]);
}
}
else if(street==4)
{
K= l[0]->current_vehicles + l[1]->current_vehicles;
float array[K];
type = 0;
for(j=0;j<2;j++)
{
for(i=0 ; i<l[j]->current_vehicles ; i++)
{
array[type+i] = vehicle_type(l[j]->queue[i]);
}
type = i;
}
}
for(i=0;i<k;i++)
{
sum += array[i];
}
if (street==2)
{
(float)i= (sum*100)/(l[0]->max_vehicles*2.25);
}
else if (street==4)
{
(float)i= (sum*200)/(l[0]->max_vehicles*2.25);
}
return i;
}
|
6769bb978d011a66d6706ac0aa46227035cd35bc
|
f2fdcfa6f6474c5c3c3a92c6cd7314643c723b78
|
/targets/jm-v2.0/profile/crank.c
|
be837feee9b540eec3a26c9f19f917f923a562d6
|
[
"LicenseRef-scancode-generic-cla",
"MIT"
] |
permissive
|
QPC-database/jacdac-msr-modules
|
06c14eb5666918a4ea303416870672121e3a63d1
|
0762999a036cd1fb577bf9585e3eaa94219ad982
|
refs/heads/main
| 2023-06-10T07:09:03.497114 | 2021-06-07T22:01:32 | 2021-06-07T22:01:32 | 383,526,092 | 1 | 0 |
MIT
| 2021-07-06T16:02:51 | 2021-07-06T16:02:50 | null |
UTF-8
|
C
| false | false | 144 |
c
|
crank.c
|
#include "jdprofile.h"
FIRMWARE_IDENTIFIER(0x33a8780b, "JM Crank v2.0");
void app_init_services() {
rotaryencoder_init(PA_6, PA_5, 24);
}
|
fa663d41ff608e50b8f51439a57a4ae0d009bc5f
|
754a9e7b38526b87484bee9e253d3f3e2698134f
|
/6320502410_lab3_6.c
|
c4946dea6d5a0a1834af96412df5792affe5258a
|
[] |
no_license
|
Nitiphat2/223_lab3
|
73b65ddca536c9328d354b37a4740deb709b80fb
|
627b3eaafb2f44e4686dc0c3db53af8a3cc8024c
|
refs/heads/main
| 2023-03-05T09:04:40.632338 | 2021-02-18T10:58:28 | 2021-02-18T10:58:28 | 339,971,385 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,370 |
c
|
6320502410_lab3_6.c
|
#include<stdio.h>
int main()
{
unsigned long long int num,i,j=0,a,p,r=0;
scanf("%llu",&num);
while(r!=1)
{
for(i=2; i<=num; i++)
{
if(i==num&&j==0)
{
p=i;
a=p;
for(i=0; a>0; i++)
{
a=a/10;
}
int t[i],l,m[i],h,b=0,z;
a=p;
i--;
for(l=i,h=0; l>=0,h<=i; l--,h++)
{
m[l] = a%10;
t[h] = a%10;
a = a/10;
}
for(l=0; l<=i; l++)
{
if(m[l]==t[l])
{
b=1;
}
else
{
z=0;
}
}
if(b==1&&z!=0)
{
for(h=0; h<=i; h++)
{
printf("%d",m[h]);
}
r=1;
}
else
{
z=1;
}
}
else if(num%i==0)
{
j++;
}
}
if(r!=1)
{
num--;
}
j=0;
}
}
|
fdffec6bb8e7d3875183251e5068102483cbe9b5
|
c0be67a3de3ddbcdba7b7c04741f308605d02d28
|
/code/main.c
|
11fb852b9590bbb48c740625c61ac184c08f368a
|
[] |
no_license
|
LucasMiguel/Trabalho-Final-Arquitetura-Computadores
|
95a36fed3c721e948d1fe446ff73668b14d8e800
|
692639a8eda9c017425b331cdf5e81cef18831cb
|
refs/heads/main
| 2023-01-23T13:57:12.250007 | 2020-11-22T20:17:47 | 2020-11-22T20:17:47 | 315,123,112 | 0 | 0 | null | null | null | null |
ISO-8859-1
|
C
| false | false | 2,951 |
c
|
main.c
|
#include <18F4520.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock = 8000000)
#use fast_io(B)
#use rs232(baud=9600,xmit=pin_C6,rcv=pin_C7) //Comunicação Serial com console
#define DHT11_PIN PIN_B4 // connection pin between DHT11 and mcu
short Time_out;
unsigned int8 T_byte1, T_byte2, RH_byte1, RH_byte2, CheckSum;
char valueC[2];
int value;
void start_signal(){
output_drive(DHT11_PIN); // configure connection pin as output
output_low(DHT11_PIN); // connection pin output low
delay_ms(25);
output_high(DHT11_PIN); // connection pin output high
delay_us(30);
output_float(DHT11_PIN); // configure connection pin as input
}
short check_response(){
delay_us(40);
if(!input(DHT11_PIN)){ // read and test if connection pin is low
delay_us(80);
if(input(DHT11_PIN)){ // read and test if connection pin is high
delay_us(50);
return 1;
}
}
}
unsigned int8 Read_Data(){
unsigned int8 i, k, _data = 0; // k is used to count 1 bit reading duration
if(Time_out)
break;
for(i = 0; i < 8; i++){
k = 0;
while(!input(DHT11_PIN)){ // Wait until DHT11 pin get raised
k++;
if(k > 100){
Time_out = 1;
break;
}
delay_us(1);
}
delay_us(30);
if(!input(DHT11_PIN))
bit_clear(_data, (7 - i)); // Clear bit (7 - i)
else{
bit_set(_data, (7 - i)); // Set bit (7 - i)
while(input(DHT11_PIN)){ // Wait until DHT11 pin goes low
k++;
if(k > 100){
Time_out = 1;
break;
}
delay_us(1);}
}
}
return _data;
}
void main(){
while(TRUE){
Time_out = 0;
Start_signal();
if(check_response()){ // If there is a response from sensor
RH_byte1 = Read_Data(); // read RH byte1
RH_byte2 = Read_Data(); // read RH byte2
T_byte1 = Read_Data(); // read T byte1
T_byte2 = Read_Data(); // read T byte2
Checksum = Read_Data(); // read checksum
if(Time_out){ // If reading takes long time
printf("\nTime out!");
}
else{
if(CheckSum == ((RH_Byte1 + RH_Byte2 + T_Byte1 + T_Byte2) & 0xFF)){
valueC[0] = RH_Byte1/10 + 48;
valueC[1] = RH_Byte1%10 + 48;
value = atoi(valueC);
printf("%d", value);
if(value < 40){ //Determina quando irá começar a ligar a bomba
output_high(pin_D0);
}else if(value >= 85){ //Determina quando irá desligar a bomba
output_low(pin_D0);
}
}
else{
printf("\nChecksum Error!");
}
}
}
else {
printf("\nSem sinal");
}
delay_ms(1000);
}
}
|
954611c37bd4ee4c0a414728d84738b55e562503
|
1a0b253e0958af55abd67bdbcd3cd96ae34d88e6
|
/mySrc/day8/acc_perm.c
|
3b5bc7ed58f2a1a2bbf2df60896a722eb791b829
|
[] |
no_license
|
DaewooNam/Git_Linux
|
84f9cdd7973c0cea925a79145f58f22b47f88f88
|
a81e6aaa24e8a07e6e0f71b05e1590c7c9a298f5
|
refs/heads/master
| 2020-03-08T12:53:42.738846 | 2018-04-13T08:38:15 | 2018-04-13T08:38:15 | 127,830,301 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,243 |
c
|
acc_perm.c
|
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
void access_perm(char *perm, mode_t mode){
int i;
char permchar[] = "rwx";
memset(perm,'-',10);
if(S_ISDIR(mode)) perm[0] = 'd';
else if (S_ISCHR(mode)) perm[0] = 'c';
else if (S_ISBLK(mode)) perm[0] = 'b';
else if (S_ISFIFO(mode))perm[0] = 'p';
else if (S_ISLNK(mode))perm[0] = 'l';
for(i=0;i<9;i++){
if((mode<<i)&0x100)
perm[i+1] = permchar[i%3];
}
if(mode & S_ISUID) perm[3] = 's';
if(mode & S_ISGID) perm[6] = 's';
if(mode & S_ISVTX) perm[9] = 't';
}
main(int argc, char **argv)
{
DIR *dp;
struct stat statbuf;
struct dirent *dent;
char perm[11];
char pathname[80];
if(argc<2) exit(1);
stat(argv[1],&statbuf);
if(!S_ISDIR(statbuf.st_mode)){
fprintf(stderr, "%s is not directory\n",argv[1]);
exit(1);
}
if((dp=opendir(argv[1]))==NULL){
perror("Error:");
exit(1);
}
printf("Lists of Directory(%s):\n",argv[1]);
while(dent = readdir(dp) != NULL){
sprintf(pathname,"%s/%s",argv[1],dent->d_name);
lstat(pathname, &statbuf);
access_perm(perm,statbuf.st_mode);
printf("%s %8ld %s\n",perm,statbuf.st_size,dent->d_name);
}
closedir(dp);
}
|
67e3ac60794b4160b9fc827fea6922bb4797be23
|
0b8d2f007509f83a02672ede59225a85436e854a
|
/gateway/source/Mocana/common/moptions_custom.h
|
c4785ff0ecd7482f2c5c0c96923f68504a6b2ae5
|
[] |
no_license
|
Bondzio/dots-on-a-map
|
0d1ed53a293325f0cda73927acaa25497609886d
|
af2df09c909dad64da2912497d98b009f70f93c5
|
refs/heads/master
| 2021-09-22T15:58:59.756112 | 2018-09-11T17:04:33 | 2018-09-11T17:06:39 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,171 |
h
|
moptions_custom.h
|
/* Version: mss_v5_5_26511 */
/*
* Use this file to add your own custom #defines to moptions.h without the
* potential for merge conflicts.
*/
#ifndef __MOPTIONS_CUSTOM_HEADER__
#define __MOPTIONS_CUSTOM_HEADER__
#ifdef __cplusplus
extern "C" {
#endif
/*------------------------------------------------------------------*/
/* Add your own custom #defines here */
/*------------------------------------------------------------------*/
// enable string lookup of error messages
#define __ENABLE_LOOKUP_TABLE__
// enable cert conversion from pem
#define __ENABLE_MOCANA_PKCS10__
#define __ENABLE_MOCANA_PEM_CONVERSION__
#define __ENABLE_MOCANA_SSL_CLIENT__
#define __ENABLE_MOCANA_SSL_MUTUAL_AUTH_SUPPORT__
#define __ENABLE_MOCANA_SSL_SERVER__
#define __ENABLE_SSL_DYNAMIC_CERTIFICATE__
//#define __ENABLE_RFC3546__
//#define __ENABLE_MOCANA_SSL_PSK_SUPPORT__
//#define __ENABLE_MOCANA_RSA_ALL_KEYSIZE__
#if 0
#define __ENABLE_MOCANA_DTLS_CLIENT__
#define __ENABLE_MOCANA_DTLS_SERVER__
#endif
//#define __ENABLE_MOCANA_SSL_ECDHE_SUPPORT__
//#define __ENABLE_MOCANA_SSL_CIPHER_SUITES_SELECT__
//#define __DISABLE_MOCANA_SHA384__
//#define __ENABLE_MOCANA_SSL_NEW_HANDSHAKE__
//#define __ENABLE_MOCANA_SSL_PSK_SUPPORT__
//#define __ENABLE_RFC3576__
//#define __ENABLE_TLSEXT_RFC6066__
//#define __ENABLE_MOCANA_SSL_CLIENT_EXAMPLE__
//#define __ENABLE_MOCANA_EXAMPLES__
#define __UCOS__
// prevents a problem calling createThread
#define __DISABLE_MOCANA_RAND_ENTROPY_THREADS__
// need to use if ucos system time is not properly set
#define __MOCANA_DISABLE_CERT_TIME_VERIFY__
// smaller code footprint options
#define __ENABLE_MOCANA_SMALL_CODE_FOOTPRINT__
#define SSL_DEFAULT_SMALL_BUFFER 256
#if 0
#define SSL_RECORDSIZE 1024
#endif
#define RTOS_malloc UCOS_malloc
#define RTOS_free UCOS_free
//#define __ENABLE_UCOS_FS__
// for console debug
//#define __ENABLE_MOCANA_DEBUG_CONSOLE__
//#define __MOCANA_DUMP_CONSOLE_TO_STDOUT__
//#define __ENABLE_ALL_DEBUGGING__
/*------------------------------------------------------------------*/
#ifdef __cplusplus
}
#endif
#endif /* __MOPTIONS_CUSTOM_HEADER__ */
|
c9a1acf9bc1af2d2484db5f7150931f24ab02af1
|
58d55b4e7bcfaec8cf700cb108d6931c35a9a4ed
|
/Subprogramas/menorVec.h
|
0bff6a354e1edfcc4c2b2cbb0ae5e54d37763e52
|
[] |
no_license
|
sapuru/ZinjaI
|
127494ae03e671ce82afc34cb75e7e495d689285
|
0a5c8ab1ab2fb390478f9466c946ba23ca7f60d4
|
refs/heads/master
| 2021-01-12T11:46:54.417993 | 2017-03-02T17:25:55 | 2017-03-02T17:25:55 | 69,741,474 | 1 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 121 |
h
|
menorVec.h
|
#include <program1.h>
#ifndef MENORVEC_H
#define MENORVEC_H
plantilla(Tipo)
funcion Tipo menorVec(entero,Tipo[]);
#endif
|
0013ee5beff0686e9c9f3e9a3ece4179cbd5aa1d
|
2f1e92f2f6489e6c2a546dd741cd9eb0b7959848
|
/decl.c
|
371bc17f0029a7664608ec5b1d43bd8835cf5985
|
[] |
no_license
|
lance2088/compiler-theory
|
b3ece55b5e248b1bcf83f11607c19981047e221b
|
3928952c82e52e0260854ab10f646957efc3e1cb
|
refs/heads/master
| 2021-01-18T12:28:02.832176 | 2013-02-15T15:31:55 | 2013-02-15T15:31:55 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 10 |
c
|
decl.c
|
int a
a=5;
|
05e7738a66d8281ac2122c4f5089e93d0f4223c6
|
54c780592f37a01ba00264d8d0b9229aa4d673c0
|
/lib/hash/sha2_256.c
|
9eea5fb563f7c682539833cbcfdb6c47a6657402
|
[
"0BSD"
] |
permissive
|
LightBit/libkripto
|
398abf2d4bb38b0561eb852b49d8ca1d3f3d9964
|
e03d9720b73d3302fd04a82a5e054ff583a2b065
|
refs/heads/master
| 2023-01-14T06:15:01.708501 | 2023-01-01T15:03:05 | 2023-01-01T15:03:05 | 405,052,224 | 5 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 8,137 |
c
|
sha2_256.c
|
/*
* Copyright (C) 2013 by Gregor Pintar <grpintar@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
#include <kripto/cast.h>
#include <kripto/loadstore.h>
#include <kripto/rotate.h>
#include <kripto/memory.h>
#include <kripto/hash.h>
#include <kripto/desc/hash.h>
#include <kripto/hash/sha2_256.h>
struct kripto_hash
{
const kripto_desc_hash *desc;
uint64_t len;
uint32_t h[8];
uint8_t buf[64];
unsigned int r;
unsigned int i;
int o;
};
static const uint32_t RC[128] =
{
0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,
0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,
0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,
0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,
0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,
0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,
0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,
0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,
0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,
0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,
0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,
0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,
0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,
0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,
0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,
0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2,
0xCA273ECE, 0xD186B8C7, 0xEADA7DD6, 0xF57D4F7F,
0x06F067AA, 0x0A637DC5, 0x113F9804, 0x1B710B35,
0x28DB77F5, 0x32CAAB7B, 0x3C9EBE0A, 0x431D67C4,
0x4CC5D4BE, 0x597F299C, 0x5FCB6FAB, 0x6C44198C,
0x7BA0EA2D, 0x7EABF2D0, 0x8DBE8D03, 0x90BB1721,
0x99A2AD45, 0x9F86E289, 0xA84C4472, 0xB3DF34FC,
0xB99BB8D7, 0xBC76CBAB, 0xC226A69A, 0xD304F19A,
0xDE1BE20A, 0xE39BB437, 0xEE84927C, 0xF3EDD277,
0xFBFDFE53, 0x0BEE2C7A, 0x0E90181C, 0x25F57204,
0x2DA45582, 0x3A52C34C, 0x41DC0172, 0x495796FC,
0x4BD31FC6, 0x533CDE21, 0x5F7ABFE3, 0x66C206B3,
0x6DFCC6BC, 0x7062F20F, 0x778D5127, 0x7EABA3CC,
0x8363ECCC, 0x85BE1C25, 0x93C04028, 0x9F4A205F,
0xA1953565, 0xA627BB0F, 0xACFA8089, 0xB3C29B23,
0xB602F6FA, 0xC36CEE0A, 0xC7DC81EE, 0xCE7B8471,
0xD740288C, 0xE21DBA7A, 0xEABBFF66, 0xF56A9E60
};
static kripto_hash *sha2_256_recreate
(
kripto_hash *s,
unsigned int r,
const void *salt,
unsigned int salt_len,
unsigned int out_len
)
{
(void)salt;
(void)salt_len;
s->len = s->o = s->i = 0;
s->r = r;
if(!s->r) s->r = 64;
if(out_len > 28)
{
/* 256 */
s->h[0] = 0x6A09E667;
s->h[1] = 0xBB67AE85;
s->h[2] = 0x3C6EF372;
s->h[3] = 0xA54FF53A;
s->h[4] = 0x510E527F;
s->h[5] = 0x9B05688C;
s->h[6] = 0x1F83D9AB;
s->h[7] = 0x5BE0CD19;
}
else
{
/* 224 */
s->h[0] = 0xC1059ED8;
s->h[1] = 0x367CD507;
s->h[2] = 0x3070DD17;
s->h[3] = 0xF70E5939;
s->h[4] = 0xFFC00B31;
s->h[5] = 0x68581511;
s->h[6] = 0x64F98FA7;
s->h[7] = 0xBEFA4FA4;
}
return s;
}
#define CH(X0, X1, X2) (X2 ^ (X0 & (X1 ^ X2)))
#define MAJ(X0, X1, X2) ((X0 & X1) | (X2 & (X0 | X1)))
#define S0(X) (ROR32_07(X) ^ ROR32_18(X) ^ ((X) >> 3))
#define S1(X) (ROR32_17(X) ^ ROR32_19(X) ^ ((X) >> 10))
#define E0(X) (ROR32_02(X) ^ ROR32_13(X) ^ ROR32_22(X))
#define E1(X) (ROR32_06(X) ^ ROR32_11(X) ^ ROR32_25(X))
#define ROUND(A, B, C, D, E, F, G, H, RC, RK) \
{ \
H += E1(E) + CH(E, F, G) + RC + RK; \
D += H; \
H += E0(A) + MAJ(A, B, C); \
}
#define KI(K, I) \
( \
K[I & 15] += S0(K[(I + 1) & 15]) \
+ K[(I + 9) & 15] \
+ S1(K[(I + 14) & 15]) \
)
static void sha2_256_process(kripto_hash *s, const uint8_t *data)
{
uint32_t a = s->h[0];
uint32_t b = s->h[1];
uint32_t c = s->h[2];
uint32_t d = s->h[3];
uint32_t e = s->h[4];
uint32_t f = s->h[5];
uint32_t g = s->h[6];
uint32_t h = s->h[7];
uint32_t k[16];
k[ 0] = LOAD32B(data );
k[ 1] = LOAD32B(data + 4);
k[ 2] = LOAD32B(data + 8);
k[ 3] = LOAD32B(data + 12);
k[ 4] = LOAD32B(data + 16);
k[ 5] = LOAD32B(data + 20);
k[ 6] = LOAD32B(data + 24);
k[ 7] = LOAD32B(data + 28);
k[ 8] = LOAD32B(data + 32);
k[ 9] = LOAD32B(data + 36);
k[10] = LOAD32B(data + 40);
k[11] = LOAD32B(data + 44);
k[12] = LOAD32B(data + 48);
k[13] = LOAD32B(data + 52);
k[14] = LOAD32B(data + 56);
k[15] = LOAD32B(data + 60);
ROUND(a, b, c, d, e, f, g, h, RC[ 0], k[ 0]);
ROUND(h, a, b, c, d, e, f, g, RC[ 1], k[ 1]);
ROUND(g, h, a, b, c, d, e, f, RC[ 2], k[ 2]);
ROUND(f, g, h, a, b, c, d, e, RC[ 3], k[ 3]);
ROUND(e, f, g, h, a, b, c, d, RC[ 4], k[ 4]);
ROUND(d, e, f, g, h, a, b, c, RC[ 5], k[ 5]);
ROUND(c, d, e, f, g, h, a, b, RC[ 6], k[ 6]);
ROUND(b, c, d, e, f, g, h, a, RC[ 7], k[ 7]);
ROUND(a, b, c, d, e, f, g, h, RC[ 8], k[ 8]);
ROUND(h, a, b, c, d, e, f, g, RC[ 9], k[ 9]);
ROUND(g, h, a, b, c, d, e, f, RC[10], k[10]);
ROUND(f, g, h, a, b, c, d, e, RC[11], k[11]);
ROUND(e, f, g, h, a, b, c, d, RC[12], k[12]);
ROUND(d, e, f, g, h, a, b, c, RC[13], k[13]);
ROUND(c, d, e, f, g, h, a, b, RC[14], k[14]);
ROUND(b, c, d, e, f, g, h, a, RC[15], k[15]);
for(unsigned int i = 16; i < s->r;)
{
ROUND(a, b, c, d, e, f, g, h, RC[i], KI(k, i)); i++;
ROUND(h, a, b, c, d, e, f, g, RC[i], KI(k, i)); i++;
ROUND(g, h, a, b, c, d, e, f, RC[i], KI(k, i)); i++;
ROUND(f, g, h, a, b, c, d, e, RC[i], KI(k, i)); i++;
ROUND(e, f, g, h, a, b, c, d, RC[i], KI(k, i)); i++;
ROUND(d, e, f, g, h, a, b, c, RC[i], KI(k, i)); i++;
ROUND(c, d, e, f, g, h, a, b, RC[i], KI(k, i)); i++;
ROUND(b, c, d, e, f, g, h, a, RC[i], KI(k, i)); i++;
}
kripto_memory_wipe(k, 64);
s->h[0] += a;
s->h[1] += b;
s->h[2] += c;
s->h[3] += d;
s->h[4] += e;
s->h[5] += f;
s->h[6] += g;
s->h[7] += h;
}
static void sha2_256_input
(
kripto_hash *s,
const void *in,
size_t len
)
{
for(size_t i = 0; i < len; i++)
{
s->buf[s->i++] = CU8(in)[i];
if(s->i == 64)
{
s->len += 512;
assert(s->len >= 512);
sha2_256_process(s, s->buf);
s->i = 0;
}
}
}
static void sha2_256_finish(kripto_hash *s)
{
s->len += s->i << 3;
assert(s->len >= (s->i << 3));
s->buf[s->i++] = 0x80; /* pad */
if(s->i > 56) /* not enough space for length */
{
while(s->i < 64) s->buf[s->i++] = 0;
sha2_256_process(s, s->buf);
s->i = 0;
}
while(s->i < 56) s->buf[s->i++] = 0;
/* add length */
STORE64B(s->len, s->buf + 56);
sha2_256_process(s, s->buf);
s->i = 0;
s->o = -1;
}
static void sha2_256_output(kripto_hash *s, void *out, size_t len)
{
if(!s->o) sha2_256_finish(s);
assert(s->i + len <= 32);
STORE32B_ARRAY(s->h, s->i, out, len);
s->i += len;
}
static kripto_hash *sha2_256_create
(
const kripto_desc_hash *desc,
unsigned int r,
const void *salt,
unsigned int salt_len,
unsigned int out_len
)
{
kripto_hash *s = (kripto_hash *)malloc(sizeof(kripto_hash));
if(!s) return 0;
s->desc = desc;
return sha2_256_recreate(s, r, salt, salt_len, out_len);
}
static void sha2_256_destroy(kripto_hash *s)
{
kripto_memory_wipe(s, sizeof(kripto_hash));
free(s);
}
static int sha2_256_hash
(
const kripto_desc_hash *desc,
unsigned int r,
const void *salt,
unsigned int salt_len,
const void *in,
size_t in_len,
void *out,
size_t out_len
)
{
kripto_hash s;
(void)desc;
(void)sha2_256_recreate(&s, r, salt, salt_len, out_len);
sha2_256_input(&s, in, in_len);
sha2_256_output(&s, out, out_len);
kripto_memory_wipe(&s, sizeof(kripto_hash));
return 0;
}
static const kripto_desc_hash sha2_256 =
{
&sha2_256_create,
&sha2_256_recreate,
&sha2_256_input,
&sha2_256_output,
&sha2_256_destroy,
&sha2_256_hash,
32, /* max output */
64, /* block_size */
0 /* max salt */
};
const kripto_desc_hash *const kripto_hash_sha2_256 = &sha2_256;
|
df7d98c16c48e1bcbbc998c8617be3f4f5eec38f
|
1c612c0d642bf4ceb9a03b1b08ce04c6687e8fd2
|
/uefi/src/uefi-graphics.c
|
c310e5e0ef7a3e0bdf32e2379f8202749c62b229
|
[
"MIT"
] |
permissive
|
Janrupf/smalldoku
|
f1a4a40b09f47cb397c6b08ff658443a656d33d6
|
e5fff381a3a111166c318fa466581d66f208a8fd
|
refs/heads/main
| 2023-05-30T19:06:30.619272 | 2021-06-18T00:27:49 | 2021-06-18T00:27:49 | 376,417,011 | 5 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 12,012 |
c
|
uefi-graphics.c
|
#include "smalldoku-uefi/smalldoku-uefi-graphics.h"
#include <efilib.h>
static EFI_GUID GRAPHICS_PROTOCOL_GUID = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID;
#define I_MIN(a, b) (((a) < (b)) ? (a) : (b))
static uint32_t strlen(const char *str) {
uint32_t len = 0;
while (*str) {
len++;
str++;
}
return len;
}
static uint32_t convert_rgba_to_mode(uefi_graphics_t *graphics, uint32_t rgb) {
switch (graphics->protocol->Mode->Info->PixelFormat) {
case PixelRedGreenBlueReserved8BitPerColor:
return ((rgb & 0xFF0000) >> 16) |
((rgb & 0x00FF00) >> 8) |
((rgb & 0x0000FF) << 8);
case PixelBltOnly:
case PixelBlueGreenRedReserved8BitPerColor:
return rgb;
default:
__asm__("ud2"); /* Should never happen */
return 0xFFFFFF;
}
}
static void set_pixel(uefi_graphics_t *graphics, uint32_t x, uint32_t y, uint32_t native_color) {
if (x > graphics->width || y > graphics->height) {
return;
}
char *framebuffer_base = graphics->pixel_buffer ? graphics->pixel_buffer
: (char *) graphics->protocol->Mode->FrameBufferBase;
uint32_t pixels_per_scan_line = graphics->pixel_buffer ? graphics->width
: graphics->protocol->Mode->Info->PixelsPerScanLine;
*((uint32_t *) (framebuffer_base + 4 * pixels_per_scan_line * y + 4 * x)) = native_color;
}
static void query_size(uefi_graphics_t *graphics, uint32_t *width, uint32_t *height) {
*width = graphics->width;
*height = graphics->height;
}
static void query_text_size(uefi_graphics_t *graphics, const char *text, uint32_t *width, uint32_t *height) {
if (width) {
*width = uefi_graphics_text_width(graphics, text);
}
if (height) {
*height = uefi_graphics_text_height(graphics);
}
}
uefi_graphics_init_status_t uefi_graphics_initialize(smalldoku_uefi_application_t *application, uefi_graphics_t *out) {
EFI_STATUS status;
UINTN handle_count;
EFI_HANDLE *handles = NULL;
status = application->boot_services->LocateHandleBuffer(
ByProtocol,
&GRAPHICS_PROTOCOL_GUID,
NULL,
&handle_count,
&handles
);
if (EFI_ERROR(status)) {
if (handles != NULL) {
application->boot_services->FreePool(handles);
}
return status == EFI_NOT_FOUND ? UEFI_GRAPHICS_NO_PROTOCOL : UEFI_GRAPHICS_UNKNOWN_ERROR;
}
Print(u"Found %d graphics protocols\n", handle_count);
for (uint32_t i = 0; i < handle_count; i++) {
EFI_GRAPHICS_OUTPUT_PROTOCOL *opened_protocol;
status = application->boot_services->OpenProtocol(
handles[i],
&GRAPHICS_PROTOCOL_GUID,
(void **) &opened_protocol,
application->image_handle,
NULL,
EFI_OPEN_PROTOCOL_EXCLUSIVE
);
if (EFI_ERROR(status)) {
continue;
}
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *mode_information;
UINTN mode_information_size;
status = opened_protocol->QueryMode(opened_protocol, 0, &mode_information_size, &mode_information);
if (EFI_ERROR(status)) {
if (status == EFI_NOT_STARTED) {
if (EFI_ERROR(opened_protocol->SetMode(opened_protocol, 0))) {
application->boot_services->CloseProtocol(
handles[i],
&GRAPHICS_PROTOCOL_GUID,
application->image_handle,
NULL
);
continue;
}
} else {
application->boot_services->CloseProtocol(
handles[i],
&GRAPHICS_PROTOCOL_GUID,
application->image_handle,
NULL
);
continue;
}
}
if (mode_information) {
application->boot_services->FreePool(mode_information);
}
uint32_t most_suitable_width = 0;
uint32_t most_suitable_height = 0;
uint32_t most_suitable_mode_id = 0;
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION most_suitable_mode;
for (uint32_t mode_i = 0; mode_i < opened_protocol->Mode->MaxMode; mode_i++) {
status = opened_protocol->QueryMode(opened_protocol, mode_i, &mode_information_size, &mode_information);
if (EFI_ERROR(status)) {
continue;
}
DbgPrint(D_INFO,
(const unsigned char *) "Considering video mode %d with %dx%d, current mode is %d with %dx%d\n",
mode_i, mode_information->HorizontalResolution, mode_information->VerticalResolution,
most_suitable_mode_id, most_suitable_width, most_suitable_height);
if (mode_information->PixelFormat != PixelBitMask) {
if (
(!most_suitable_width || !most_suitable_height) ||
(
most_suitable_width < mode_information->HorizontalResolution &&
mode_information->HorizontalResolution <= 1920 &&
most_suitable_height < mode_information->VerticalResolution &&
mode_information->VerticalResolution <= 1080
)
) {
most_suitable_width = mode_information->HorizontalResolution;
most_suitable_height = mode_information->VerticalResolution;
most_suitable_mode_id = mode_i;
application->boot_services->CopyMem(
&most_suitable_mode,
mode_information,
I_MIN(sizeof(most_suitable_mode), mode_information_size)
);
}
}
application->boot_services->FreePool(mode_information);
}
if (most_suitable_width && most_suitable_height) {
Print(u"Selected video mode %d: %dx%d\n", most_suitable_mode_id, most_suitable_mode.HorizontalResolution,
most_suitable_mode.VerticalResolution);
if (EFI_ERROR(opened_protocol->SetMode(opened_protocol, most_suitable_mode_id))) {
application->boot_services->CloseProtocol(
handles[i],
&GRAPHICS_PROTOCOL_GUID,
application->image_handle,
NULL
);
continue;
}
application->boot_services->FreePool(handles);
out->query_size = (smalldoku_query_size_fn) query_size;
out->query_text_size = (smalldoku_query_text_size_fn) query_text_size;
out->set_fill = (smalldoku_set_fill_fn) uefi_graphics_set_fill;
out->draw_rect = (smalldoku_draw_rect_fn) uefi_graphics_draw_rect;
out->draw_text = (smalldoku_draw_text_fn) uefi_graphics_draw_text;
out->request_redraw = (smalldoku_request_redraw_fn) uefi_graphics_request_redraw;
out->protocol = opened_protocol;
out->font = NULL;
out->font_scale = 0;
out->width = most_suitable_mode.HorizontalResolution;
out->height = most_suitable_mode.VerticalResolution;
out->pixel_format = most_suitable_mode.PixelFormat;
out->should_redraw = TRUE;
/* if (most_suitable_mode.PixelFormat != PixelBltOnly) {
DbgPrint(D_INFO, (const unsigned char *) "Using direct framebuffer for video operations!\n");
out->pixel_buffer = NULL;
} else {
DbgPrint(D_INFO, (const unsigned char *) "Using backbuffer for video operations!\n");
application->boot_services->AllocatePool(
EfiLoaderData,
sizeof(uint32_t) * out->width * out->height,
&out->pixel_buffer
);
} */
application->boot_services->AllocatePool(
EfiLoaderData,
sizeof(uint32_t) * out->width * out->height,
&out->pixel_buffer
);
return UEFI_GRAPHICS_OK;
}
application->boot_services->CloseProtocol(
handles[i],
&GRAPHICS_PROTOCOL_GUID,
application->image_handle,
NULL
);
}
application->boot_services->FreePool(handles);
return UEFI_GRAPHICS_NO_SUITABLE_MODE;
}
void uefi_graphics_set_font(uefi_graphics_t *graphics, uefi_graphics_psf_font_t *font, uint8_t font_scale) {
graphics->font = font;
graphics->font_scale = font_scale;
}
void uefi_graphics_set_fill(uefi_graphics_t *graphics, uint32_t color) {
graphics->fill_color = convert_rgba_to_mode(graphics, color);
}
void uefi_graphics_draw_rect(uefi_graphics_t *graphics, uint32_t x, uint32_t y, uint32_t width, uint32_t height) {
uint32_t color = graphics->fill_color;
for (uint32_t cx = x; cx <= x + width; cx++) {
for (uint32_t cy = y; cy <= y + height; cy++) {
set_pixel(graphics, cx, cy, color);
}
}
}
void uefi_graphics_draw_text(uefi_graphics_t *graphics, uint32_t x, uint32_t y, const char *text) {
uint32_t bytes_per_line = (graphics->font->width + 7) / 8;
uint32_t scale = graphics->font_scale;
y -= graphics->font->height * graphics->font_scale;
while (*text) {
char c = *text;
uint8_t *glyph = ((uint8_t *) graphics->font) +
graphics->font->header_size +
(c > 0 && c < graphics->font->glyph_count ? c : 0) * graphics->font->bytes_per_glyph;
for (uint32_t current_y = 0; current_y < graphics->font->height; current_y++) {
uint32_t mask = 1 << (graphics->font->width - 1);
for (uint32_t current_x = 0; current_x < graphics->font->width; current_x++) {
if (*((uint32_t *) glyph) & mask) {
uefi_graphics_draw_rect(graphics, (current_x * scale) + x, (current_y * scale) + y, scale, scale);
}
mask >>= 1;
}
glyph += bytes_per_line;
}
text++;
x += graphics->font->width * scale + 1;
}
}
uint32_t uefi_graphics_text_width(uefi_graphics_t *graphics, const char *text) {
uint32_t len = strlen(text);
return (len * graphics->font->width + len) * graphics->font_scale;
}
uint32_t uefi_graphics_text_height(uefi_graphics_t *graphics) {
return graphics->font->height * graphics->font_scale;
}
void uefi_graphics_draw_raw(
uefi_graphics_t *graphics,
uint32_t x,
uint32_t y,
uint32_t width,
uint32_t height,
const void *data
) {
const uint32_t *img = data;
for (uint32_t img_y = 0; img_y < height; img_y++) {
for (uint32_t img_x = 0; img_x < width; img_x++) {
uint32_t color = convert_rgba_to_mode(graphics, img[img_x + img_y * width]);
if (color & 0x000000FF) {
set_pixel(graphics, x + img_x, y + img_y, color);
}
}
}
}
void uefi_graphics_request_redraw(uefi_graphics_t *graphics) {
graphics->should_redraw = TRUE;
}
void uefi_graphics_flush(uefi_graphics_t *graphics) {
if (graphics->pixel_buffer) {
graphics->protocol->Blt(
graphics->protocol,
graphics->pixel_buffer,
EfiBltBufferToVideo,
0, 0,
0, 0,
graphics->width, graphics->height,
0
);
}
graphics->should_redraw = FALSE;
}
|
1e918530b9b766f4af4722c68850e58924742f9e
|
b820059770e754f99c8f19c4bae398c9981aed82
|
/Snake/ECW/ECW.c
|
ed685f94a24569b6fae7699b4fb282543cb86732
|
[] |
no_license
|
ansonb/CCS-codes-backup
|
c5e97547962e1fad34f9259eb04e9472384d9b33
|
48852a84c27f329b30637c564c9d4dd3733d7883
|
refs/heads/master
| 2021-01-10T13:52:21.679812 | 2016-01-28T16:20:03 | 2016-01-28T16:20:03 | 50,517,388 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,947 |
c
|
ECW.c
|
#include <msp430.h>
#include <stdio.h>
void stop_watchdog()
{
WDTCTL=WDTPW|WDTHOLD;
}
void adc_init()
{
ADC12CTL0 = ADC12SHT0_9|ADC12ON; // Sampling time, ADC12 on
ADC12CTL1 = ADC12SHP; // Use sampling timer
ADC12MCTL0 = ADC12INCH_6;
ADC12CTL0 |= ADC12ENC;
P6SEL |= BIT6 ; // P6.6 ADC option select
ADC12CTL0 &= ~ADC12SC; // Clear the ADC start bit
}
int adc_read()
{
ADC12CTL0 |= ADC12SC + ADC12ENC; // Start sampling/conversion
while (ADC12CTL1 & ADC12BUSY); // Wait until conversion is complete
return ADC12MEM0 & 0x0FFF; // Mask 4 upper bits of ADC12MEM0(12 bit ADC)
}
void usart_init()
{
P4SEL = BIT4+BIT5;
UCA1CTL1 |= UCSWRST; // **Put state machine in reset**
UCA1CTL1 |= UCSSEL_1; // CLK = ACLK
UCA1BR0 = 0x03; // 32kHz/9600=3.41 (see User's Guide)
UCA1BR1 = 0x00; //
UCA1MCTL = UCBRS_3+UCBRF_0; // Modulation UCBRSx=3, UCBRFx=0
UCA1CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
}
char usart_receive_char()
{
while(!(UCA1IFG & UCRXIFG)); // Wait for a character to be received
char ch = UCA1RXBUF;
UCA1IFG &= ~UCRXIFG;
return ch;
}
void usart_transmit_char(char ch)
{
while(!(UCA1IFG & UCTXIFG)); // Wait until transmit buffer is empty
UCA1TXBUF = ch;
}
void usart_transmit_string(char* str)
{
while(*str)
{
usart_transmit_char(*str);
++ str;
}
}
void usart_transmit_int_as_string(int i)
{
char num_string[6];
sprintf(num_string,"%d",i);
usart_transmit_string(num_string);
}
short isCharReceived;
char receivedChar = 0;
void usart_init_async()
{
usart_init();
UCA1IE |= UCRXIE; // Enable USCI_A1 RX interrupt
isCharReceived = 0;
__enable_interrupt();
}
short usart_receive_char_async(char* ch)
{
if(isCharReceived)
{
*ch = receivedChar;
isCharReceived = 0;
return 1;
}
else return 0;
}
void delay_us(int us)
{
while(us --) __delay_cycles(1);
}
void delay_ms(int ms)
{
while(ms --) __delay_cycles(1087);
}
void delay_s(int s)
{
while(s --) __delay_cycles(1086957);
}
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A1_VECTOR
__interrupt void USCI_A1_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCI_A1_VECTOR))) USCI_A1_ISR (void)
#else
#error Compiler not supported!
#endif
{
switch(__even_in_range(UCA1IV,4))
{
case 0:break; // Vector 0 - no interrupt
case 2: // Vector 2 - RXIFG
isCharReceived = 1;
receivedChar = UCA1RXBUF;
break;
case 4:break; // Vector 4 - TXIFG
default: break;
}
}
|
f2c8ac70dd2a92699c6b1707f3eca4cde95e61bd
|
86eec6c5b21edaf298dc6d8a0a6666458b8ac21c
|
/C++/score/my.h
|
c901636d4913617727623b1b77a2e90a47ff327f
|
[] |
no_license
|
infront18/homepage_practice
|
be796bfa307038ab03a847d548d3ecbe2ffa9f7c
|
4533599c2f5780025bf083398d0e22922542089f
|
refs/heads/master
| 2020-09-28T15:46:10.334568 | 2019-12-09T07:17:13 | 2019-12-09T07:17:13 | 226,808,735 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 493 |
h
|
my.h
|
// 구조체
typedef struct _student
{
char name[20]; // 이름
int scoreKOR; // 국어점수
int scoreMAT; // 수학점수
int scoreENG; // 영어점수
int scoreSCI; // 과학점수
char *comment; // 평가
} STUDENT;
// 입력
int inputGrade(int index);
// 계산
int calcGrade(int index, int *scoreTotal, float *scoreAverage, char *grade);
// 출력
int outputGrade(int index);
// 메모리 해제
int FreeMemory(int index);
|
ca29e0a3aba000cac205115cdef4fea3a801cbc6
|
58ea759fcd672fa3780b5b93052beadaa1f1d6e8
|
/srcs/window/ft_arrows_2.c
|
786bd215ceaf8d058f0b43f939f948a954dfcddb
|
[] |
no_license
|
rbourgeat/MiniRT
|
79513e12c732786357ac7d4f5f15821397601c17
|
2a11931f3e006aa50dac6fc364528896f744e481
|
refs/heads/master
| 2023-02-04T07:45:49.731085 | 2020-12-25T16:31:58 | 2020-12-25T16:31:58 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,304 |
c
|
ft_arrows_2.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_arrows_2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbourgea <rbourgea@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/27 19:16:53 by rbourgea #+# #+# */
/* Updated: 2020/06/20 21:00:07 by rbourgea ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_window.h"
int ft_identify_arrows(int keycode)
{
printf("keycode : %d\n", keycode);
if (keycode == KEY_DOWN_ARROW)
return (1);
else if (keycode == KEY_RIGHT_ARROW)
return (2);
else if (keycode == KEY_UP_ARROW)
return (3);
else if (keycode == KEY_LEFT_ARROW)
return (4);
else if (keycode == KEY_COMMA)
return (5);
else if (keycode == KEY_POINT)
return (6);
else
return (0);
}
|
cd544f09f1f94517071d98b8fad6bbaf27869fd6
|
27c7b9486820bd3f388972fc3d7375532a334789
|
/shared_lib_hierarchy_of_lib_dependencies/muldiv/mul.h
|
ca87f1aa8a7e4f83814649ec892cf36332895f8c
|
[] |
no_license
|
pvaddina/cmake-tests
|
106376af8d1921e704307120013f81398c2f6564
|
cac9b17babb656e6024d027c8b104d33c1534d31
|
refs/heads/master
| 2021-11-25T16:37:52.250774 | 2021-11-07T23:27:38 | 2021-11-07T23:27:38 | 142,593,275 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 94 |
h
|
mul.h
|
// mul.h
#include "muldiv_exports.h"
int MULDIV_EXPORTS mul(const int iOne, const int iTwo);
|
5c9c928bb7ca971fcbc96b0d9071d1a23adf1bb2
|
1390cb4f58bd09087184a64fe2838dec29600d8a
|
/4424.c
|
e211ae1617c32e2554e43e59aa56666142224dc8
|
[] |
no_license
|
imasker/obfuscatorTestCases
|
bf21352be1dbd6c8bdd868b093af03f315d92a45
|
5f5561846ec09a040b42dc12842c9581e7be6b4d
|
refs/heads/master
| 2023-03-27T11:35:21.843689 | 2021-03-25T07:38:05 | 2021-03-25T07:38:05 | 351,342,479 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 261,016 |
c
|
4424.c
|
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.3.0
* Git version: 30dccd7
* Options: -o /home/x/obfuscator/data/programs/4424.c
* Seed: 1012345266
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
#pragma pack(push)
#pragma pack(1)
struct S0 {
volatile uint16_t f0;
int32_t f1;
uint32_t f2;
volatile int64_t f3;
const uint8_t f4;
int32_t f5;
};
#pragma pack(pop)
#pragma pack(push)
#pragma pack(1)
struct S1 {
signed f0 : 13;
volatile unsigned f1 : 16;
volatile unsigned f2 : 23;
const unsigned f3 : 27;
signed f4 : 27;
};
#pragma pack(pop)
struct S2 {
const volatile unsigned f0 : 15;
};
struct S3 {
volatile uint32_t f0;
struct S1 f1;
volatile int8_t f2;
const volatile int32_t f3;
volatile int32_t f4;
};
struct S4 {
struct S0 f0;
};
#pragma pack(push)
#pragma pack(1)
struct S5 {
struct S0 f0;
uint16_t f1;
volatile int32_t f2;
uint32_t f3;
uint8_t f4;
const struct S3 f5;
};
#pragma pack(pop)
#pragma pack(push)
#pragma pack(1)
struct S6 {
signed f0 : 4;
signed f1 : 21;
volatile unsigned f2 : 26;
signed f3 : 19;
signed f4 : 1;
signed f5 : 30;
};
#pragma pack(pop)
struct S7 {
struct S2 f0;
};
/* --- GLOBAL VARIABLES --- */
static int16_t g_6[7][3] = {{0L,0xD205L,0L},{0L,0xD205L,0L},{0L,0xD205L,0L},{0L,0xD205L,0L},{0L,0xD205L,0L},{0L,0xD205L,0L},{0L,0xD205L,0L}};
static uint32_t g_9 = 18446744073709551612UL;
static volatile struct S1 g_26 = {-37,254,1623,1591,-10933};/* VOLATILE GLOBAL g_26 */
static int32_t g_28 = 1L;
static uint16_t g_38 = 1UL;
static int32_t g_40 = (-1L);
static int32_t *g_39 = &g_40;
static volatile struct S2 g_71 = {121};/* VOLATILE GLOBAL g_71 */
static struct S3 g_86 = {0x8CD9178FL,{23,140,298,7689,-3796},6L,-6L,3L};/* VOLATILE GLOBAL g_86 */
static struct S1 g_87[6] = {{89,18,2477,8900,-8431},{89,18,2477,8900,-8431},{89,18,2477,8900,-8431},{89,18,2477,8900,-8431},{89,18,2477,8900,-8431},{89,18,2477,8900,-8431}};
static struct S6 g_88 = {2,-408,5483,-639,0,28289};/* VOLATILE GLOBAL g_88 */
static uint16_t g_107[3] = {1UL,1UL,1UL};
static volatile struct S5 g_115 = {{1UL,1L,4294967295UL,9L,0x58L,0xF02998B4L},0x4A0AL,5L,0x1E9F44AAL,0x45L,{0x25C753BBL,{-43,101,855,99,3603},1L,0x63695F89L,1L}};/* VOLATILE GLOBAL g_115 */
static volatile struct S4 g_142 = {{0xDF86L,0x15D644C5L,8UL,0xCE0AEDB7B902C631LL,0UL,0x0926641FL}};/* VOLATILE GLOBAL g_142 */
static volatile struct S5 *g_160 = &g_115;
static volatile struct S5 ** volatile g_159[3] = {&g_160,&g_160,&g_160};
static volatile struct S5 g_162 = {{0x83F7L,0x260C6B04L,0xE172707FL,0x85FA97D6553E7E88LL,0UL,-3L},0xDCF8L,0x24657F32L,0xDDE60598L,1UL,{4294967289UL,{12,234,1531,261,10805},-7L,0x12B29A1DL,0xAACE6E22L}};/* VOLATILE GLOBAL g_162 */
static struct S0 g_165 = {65527UL,0L,0xAC40A1D1L,2L,0x08L,0x274840ADL};/* VOLATILE GLOBAL g_165 */
static struct S5 g_185 = {{0x0BF0L,0x53984BC8L,4294967290UL,9L,1UL,0x018A909AL},65528UL,0x9ADB30A8L,0x29C22D08L,249UL,{1UL,{-81,103,2869,11257,2773},0xBDL,0x43701647L,0x049C42DEL}};/* VOLATILE GLOBAL g_185 */
static struct S5 g_188 = {{0x79CCL,0L,4294967292UL,-1L,0x28L,1L},0x6EB9L,0x4356361BL,0x6B89D60FL,255UL,{0x97CCDA52L,{87,166,1964,8852,9863},0x6AL,0L,1L}};/* VOLATILE GLOBAL g_188 */
static struct S5 *g_187 = &g_188;
static int64_t g_208 = 0xE759DE1FD0877F95LL;
static volatile struct S2 g_225 = {159};/* VOLATILE GLOBAL g_225 */
static struct S6 g_238 = {-3,638,2275,-490,-0,-6770};/* VOLATILE GLOBAL g_238 */
static const struct S3 *g_263 = &g_188.f5;
static const struct S3 ** volatile g_262 = &g_263;/* VOLATILE GLOBAL g_262 */
static int32_t ** volatile g_264 = &g_39;/* VOLATILE GLOBAL g_264 */
static struct S4 g_267 = {{4UL,2L,0x071E889AL,0xD8E4E223B1705E1ALL,250UL,-5L}};/* VOLATILE GLOBAL g_267 */
static int32_t *g_270 = &g_188.f0.f1;
static int32_t ** volatile g_269 = &g_270;/* VOLATILE GLOBAL g_269 */
static int64_t g_276 = 0xEB12BC841322B666LL;
static struct S6 g_291 = {-3,257,3216,-669,0,1185};/* VOLATILE GLOBAL g_291 */
static struct S6 g_292 = {-2,614,6036,595,-0,23415};/* VOLATILE GLOBAL g_292 */
static struct S6 g_293 = {-3,-338,3667,-34,-0,16524};/* VOLATILE GLOBAL g_293 */
static struct S6 g_294 = {-0,-403,6252,631,0,8193};/* VOLATILE GLOBAL g_294 */
static struct S6 g_295 = {1,-269,933,-549,-0,-28918};/* VOLATILE GLOBAL g_295 */
static struct S6 g_296 = {-2,-1430,7815,-179,-0,-28029};/* VOLATILE GLOBAL g_296 */
static struct S6 *g_290[9][2] = {{&g_296,&g_294},{&g_294,&g_296},{&g_294,&g_294},{&g_296,&g_294},{&g_294,&g_296},{&g_294,&g_294},{&g_296,&g_296},{&g_296,&g_292},{&g_296,&g_296}};
static struct S6 **g_289 = &g_290[8][0];
static struct S6 **g_299[7][9][4] = {{{&g_290[0][0],&g_290[8][0],&g_290[8][0],&g_290[8][0]},{&g_290[0][1],&g_290[1][1],&g_290[7][0],&g_290[4][1]},{&g_290[8][0],&g_290[8][0],&g_290[8][0],(void*)0},{(void*)0,(void*)0,&g_290[4][1],(void*)0},{&g_290[8][0],&g_290[4][1],&g_290[8][0],&g_290[7][0]},{&g_290[0][0],&g_290[0][0],&g_290[8][0],&g_290[8][0]},{&g_290[8][0],&g_290[8][0],&g_290[8][0],&g_290[8][0]},{&g_290[7][1],&g_290[7][1],(void*)0,&g_290[8][0]},{&g_290[0][1],(void*)0,(void*)0,&g_290[6][1]}},{{&g_290[5][0],&g_290[8][0],&g_290[8][0],(void*)0},{&g_290[1][1],&g_290[8][0],&g_290[2][0],&g_290[6][1]},{&g_290[8][0],(void*)0,&g_290[8][0],&g_290[8][0]},{&g_290[4][1],&g_290[7][1],&g_290[0][0],&g_290[8][0]},{&g_290[8][0],&g_290[8][0],(void*)0,&g_290[8][0]},{&g_290[8][0],&g_290[0][0],&g_290[8][0],&g_290[7][0]},{&g_290[0][1],&g_290[4][1],(void*)0,(void*)0},{&g_290[0][1],(void*)0,&g_290[7][0],(void*)0},{(void*)0,&g_290[8][0],&g_290[8][0],&g_290[4][1]}},{{(void*)0,&g_290[1][1],&g_290[8][0],&g_290[8][0]},{(void*)0,&g_290[8][0],(void*)0,&g_290[8][0]},{&g_290[4][1],&g_290[8][0],&g_290[8][0],&g_290[8][0]},{&g_290[8][0],&g_290[8][0],&g_290[7][0],&g_290[8][0]},{&g_290[0][1],&g_290[8][0],&g_290[7][0],&g_290[8][0]},{&g_290[8][0],(void*)0,&g_290[8][0],(void*)0},{&g_290[4][1],&g_290[2][0],(void*)0,(void*)0},{(void*)0,(void*)0,&g_290[8][0],&g_290[0][1]},{(void*)0,&g_290[8][0],&g_290[8][0],&g_290[7][0]}},{{(void*)0,&g_290[8][0],&g_290[7][0],&g_290[7][1]},{&g_290[0][1],&g_290[5][0],(void*)0,(void*)0},{&g_290[0][1],&g_290[8][0],&g_290[8][0],&g_290[1][1]},{&g_290[8][0],&g_290[4][1],(void*)0,(void*)0},{&g_290[8][0],&g_290[0][0],&g_290[0][0],&g_290[8][0]},{&g_290[4][1],&g_290[6][1],&g_290[8][0],&g_290[2][1]},{&g_290[8][0],&g_290[0][1],&g_290[2][0],(void*)0},{&g_290[1][1],&g_290[8][0],&g_290[8][0],(void*)0},{&g_290[5][0],&g_290[0][1],(void*)0,&g_290[2][1]}},{{&g_290[0][1],&g_290[6][1],(void*)0,&g_290[8][0]},{&g_290[7][1],&g_290[0][0],&g_290[8][0],(void*)0},{&g_290[8][0],&g_290[4][1],&g_290[8][0],&g_290[1][1]},{&g_290[0][0],&g_290[8][0],&g_290[8][0],(void*)0},{&g_290[8][0],&g_290[5][0],&g_290[4][1],&g_290[7][1]},{(void*)0,&g_290[8][0],&g_290[8][0],&g_290[7][0]},{&g_290[8][0],&g_290[8][0],&g_290[7][0],&g_290[0][1]},{&g_290[0][1],(void*)0,&g_290[8][0],(void*)0},{&g_290[0][0],&g_290[2][0],&g_290[7][1],(void*)0}},{{&g_290[6][1],(void*)0,(void*)0,&g_290[8][0]},{&g_290[2][0],&g_290[8][0],&g_290[4][1],&g_290[8][0]},{(void*)0,&g_290[5][1],&g_290[8][0],&g_290[7][0]},{(void*)0,&g_290[8][0],(void*)0,&g_290[8][0]},{&g_290[8][0],&g_290[4][1],&g_290[0][0],&g_290[8][0]},{&g_290[7][1],(void*)0,&g_290[8][0],&g_290[8][0]},{&g_290[5][1],&g_290[0][1],&g_290[8][0],&g_290[8][0]},{&g_290[2][0],&g_290[8][0],&g_290[8][0],&g_290[0][0]},{&g_290[0][1],&g_290[8][0],&g_290[4][1],&g_290[7][0]}},{{&g_290[7][0],&g_290[8][0],&g_290[0][1],&g_290[8][0]},{&g_290[8][0],&g_290[8][0],(void*)0,(void*)0},{&g_290[7][1],&g_290[7][1],&g_290[0][1],&g_290[8][0]},{&g_290[7][1],&g_290[0][0],&g_290[8][0],(void*)0},{&g_290[8][0],&g_290[8][0],&g_290[7][0],&g_290[8][0]},{(void*)0,&g_290[8][0],(void*)0,(void*)0},{&g_290[8][0],&g_290[0][0],&g_290[4][1],&g_290[8][0]},{&g_290[8][0],&g_290[7][1],&g_290[7][0],(void*)0},{&g_290[4][1],&g_290[8][0],(void*)0,&g_290[8][0]}}};
static struct S1 g_305 = {50,38,1792,10003,-5833};/* VOLATILE GLOBAL g_305 */
static int8_t g_310 = (-5L);
static int8_t g_312 = (-9L);
static struct S4 *g_316 = (void*)0;
static volatile int8_t g_318 = (-9L);/* VOLATILE GLOBAL g_318 */
static const volatile struct S6 g_322 = {3,-135,6440,-686,0,20893};/* VOLATILE GLOBAL g_322 */
static volatile struct S6 g_323 = {1,-1276,1754,-588,0,19873};/* VOLATILE GLOBAL g_323 */
static volatile struct S5 ** volatile *g_324 = &g_159[1];
static const struct S7 g_341 = {{132}};/* VOLATILE GLOBAL g_341 */
static struct S7 g_369 = {{170}};/* VOLATILE GLOBAL g_369 */
static const int32_t *g_446 = &g_188.f0.f1;
static const int32_t **g_445 = &g_446;
static const int32_t ***g_444[7] = {&g_445,&g_445,&g_445,&g_445,&g_445,&g_445,&g_445};
static int16_t g_449 = 1L;
static volatile struct S6 g_452 = {-3,400,6211,-11,-0,-28034};/* VOLATILE GLOBAL g_452 */
static const struct S1 *g_457 = &g_185.f5.f1;
static const struct S1 **g_456 = &g_457;
static struct S0 *g_459 = &g_267.f0;
static struct S0 ** volatile g_458 = &g_459;/* VOLATILE GLOBAL g_458 */
static volatile uint16_t g_460 = 65535UL;/* VOLATILE GLOBAL g_460 */
static struct S6 g_461 = {3,414,7080,-65,-0,11040};/* VOLATILE GLOBAL g_461 */
static volatile struct S7 g_473 = {{176}};/* VOLATILE GLOBAL g_473 */
static uint32_t g_540 = 0x75C8E107L;
static struct S3 g_576 = {0xFF58163EL,{-35,149,1639,3475,1128},-1L,0x4D8BCC47L,0L};/* VOLATILE GLOBAL g_576 */
static volatile struct S3 **g_578 = (void*)0;
static volatile struct S3 ** volatile *g_577 = &g_578;
static volatile struct S6 g_579 = {2,18,864,-215,0,10373};/* VOLATILE GLOBAL g_579 */
static struct S6 g_601 = {2,-1261,6451,-53,-0,28617};/* VOLATILE GLOBAL g_601 */
static struct S0 g_602[2][5] = {{{0x724DL,0xE0FC95E8L,0x4DA1F4D0L,0x495B19ACEB0D7316LL,247UL,1L},{65526UL,0xCD3F009AL,0xDE6685C8L,-6L,0xC6L,-1L},{0x1D5DL,1L,1UL,0x7BEC88CB0C1F3DE2LL,3UL,-10L},{0x1D5DL,1L,1UL,0x7BEC88CB0C1F3DE2LL,3UL,-10L},{65526UL,0xCD3F009AL,0xDE6685C8L,-6L,0xC6L,-1L}},{{0x724DL,0xE0FC95E8L,0x4DA1F4D0L,0x495B19ACEB0D7316LL,247UL,1L},{65526UL,0xCD3F009AL,0xDE6685C8L,-6L,0xC6L,-1L},{0x1D5DL,1L,1UL,0x7BEC88CB0C1F3DE2LL,3UL,-10L},{0x1D5DL,1L,1UL,0x7BEC88CB0C1F3DE2LL,3UL,-10L},{65526UL,0xCD3F009AL,0xDE6685C8L,-6L,0xC6L,-1L}}};
static volatile struct S2 g_618 = {28};/* VOLATILE GLOBAL g_618 */
static uint8_t g_626 = 255UL;
static int16_t g_650 = 1L;
static volatile uint32_t g_660[6] = {0xED8A75D2L,1UL,1UL,0xED8A75D2L,1UL,1UL};
static volatile struct S7 g_694 = {{48}};/* VOLATILE GLOBAL g_694 */
static volatile struct S3 g_695 = {7UL,{52,93,1664,10796,6647},-1L,0x874B9311L,0x24E751B1L};/* VOLATILE GLOBAL g_695 */
static uint16_t *g_718[10][5][4] = {{{(void*)0,&g_107[1],&g_107[1],(void*)0},{&g_107[1],(void*)0,&g_107[1],&g_107[1]},{(void*)0,(void*)0,&g_38,(void*)0},{(void*)0,&g_107[1],&g_107[1],(void*)0},{&g_107[1],(void*)0,&g_107[1],&g_107[1]}},{{(void*)0,(void*)0,&g_38,(void*)0},{(void*)0,&g_107[1],&g_107[1],(void*)0},{&g_107[1],(void*)0,&g_107[1],&g_107[1]},{(void*)0,(void*)0,&g_38,(void*)0},{(void*)0,&g_107[1],&g_107[1],(void*)0}},{{&g_107[1],(void*)0,&g_107[1],&g_107[1]},{(void*)0,(void*)0,&g_38,(void*)0},{(void*)0,&g_107[1],&g_107[1],(void*)0},{&g_107[1],(void*)0,&g_107[1],&g_107[1]},{(void*)0,(void*)0,&g_38,(void*)0}},{{(void*)0,&g_107[1],&g_107[1],(void*)0},{&g_107[1],(void*)0,&g_107[1],&g_107[1]},{(void*)0,(void*)0,&g_38,(void*)0},{(void*)0,&g_107[1],&g_107[1],(void*)0},{&g_107[1],(void*)0,&g_107[1],&g_107[1]}},{{(void*)0,(void*)0,&g_38,(void*)0},{(void*)0,&g_107[1],&g_107[1],(void*)0},{&g_107[1],(void*)0,&g_107[1],&g_107[1]},{(void*)0,(void*)0,&g_38,(void*)0},{(void*)0,&g_107[1],&g_107[1],(void*)0}},{{&g_107[1],&g_107[1],&g_38,&g_38},{&g_107[1],&g_107[1],(void*)0,&g_107[1]},{&g_107[1],&g_38,&g_38,&g_107[1]},{&g_38,&g_107[1],&g_38,&g_38},{&g_107[1],&g_107[1],(void*)0,&g_107[1]}},{{&g_107[1],&g_38,&g_38,&g_107[1]},{&g_38,&g_107[1],&g_38,&g_38},{&g_107[1],&g_107[1],(void*)0,&g_107[1]},{&g_107[1],&g_38,&g_38,&g_107[1]},{&g_38,&g_107[1],&g_38,&g_38}},{{&g_107[1],&g_107[1],(void*)0,&g_107[1]},{&g_107[1],&g_38,&g_38,&g_107[1]},{&g_38,&g_107[1],&g_38,&g_38},{&g_107[1],&g_107[1],(void*)0,&g_107[1]},{&g_107[1],&g_38,&g_38,&g_107[1]}},{{&g_38,&g_107[1],&g_38,&g_38},{&g_107[1],&g_107[1],(void*)0,&g_107[1]},{&g_107[1],&g_38,&g_38,&g_107[1]},{&g_38,&g_107[1],&g_38,&g_38},{&g_107[1],&g_107[1],(void*)0,&g_107[1]}},{{&g_107[1],&g_38,&g_38,&g_107[1]},{&g_38,&g_107[1],&g_38,&g_38},{&g_107[1],&g_107[1],(void*)0,&g_107[1]},{&g_107[1],&g_38,&g_38,&g_107[1]},{&g_38,&g_107[1],&g_38,&g_38}}};
static uint16_t **g_717 = &g_718[8][0][1];
static struct S4 g_721 = {{65530UL,1L,0x1399D93AL,1L,1UL,0x024893A5L}};/* VOLATILE GLOBAL g_721 */
static volatile struct S4 g_732 = {{65535UL,0xEF54ED5EL,0x627F23A6L,0xDA5C13162CB018B9LL,0xB9L,0xEA7DCBE3L}};/* VOLATILE GLOBAL g_732 */
static struct S0 * const *g_743 = &g_459;
static struct S0 * const **g_742 = &g_743;
static volatile uint64_t g_752[3] = {0xE998CF7727B91B65LL,0xE998CF7727B91B65LL,0xE998CF7727B91B65LL};
static volatile uint64_t *g_751 = &g_752[1];
static volatile uint64_t ** const volatile g_750 = &g_751;/* VOLATILE GLOBAL g_750 */
static struct S4 **** volatile g_757 = (void*)0;/* VOLATILE GLOBAL g_757 */
static struct S4 **g_760 = (void*)0;
static struct S4 ***g_759 = &g_760;
static struct S4 **** volatile g_758 = &g_759;/* VOLATILE GLOBAL g_758 */
static struct S0 ****g_774 = (void*)0;
static struct S5 ** volatile g_784[4] = {&g_187,&g_187,&g_187,&g_187};
static struct S3 *g_790 = (void*)0;
static struct S3 **g_789 = &g_790;
static struct S3 ***g_788 = &g_789;
static struct S1 *g_806 = (void*)0;
static struct S1 **g_805 = &g_806;
static struct S1 ***g_804 = &g_805;
static struct S7 g_826 = {{42}};/* VOLATILE GLOBAL g_826 */
static struct S7 g_828 = {{103}};/* VOLATILE GLOBAL g_828 */
static struct S7 *g_827[9] = {&g_826,&g_369,&g_826,&g_369,&g_826,&g_369,&g_826,&g_369,&g_826};
static struct S7 g_830 = {{16}};/* VOLATILE GLOBAL g_830 */
static struct S7 *g_829 = &g_830;
static struct S0 g_836 = {0x7C10L,0x00F25AF5L,1UL,0x9AF865F439485297LL,0xE8L,0x5DDCD621L};/* VOLATILE GLOBAL g_836 */
static uint32_t g_837 = 0x4203E0F8L;
static volatile struct S6 g_849 = {-1,-797,7194,-426,0,-24435};/* VOLATILE GLOBAL g_849 */
static uint32_t g_869 = 6UL;
static struct S5 g_890 = {{0x53FEL,0x1D139458L,0x4FC6D747L,1L,0x85L,0x80924FE8L},65532UL,1L,1UL,0x73L,{0x4D184924L,{66,218,1328,6772,7675},0L,0x5F301D4DL,-3L}};/* VOLATILE GLOBAL g_890 */
static struct S6 ****g_891 = (void*)0;
static volatile struct S6 g_903 = {1,1313,1097,-126,-0,29267};/* VOLATILE GLOBAL g_903 */
static volatile struct S6 * volatile g_902[3] = {&g_903,&g_903,&g_903};
static volatile struct S6 g_905 = {2,-1364,7299,-703,-0,8511};/* VOLATILE GLOBAL g_905 */
static volatile struct S6 *g_904 = &g_905;
static volatile struct S6 * volatile *g_901[4][7] = {{&g_904,&g_904,&g_904,&g_904,&g_904,&g_904,&g_904},{(void*)0,&g_904,&g_904,(void*)0,&g_904,(void*)0,&g_904},{&g_904,&g_904,&g_904,&g_904,&g_904,&g_904,&g_904},{(void*)0,&g_904,&g_902[2],&g_904,(void*)0,(void*)0,&g_904}};
static volatile struct S6 * volatile * volatile *g_900 = &g_901[1][4];
static volatile struct S6 * volatile * volatile **g_899 = &g_900;
static struct S2 *g_930 = &g_826.f0;
static struct S2 **g_929[8][6][5] = {{{(void*)0,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{(void*)0,&g_930,&g_930,(void*)0,&g_930},{&g_930,&g_930,&g_930,&g_930,(void*)0},{&g_930,&g_930,&g_930,(void*)0,&g_930}},{{(void*)0,&g_930,(void*)0,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,(void*)0,&g_930,&g_930}},{{&g_930,&g_930,&g_930,(void*)0,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,(void*)0},{(void*)0,&g_930,&g_930,(void*)0,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930}},{{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,(void*)0,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,(void*)0,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930}},{{&g_930,&g_930,&g_930,(void*)0,(void*)0},{&g_930,&g_930,&g_930,&g_930,&g_930},{(void*)0,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,(void*)0,&g_930,&g_930,&g_930},{&g_930,(void*)0,&g_930,&g_930,&g_930}},{{&g_930,&g_930,&g_930,&g_930,&g_930},{(void*)0,&g_930,&g_930,&g_930,&g_930},{(void*)0,(void*)0,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,(void*)0,(void*)0},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930}},{{&g_930,(void*)0,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,(void*)0,&g_930,&g_930,(void*)0},{&g_930,(void*)0,&g_930,&g_930,&g_930},{&g_930,&g_930,(void*)0,&g_930,(void*)0}},{{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,&g_930,&g_930,(void*)0,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930},{&g_930,(void*)0,&g_930,(void*)0,&g_930},{&g_930,&g_930,&g_930,&g_930,&g_930}}};
static struct S2 *** volatile g_928 = &g_929[5][4][0];/* VOLATILE GLOBAL g_928 */
static const struct S0 g_935[8] = {{65528UL,7L,3UL,-6L,0x46L,0x22B43FD8L},{65535UL,9L,0xB54F7F8BL,0x24523E2F4E04FA37LL,0UL,-1L},{65528UL,7L,3UL,-6L,0x46L,0x22B43FD8L},{65528UL,7L,3UL,-6L,0x46L,0x22B43FD8L},{65535UL,9L,0xB54F7F8BL,0x24523E2F4E04FA37LL,0UL,-1L},{65528UL,7L,3UL,-6L,0x46L,0x22B43FD8L},{65528UL,7L,3UL,-6L,0x46L,0x22B43FD8L},{65535UL,9L,0xB54F7F8BL,0x24523E2F4E04FA37LL,0UL,-1L}};
static volatile uint32_t g_962[10] = {1UL,1UL,1UL,1UL,1UL,1UL,1UL,1UL,1UL,1UL};
static volatile struct S1 g_970 = {5,16,66,7783,-2911};/* VOLATILE GLOBAL g_970 */
static volatile struct S3 g_980 = {4294967292UL,{6,62,2205,1198,-1446},-10L,0xACCABF2CL,2L};/* VOLATILE GLOBAL g_980 */
static struct S4 g_991 = {{0x75B9L,0xA3B6CBAAL,0xEAFD3192L,0xE05137EB3D4C600BLL,0x8CL,0x47B04B23L}};/* VOLATILE GLOBAL g_991 */
static struct S2 **g_1010 = &g_930;
static struct S6 g_1036 = {3,-650,2203,497,0,26224};/* VOLATILE GLOBAL g_1036 */
static struct S6 g_1045[7][9][4] = {{{{0,-667,4835,-360,-0,-28683},{-2,-356,5667,510,-0,29186},{-3,831,4904,-512,-0,9614},{0,656,3055,-450,0,16207}},{{-2,-356,5667,510,-0,29186},{-2,917,7758,-266,0,-23576},{1,-1447,7882,548,0,23368},{-0,1256,8127,-262,0,-14836}},{{0,974,1800,-644,0,20773},{-3,831,4904,-512,-0,9614},{-0,1178,5208,-41,-0,-16712},{3,-495,6015,119,-0,9337}},{{-1,1130,6647,-345,0,-2245},{0,974,1800,-644,0,20773},{-3,-1443,3995,-230,0,12266},{-3,831,4904,-512,-0,9614}},{{0,1223,7925,-650,-0,12024},{-3,874,1311,-641,0,17054},{-0,-794,1213,354,0,7482},{-3,670,8040,358,0,-3920}},{{-3,-1345,1241,-278,0,10475},{-0,1178,5208,-41,-0,-16712},{-0,1178,5208,-41,-0,-16712},{-3,-1345,1241,-278,0,10475}},{{3,431,6491,-177,0,17034},{0,1223,7925,-650,-0,12024},{-3,116,1521,171,0,20902},{3,417,7742,504,0,3127}},{{-2,-356,5667,510,-0,29186},{-2,-570,4390,616,-0,29670},{1,542,2572,-504,0,-2805},{-3,874,1311,-641,0,17054}},{{-0,-17,5320,-50,0,-14852},{2,-1043,5780,-140,-0,1912},{3,-381,3103,283,0,-3983},{-3,874,1311,-641,0,17054}}},{{{-3,-1129,3736,-45,-0,21069},{-2,-570,4390,616,-0,29670},{0,-667,4835,-360,-0,-28683},{3,417,7742,504,0,3127}},{{1,1354,4122,516,-0,-4721},{0,1223,7925,-650,-0,12024},{-3,1234,256,-406,-0,11094},{-3,-1345,1241,-278,0,10475}},{{-2,47,6052,-276,0,-5928},{-0,1178,5208,-41,-0,-16712},{-3,-1129,3736,-45,-0,21069},{-3,670,8040,358,0,-3920}},{{2,-1043,5780,-140,-0,1912},{-3,874,1311,-641,0,17054},{1,1040,224,-115,-0,6617},{-3,831,4904,-512,-0,9614}},{{0,-996,7657,524,0,21451},{0,974,1800,-644,0,20773},{-0,1345,4903,518,-0,-27349},{3,-495,6015,119,-0,9337}},{{-2,47,6052,-276,0,-5928},{-3,831,4904,-512,-0,9614},{-3,-23,3625,-1,-0,-1359},{-0,1256,8127,-262,0,-14836}},{{2,1114,4666,-94,-0,-13329},{-2,917,7758,-266,0,-23576},{0,-667,4835,-360,-0,-28683},{0,656,3055,-450,0,16207}},{{3,-495,6015,119,-0,9337},{-2,-356,5667,510,-0,29186},{1,944,1294,25,-0,4147},{-0,-17,5320,-50,0,-14852}},{{-0,-17,5320,-50,0,-14852},{-3,116,1521,171,0,20902},{-3,831,4904,-512,-0,9614},{0,1223,7925,-650,-0,12024}}},{{{-3,116,1521,171,0,20902},{-2,917,7758,-266,0,-23576},{-3,116,1521,171,0,20902},{-3,-1443,3995,-230,0,12266}},{{0,974,1800,-644,0,20773},{-2,47,6052,-276,0,-5928},{-1,-63,1084,-402,-0,21008},{3,-495,6015,119,-0,9337}},{{-3,-1345,1241,-278,0,10475},{3,431,6491,-177,0,17034},{-3,-1443,3995,-230,0,12266},{-2,47,6052,-276,0,-5928}},{{0,656,3055,-450,0,16207},{-3,874,1311,-641,0,17054},{-3,-1443,3995,-230,0,12266},{1,1040,224,-115,-0,6617}},{{-3,-1345,1241,-278,0,10475},{-3,-1209,3951,-679,0,28319},{-1,-63,1084,-402,-0,21008},{-3,-1345,1241,-278,0,10475}},{{0,974,1800,-644,0,20773},{0,656,3055,-450,0,16207},{-3,116,1521,171,0,20902},{-2,-570,4390,616,-0,29670}},{{-3,116,1521,171,0,20902},{-2,-570,4390,616,-0,29670},{-3,831,4904,-512,-0,9614},{3,-1329,2864,698,-0,21363}},{{-0,-17,5320,-50,0,-14852},{0,-996,7657,524,0,21451},{1,944,1294,25,-0,4147},{-3,874,1311,-641,0,17054}},{{3,-495,6015,119,-0,9337},{3,417,7742,504,0,3127},{0,-667,4835,-360,-0,-28683},{-2,-570,4390,616,-0,29670}}},{{{2,1114,4666,-94,-0,-13329},{0,1223,7925,-650,-0,12024},{-3,-23,3625,-1,-0,-1359},{-1,1130,6647,-345,0,-2245}},{{-2,47,6052,-276,0,-5928},{-3,-1209,3951,-679,0,28319},{-0,1345,4903,518,-0,-27349},{-3,670,8040,358,0,-3920}},{{0,-996,7657,524,0,21451},{3,-1329,2864,698,-0,21363},{1,1040,224,-115,-0,6617},{-2,47,6052,-276,0,-5928}},{{2,-1043,5780,-140,-0,1912},{0,974,1800,-644,0,20773},{-3,-1129,3736,-45,-0,21069},{-3,-1129,3736,-45,-0,21069}},{{-2,47,6052,-276,0,-5928},{-2,47,6052,-276,0,-5928},{-3,1234,256,-406,-0,11094},{-0,1256,8127,-262,0,-14836}},{{1,1354,4122,516,-0,-4721},{-3,-23,3625,-1,-0,-1359},{0,-667,4835,-360,-0,-28683},{0,1223,7925,-650,-0,12024}},{{-3,-1129,3736,-45,-0,21069},{-2,-356,5667,510,-0,29186},{3,-381,3103,283,0,-3983},{0,-667,4835,-360,-0,-28683}},{{-0,-17,5320,-50,0,-14852},{-2,-356,5667,510,-0,29186},{1,542,2572,-504,0,-2805},{0,1223,7925,-650,-0,12024}},{{-2,-356,5667,510,-0,29186},{-3,-23,3625,-1,-0,-1359},{-3,116,1521,171,0,20902},{-0,1256,8127,-262,0,-14836}}},{{{3,431,6491,-177,0,17034},{-2,47,6052,-276,0,-5928},{-0,1178,5208,-41,-0,-16712},{-3,-1129,3736,-45,-0,21069}},{{-3,-1345,1241,-278,0,10475},{0,974,1800,-644,0,20773},{-0,-794,1213,354,0,7482},{-2,47,6052,-276,0,-5928}},{{0,1223,7925,-650,-0,12024},{3,-1329,2864,698,-0,21363},{-3,-1443,3995,-230,0,12266},{-3,670,8040,358,0,-3920}},{{-1,1130,6647,-345,0,-2245},{-3,-1209,3951,-679,0,28319},{-0,1178,5208,-41,-0,-16712},{-1,1130,6647,-345,0,-2245}},{{0,974,1800,-644,0,20773},{0,1223,7925,-650,-0,12024},{1,-1447,7882,548,0,23368},{-2,-570,4390,616,-0,29670}},{{-2,-356,5667,510,-0,29186},{3,417,7742,504,0,3127},{-3,831,4904,-512,-0,9614},{-3,874,1311,-641,0,17054}},{{0,-667,4835,-360,-0,-28683},{3,417,7742,504,0,3127},{1,1184,2622,-259,-0,5175},{-0,524,2576,-593,-0,1652}},{{-3,116,1521,171,0,20902},{-3,831,4904,-512,-0,9614},{0,1223,7925,-650,-0,12024},{-3,831,4904,-512,-0,9614}},{{-3,-1443,3995,-230,0,12266},{-1,991,6275,-38,0,29850},{2,-1289,4563,-410,-0,-16413},{2,1114,4666,-94,-0,-13329}}},{{{1,-848,5136,-602,-0,-8683},{3,-381,3103,283,0,-3983},{1,-1447,7882,548,0,23368},{-0,1345,4903,518,-0,-27349}},{{3,417,7742,504,0,3127},{2,-1043,5780,-140,-0,1912},{3,-495,6015,119,-0,9337},{0,-667,4835,-360,-0,-28683}},{{3,417,7742,504,0,3127},{-1,-63,1084,-402,-0,21008},{1,-1447,7882,548,0,23368},{-3,116,1521,171,0,20902}},{{1,-848,5136,-602,-0,-8683},{0,-667,4835,-360,-0,-28683},{2,-1289,4563,-410,-0,-16413},{-3,-664,7443,355,0,11322}},{{-3,-1443,3995,-230,0,12266},{3,-1329,2864,698,-0,21363},{0,1223,7925,-650,-0,12024},{-1,1130,6647,-345,0,-2245}},{{-3,116,1521,171,0,20902},{3,-906,7416,-107,0,25298},{1,1184,2622,-259,-0,5175},{0,656,3055,-450,0,16207}},{{2,-607,8019,-490,0,-29765},{3,1413,3146,-40,-0,-30991},{1,-848,5136,-602,-0,-8683},{-1,991,6275,-38,0,29850}},{{3,1413,3146,-40,-0,-30991},{3,-1329,2864,698,-0,21363},{2,-1282,2508,-595,0,-4958},{3,431,6491,-177,0,17034}},{{-0,1178,5208,-41,-0,-16712},{1,-848,5136,-602,-0,-8683},{1,944,1294,25,-0,4147},{-3,116,1521,171,0,20902}}},{{{3,1368,7118,-163,0,-16512},{-0,1178,5208,-41,-0,-16712},{-3,-664,7443,355,0,11322},{1,-848,5136,-602,-0,-8683}},{{-1,1130,6647,-345,0,-2245},{2,-1043,5780,-140,-0,1912},{0,974,1800,-644,0,20773},{-3,-1129,3736,-45,-0,21069}},{{2,1114,4666,-94,-0,-13329},{1,944,1294,25,-0,4147},{1,944,1294,25,-0,4147},{2,1114,4666,-94,-0,-13329}},{{-1,-63,1084,-402,-0,21008},{-1,1130,6647,-345,0,-2245},{3,-906,7416,-107,0,25298},{1,542,2572,-504,0,-2805}},{{3,1413,3146,-40,-0,-30991},{-3,831,4904,-512,-0,9614},{-0,-17,5320,-50,0,-14852},{2,-1043,5780,-140,-0,1912}},{{0,656,3055,-450,0,16207},{-1,1215,8175,568,-0,-1116},{1,1184,2622,-259,-0,5175},{2,-1043,5780,-140,-0,1912}},{{1,-1447,7882,548,0,23368},{-3,831,4904,-512,-0,9614},{2,-607,8019,-490,0,-29765},{1,542,2572,-504,0,-2805}},{{-3,-1443,3995,-230,0,12266},{-1,1130,6647,-345,0,-2245},{-3,874,1311,-641,0,17054},{2,1114,4666,-94,-0,-13329}},{{0,-667,4835,-360,-0,-28683},{1,944,1294,25,-0,4147},{1,-1447,7882,548,0,23368},{-3,-1129,3736,-45,-0,21069}}}};
static int32_t g_1055 = (-3L);
static volatile struct S6 g_1062 = {0,1064,2794,-282,0,-19464};/* VOLATILE GLOBAL g_1062 */
static int32_t g_1095 = (-1L);
static volatile struct S2 g_1120 = {160};/* VOLATILE GLOBAL g_1120 */
static struct S5 g_1139 = {{65535UL,-1L,0x23F56419L,-1L,0xEFL,0xE11AAEB4L},8UL,0L,0UL,0x67L,{0x4AEDB0C7L,{-38,6,310,8704,-6917},0x97L,0xC6EC6620L,0xBDB1C881L}};/* VOLATILE GLOBAL g_1139 */
static struct S6 *****g_1165 = &g_891;
static struct S5 **g_1191 = (void*)0;
static struct S5 ***g_1190 = &g_1191;
static struct S5 ***g_1193 = &g_1191;
static const struct S6 g_1197 = {-0,-706,6337,-43,0,22050};/* VOLATILE GLOBAL g_1197 */
static struct S4 ** volatile g_1238[10][3][3] = {{{&g_316,&g_316,&g_316},{&g_316,&g_316,&g_316},{&g_316,&g_316,(void*)0}},{{&g_316,&g_316,(void*)0},{(void*)0,&g_316,&g_316},{&g_316,&g_316,&g_316}},{{(void*)0,(void*)0,&g_316},{&g_316,&g_316,(void*)0},{&g_316,(void*)0,(void*)0}},{{(void*)0,&g_316,&g_316},{&g_316,&g_316,&g_316},{&g_316,(void*)0,&g_316}},{{&g_316,&g_316,(void*)0},{&g_316,(void*)0,&g_316},{(void*)0,&g_316,&g_316}},{{&g_316,&g_316,&g_316},{&g_316,&g_316,&g_316},{&g_316,&g_316,&g_316}},{{&g_316,&g_316,&g_316},{(void*)0,&g_316,&g_316},{&g_316,&g_316,&g_316}},{{&g_316,(void*)0,&g_316},{(void*)0,&g_316,&g_316},{&g_316,(void*)0,(void*)0}},{{(void*)0,&g_316,&g_316},{&g_316,&g_316,&g_316},{&g_316,&g_316,&g_316}},{{&g_316,&g_316,(void*)0},{&g_316,&g_316,(void*)0},{(void*)0,&g_316,&g_316}}};
static int16_t g_1288 = 0x5F74L;
static volatile uint32_t g_1298 = 0x63CCAD15L;/* VOLATILE GLOBAL g_1298 */
static volatile int32_t g_1318[9] = {0x201A5931L,1L,0x201A5931L,1L,0x201A5931L,1L,0x201A5931L,1L,0x201A5931L};
static uint32_t g_1410 = 0xF18F8F70L;
static struct S6 g_1431[7][3][6] = {{{{-2,720,5401,337,0,-22185},{0,-1017,5374,-251,0,27855},{3,-296,6530,103,0,-30196},{2,-1102,899,263,-0,-3938},{2,-487,5506,719,0,-31298},{3,-296,6530,103,0,-30196}},{{-1,1005,6081,-221,0,30937},{0,-1017,5374,-251,0,27855},{1,-1051,2188,72,0,-20433},{0,619,3323,516,0,-14651},{-1,1217,5161,-682,0,-4035},{-2,1198,3181,632,0,28035}},{{-3,677,7666,364,0,887},{2,-284,2048,138,0,9624},{-0,-149,3737,-520,0,-26408},{1,-1051,2188,72,0,-20433},{-2,789,4572,200,-0,-2744},{1,-1051,2188,72,0,-20433}}},{{{-0,-149,3737,-520,0,-26408},{-2,720,5401,337,0,-22185},{-0,-149,3737,-520,0,-26408},{-3,-205,783,464,-0,31125},{-1,-186,4967,-715,0,14839},{-2,1198,3181,632,0,28035}},{{-1,-1395,746,273,0,26038},{-1,1237,3011,107,0,23944},{1,-1051,2188,72,0,-20433},{-1,836,8047,-229,-0,24949},{-1,925,7464,583,-0,-8067},{-0,881,6604,-35,-0,-31537}},{{-1,836,8047,-229,-0,24949},{-1,925,7464,583,-0,-8067},{-0,881,6604,-35,-0,-31537},{-1,836,8047,-229,-0,24949},{1,183,5979,260,0,20049},{-3,-205,783,464,-0,31125}}},{{{-1,-1395,746,273,0,26038},{3,-296,6530,103,0,-30196},{0,1284,6457,489,0,-29087},{-3,-205,783,464,-0,31125},{2,-1102,899,263,-0,-3938},{-3,677,7666,364,0,887}},{{-0,-149,3737,-520,0,-26408},{1,183,5979,260,0,20049},{-2,70,173,642,-0,3775},{1,-1051,2188,72,0,-20433},{2,-1102,899,263,-0,-3938},{0,-507,7258,-696,-0,-26416}},{{-3,677,7666,364,0,887},{3,-296,6530,103,0,-30196},{3,-566,7773,348,0,30813},{0,619,3323,516,0,-14651},{1,183,5979,260,0,20049},{0,1284,6457,489,0,-29087}}},{{{0,1284,6457,489,0,-29087},{-1,925,7464,583,-0,-8067},{-2,1198,3181,632,0,28035},{-2,1198,3181,632,0,28035},{-1,925,7464,583,-0,-8067},{0,1284,6457,489,0,-29087}},{{0,619,3323,516,0,-14651},{-1,1237,3011,107,0,23944},{3,-566,7773,348,0,30813},{-0,-149,3737,-520,0,-26408},{-1,-186,4967,-715,0,14839},{0,-507,7258,-696,-0,-26416}},{{-0,881,6604,-35,-0,-31537},{-2,720,5401,337,0,-22185},{-2,70,173,642,-0,3775},{0,1284,6457,489,0,-29087},{-2,789,4572,200,-0,-2744},{-3,677,7666,364,0,887}}},{{{-0,881,6604,-35,-0,-31537},{2,-284,2048,138,0,9624},{0,1284,6457,489,0,-29087},{-0,-149,3737,-520,0,-26408},{-1,1217,5161,-682,0,-4035},{-3,-205,783,464,-0,31125}},{{0,619,3323,516,0,-14651},{-1,-186,4967,-715,0,14839},{-0,881,6604,-35,-0,-31537},{-2,1198,3181,632,0,28035},{3,-296,6530,103,0,-30196},{-0,881,6604,-35,-0,-31537}},{{0,1284,6457,489,0,-29087},{-1,-186,4967,-715,0,14839},{1,-1051,2188,72,0,-20433},{0,619,3323,516,0,-14651},{-1,1217,5161,-682,0,-4035},{-2,1198,3181,632,0,28035}}},{{{-3,677,7666,364,0,887},{2,-284,2048,138,0,9624},{-0,-149,3737,-520,0,-26408},{1,-1051,2188,72,0,-20433},{-2,789,4572,200,-0,-2744},{1,-1051,2188,72,0,-20433}},{{-0,-149,3737,-520,0,-26408},{-2,720,5401,337,0,-22185},{-0,-149,3737,-520,0,-26408},{-3,-205,783,464,-0,31125},{-1,-186,4967,-715,0,14839},{-2,1198,3181,632,0,28035}},{{-1,-1395,746,273,0,26038},{-1,1237,3011,107,0,23944},{1,-1051,2188,72,0,-20433},{-1,836,8047,-229,-0,24949},{-1,925,7464,583,-0,-8067},{-0,881,6604,-35,-0,-31537}}},{{{-1,836,8047,-229,-0,24949},{-1,925,7464,583,-0,-8067},{-0,881,6604,-35,-0,-31537},{-1,836,8047,-229,-0,24949},{1,183,5979,260,0,20049},{-3,-205,783,464,-0,31125}},{{-1,-1395,746,273,0,26038},{3,-296,6530,103,0,-30196},{0,1284,6457,489,0,-29087},{-3,-205,783,464,-0,31125},{2,-1102,899,263,-0,-3938},{-3,677,7666,364,0,887}},{{-0,-149,3737,-520,0,-26408},{1,183,5979,260,0,20049},{-2,70,173,642,-0,3775},{1,-1051,2188,72,0,-20433},{2,-1102,899,263,-0,-3938},{0,-507,7258,-696,-0,-26416}}}};
static struct S0 g_1439 = {0x3140L,0x5FC9E8DEL,1UL,-3L,1UL,1L};/* VOLATILE GLOBAL g_1439 */
static struct S2 g_1458 = {170};/* VOLATILE GLOBAL g_1458 */
static uint64_t g_1468 = 0x44DA7097E337BAA4LL;
static struct S2 g_1471 = {88};/* VOLATILE GLOBAL g_1471 */
static volatile struct S6 g_1502 = {-3,1252,6823,247,0,-16701};/* VOLATILE GLOBAL g_1502 */
static volatile struct S6 g_1503 = {3,942,6156,38,0,14589};/* VOLATILE GLOBAL g_1503 */
static const struct S6 g_1527 = {-0,934,579,-540,-0,-26230};/* VOLATILE GLOBAL g_1527 */
static struct S6 g_1551 = {1,830,543,715,-0,-13495};/* VOLATILE GLOBAL g_1551 */
static struct S6 g_1561 = {2,431,1470,413,-0,14062};/* VOLATILE GLOBAL g_1561 */
static struct S7 g_1564 = {{142}};/* VOLATILE GLOBAL g_1564 */
static struct S7 ** volatile g_1565[1][8][10] = {{{&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2]},{&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2]},{&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2]},{&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2]},{&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2]},{&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2]},{&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2]},{&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2],&g_827[2]}}};
static struct S7 g_1567 = {{81}};/* VOLATILE GLOBAL g_1567 */
static struct S5 g_1575 = {{0xD7C7L,0x395DB1C8L,0UL,0xC484A2C528F61B6ALL,0x4FL,-1L},4UL,-1L,0xD53E17E2L,0x0FL,{0x8EF09B47L,{-40,210,144,3232,-3876},5L,1L,0xCE55B311L}};/* VOLATILE GLOBAL g_1575 */
static volatile struct S7 g_1582 = {{87}};/* VOLATILE GLOBAL g_1582 */
static struct S7 g_1598 = {{30}};/* VOLATILE GLOBAL g_1598 */
static volatile struct S1 g_1608[10][9] = {{{86,83,729,10168,3853},{29,183,680,3529,-2752},{-43,26,1351,503,5334},{51,134,2616,10771,-8513},{-89,58,1987,4468,-9622},{68,184,1834,6062,11065},{-57,69,1503,8995,9587},{29,183,680,3529,-2752},{29,183,680,3529,-2752}},{{-49,8,246,1010,5512},{-78,161,863,5270,-37},{15,45,1194,3080,-1583},{0,118,1658,2002,-11310},{15,45,1194,3080,-1583},{-78,161,863,5270,-37},{-49,8,246,1010,5512},{83,242,700,1712,-612},{-78,161,863,5270,-37}},{{51,134,2616,10771,-8513},{-39,198,989,6134,-8520},{-43,26,1351,503,5334},{-51,145,2370,6766,-9927},{68,184,1834,6062,11065},{66,216,1583,11439,6947},{30,4,2467,9997,10580},{68,184,1834,6062,11065},{-39,198,989,6134,-8520}},{{-49,8,246,1010,5512},{15,45,1194,3080,-1583},{83,242,700,1712,-612},{-25,176,1546,2920,-369},{67,179,2677,6262,-3372},{67,179,2677,6262,-3372},{-25,176,1546,2920,-369},{83,242,700,1712,-612},{15,45,1194,3080,-1583}},{{86,83,729,10168,3853},{11,41,2880,1246,-7462},{66,216,1583,11439,6947},{-57,69,1503,8995,9587},{-43,26,1351,503,5334},{66,216,1583,11439,6947},{-32,205,1456,10711,3401},{29,183,680,3529,-2752},{11,41,2880,1246,-7462}},{{55,197,1108,3504,-7327},{40,151,1500,7449,7056},{-45,111,306,9127,-3766},{-25,176,1546,2920,-369},{40,151,1500,7449,7056},{-78,161,863,5270,-37},{46,243,1704,2059,2596},{-78,161,863,5270,-37},{40,151,1500,7449,7056}},{{-51,145,2370,6766,-9927},{11,41,2880,1246,-7462},{11,41,2880,1246,-7462},{-51,145,2370,6766,-9927},{29,183,680,3529,-2752},{68,184,1834,6062,11065},{86,83,729,10168,3853},{-39,198,989,6134,-8520},{11,41,2880,1246,-7462}},{{-17,220,516,5103,-4401},{15,45,1194,3080,-1583},{67,179,2677,6262,-3372},{0,118,1658,2002,-11310},{-56,194,2318,8782,6822},{40,151,1500,7449,7056},{46,243,1704,2059,2596},{15,45,1194,3080,-1583},{15,45,1194,3080,-1583}},{{-32,205,1456,10711,3401},{-39,198,989,6134,-8520},{29,183,680,3529,-2752},{51,134,2616,10771,-8513},{29,183,680,3529,-2752},{-39,198,989,6134,-8520},{-32,205,1456,10711,3401},{11,41,2880,1246,-7462},{-39,198,989,6134,-8520}},{{0,118,1658,2002,-11310},{-78,161,863,5270,-37},{67,179,2677,6262,-3372},{55,197,1108,3504,-7327},{40,151,1500,7449,7056},{-45,111,306,9127,-3766},{-25,176,1546,2920,-369},{40,151,1500,7449,7056},{-78,161,863,5270,-37}}};
static struct S1 g_1617[6][7][5] = {{{{51,201,807,5273,963},{52,194,849,6254,-864},{-30,86,509,8978,-4832},{-35,25,1331,5850,-2257},{49,29,152,1311,-736}},{{-19,114,655,198,7298},{-35,25,1331,5850,-2257},{-27,37,2625,9341,-10222},{42,204,1447,5667,-8543},{83,86,691,9752,3590}},{{-59,104,1645,11099,-6171},{-89,249,1551,5900,-774},{2,80,1289,9772,290},{-25,236,339,1411,2662},{-29,248,2112,10849,10476}},{{-19,114,655,198,7298},{53,21,599,398,-5170},{4,115,952,5474,-9134},{-73,190,524,7184,-10597},{23,85,92,1761,9142}},{{51,201,807,5273,963},{29,182,795,8466,5990},{77,232,2780,2423,4187},{54,159,2263,3449,-4349},{-36,36,749,5267,-5401}},{{39,190,858,9953,5974},{-46,199,2557,6604,-1903},{-33,191,822,2582,10551},{-16,133,2746,61,5579},{-73,190,524,7184,-10597}},{{54,159,2263,3449,-4349},{53,21,599,398,-5170},{-2,248,1221,216,8821},{-29,248,2112,10849,10476},{-36,157,1850,28,6324}}},{{{14,199,884,3733,-2361},{-36,36,749,5267,-5401},{5,4,1900,2933,6260},{57,128,1432,11044,-10311},{21,182,869,2815,-3787}},{{-33,191,822,2582,10551},{-66,20,603,3468,-2160},{23,85,92,1761,9142},{-36,157,1850,28,6324},{-35,25,1331,5850,-2257}},{{-66,20,603,3468,-2160},{52,194,849,6254,-864},{-22,142,1576,10337,6938},{-2,173,545,8705,7610},{-25,236,339,1411,2662}},{{29,182,795,8466,5990},{-2,250,2009,6081,7814},{77,232,2780,2423,4187},{-2,173,545,8705,7610},{24,36,2463,2033,-7140}},{{-59,104,1645,11099,-6171},{-29,248,2112,10849,10476},{60,57,150,222,2762},{-36,157,1850,28,6324},{18,228,1582,10444,-2998}},{{47,31,1140,5050,-4733},{15,13,2734,10156,682},{-66,130,2587,11112,7578},{57,128,1432,11044,-10311},{23,85,92,1761,9142}},{{68,78,1557,2537,4190},{-36,251,1437,8102,3546},{-27,37,2625,9341,-10222},{-29,248,2112,10849,10476},{-15,84,1619,9015,9140}}},{{{-22,142,1576,10337,6938},{83,86,691,9752,3590},{-59,104,1645,11099,-6171},{-16,133,2746,61,5579},{29,182,795,8466,5990}},{{-15,84,1619,9015,9140},{-80,51,1529,10326,8569},{-25,236,339,1411,2662},{54,159,2263,3449,-4349},{-25,236,339,1411,2662}},{{17,12,2627,964,-313},{17,12,2627,964,-313},{5,4,1900,2933,6260},{-73,190,524,7184,-10597},{-66,160,1006,8214,-9571}},{{-22,142,1576,10337,6938},{21,182,869,2815,-3787},{76,25,2010,10899,10668},{-25,236,339,1411,2662},{51,201,807,5273,963}},{{-2,250,2009,6081,7814},{52,194,849,6254,-864},{83,165,1824,4877,-2704},{42,204,1447,5667,-8543},{63,107,986,7118,-3242}},{{2,80,1289,9772,290},{-25,236,339,1411,2662},{-29,248,2112,10849,10476},{-16,133,2746,61,5579},{15,13,2734,10156,682}},{{59,212,2607,1615,7650},{22,47,1890,9162,10812},{41,21,2434,10765,-9265},{-87,120,1027,376,4323},{82,18,429,5405,8175}}},{{{60,57,150,222,2762},{41,21,2434,10765,-9265},{59,208,1949,2092,-9346},{60,57,150,222,2762},{50,25,1855,9829,3666}},{{-16,133,2746,61,5579},{2,80,1289,9772,290},{-29,248,2112,10849,10476},{-40,2,2086,4037,-10083},{-33,191,822,2582,10551}},{{30,40,130,11068,-9174},{15,13,2734,10156,682},{-57,145,809,7566,-1208},{-20,135,1597,5024,2198},{52,194,849,6254,-864}},{{39,190,858,9953,5974},{29,200,191,8388,971},{-52,33,561,1296,7288},{22,47,1890,9162,10812},{-87,120,1027,376,4323}},{{82,18,429,5405,8175},{39,190,858,9953,5974},{54,159,2263,3449,-4349},{4,115,952,5474,-9134},{-40,211,1800,5141,2206}},{{43,165,285,109,8580},{-40,211,1800,5141,2206},{63,107,986,7118,-3242},{-87,120,1027,376,4323},{-40,211,1800,5141,2206}},{{-36,157,1850,28,6324},{-27,37,2625,9341,-10222},{-46,22,1691,11381,-8974},{-2,248,1221,216,8821},{-87,120,1027,376,4323}}},{{{-80,51,1529,10326,8569},{-2,248,1221,216,8821},{-24,100,2548,7792,-912},{49,29,152,1311,-736},{52,194,849,6254,-864}},{{59,212,2607,1615,7650},{-59,104,1645,11099,-6171},{-27,37,2625,9341,-10222},{-40,253,2657,4022,-10482},{-33,191,822,2582,10551}},{{15,13,2734,10156,682},{59,208,1949,2092,-9346},{-75,33,1507,5528,-4136},{53,21,599,398,-5170},{50,25,1855,9829,3666}},{{-25,236,339,1411,2662},{60,57,150,222,2762},{14,199,884,3733,-2361},{82,18,429,5405,8175},{82,18,429,5405,8175}},{{43,165,285,109,8580},{4,115,952,5474,-9134},{43,165,285,109,8580},{-20,135,1597,5024,2198},{15,13,2734,10156,682}},{{-59,104,1645,11099,-6171},{59,208,1949,2092,-9346},{-20,135,1597,5024,2198},{-22,142,1576,10337,6938},{63,107,986,7118,-3242}},{{-22,142,1576,10337,6938},{82,18,429,5405,8175},{54,159,2263,3449,-4349},{52,194,849,6254,-864},{49,29,152,1311,-736}}},{{{30,40,130,11068,-9174},{-16,133,2746,61,5579},{-20,135,1597,5024,2198},{63,107,986,7118,-3242},{23,85,92,1761,9142}},{{23,85,92,1761,9142},{-27,37,2625,9341,-10222},{43,165,285,109,8580},{76,25,2010,10899,10668},{-40,253,2657,4022,-10482}},{{-38,145,2022,706,-10288},{-69,149,2064,1791,2818},{14,199,884,3733,-2361},{-40,211,1800,5141,2206},{4,115,952,5474,-9134}},{{59,212,2607,1615,7650},{-33,191,822,2582,10551},{-75,33,1507,5528,-4136},{63,107,986,7118,-3242},{83,165,1824,4877,-2704}},{{-66,130,2587,11112,7578},{29,200,191,8388,971},{-27,37,2625,9341,-10222},{2,80,1289,9772,290},{50,25,1855,9829,3666}},{{-69,149,2064,1791,2818},{-80,51,1529,10326,8569},{-24,100,2548,7792,-912},{-33,191,822,2582,10551},{-40,2,2086,4037,-10083}},{{-71,121,627,1803,-5312},{-66,130,2587,11112,7578},{-46,22,1691,11381,-8974},{-20,135,1597,5024,2198},{-38,145,2022,706,-10288}}}};
static struct S0 g_1666 = {65535UL,0x55138B9BL,0x259953A7L,0xF4150BB8FFC8039CLL,1UL,1L};/* VOLATILE GLOBAL g_1666 */
static struct S1 ** volatile g_1677 = &g_806;/* VOLATILE GLOBAL g_1677 */
static volatile struct S4 g_1686 = {{0UL,0x9D8C7258L,1UL,-6L,255UL,-8L}};/* VOLATILE GLOBAL g_1686 */
static volatile struct S5 g_1713[5][9] = {{{{0xB1BBL,0x77147963L,0xFFD00626L,1L,0x41L,-3L},0x25B4L,1L,0xEFB77416L,255UL,{0UL,{-54,177,1150,9079,-7919},0xC4L,9L,1L}},{{65535UL,-1L,0xB05A7DBEL,7L,0xF6L,0x782951D4L},65535UL,0L,0xC1506F0EL,0xD2L,{0x513B9E2CL,{16,94,1530,558,10175},0L,-3L,3L}},{{1UL,0xDE668F41L,0xEC761C66L,0xF984C670812C9E6CLL,2UL,0x3D42D951L},0x2FBAL,1L,9UL,255UL,{0x72C4F8FCL,{22,189,2587,11362,8884},0x9BL,0x89A9DC41L,8L}},{{0x04A0L,0xD5E099B3L,0x462A1B2BL,1L,0xB9L,-1L},1UL,-1L,0x285591BCL,255UL,{2UL,{-54,98,533,2010,2229},-1L,0x3CA06B3EL,0xA4DDB4C8L}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}},{{1UL,0xDE668F41L,0xEC761C66L,0xF984C670812C9E6CLL,2UL,0x3D42D951L},0x2FBAL,1L,9UL,255UL,{0x72C4F8FCL,{22,189,2587,11362,8884},0x9BL,0x89A9DC41L,8L}},{{0UL,0xF91DBB57L,0UL,0L,0x99L,0x963ABB84L},0x8E90L,0xB8D8EF31L,3UL,7UL,{0x7BC529EEL,{23,187,1104,758,-1529},-5L,0xA1F7DCA0L,0x72C02524L}},{{1UL,0xDE668F41L,0xEC761C66L,0xF984C670812C9E6CLL,2UL,0x3D42D951L},0x2FBAL,1L,9UL,255UL,{0x72C4F8FCL,{22,189,2587,11362,8884},0x9BL,0x89A9DC41L,8L}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}}},{{{0xB1BBL,0x77147963L,0xFFD00626L,1L,0x41L,-3L},0x25B4L,1L,0xEFB77416L,255UL,{0UL,{-54,177,1150,9079,-7919},0xC4L,9L,1L}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}},{{0xB1BBL,0x77147963L,0xFFD00626L,1L,0x41L,-3L},0x25B4L,1L,0xEFB77416L,255UL,{0UL,{-54,177,1150,9079,-7919},0xC4L,9L,1L}},{{65535UL,-1L,0xB05A7DBEL,7L,0xF6L,0x782951D4L},65535UL,0L,0xC1506F0EL,0xD2L,{0x513B9E2CL,{16,94,1530,558,10175},0L,-3L,3L}},{{1UL,0xDE668F41L,0xEC761C66L,0xF984C670812C9E6CLL,2UL,0x3D42D951L},0x2FBAL,1L,9UL,255UL,{0x72C4F8FCL,{22,189,2587,11362,8884},0x9BL,0x89A9DC41L,8L}},{{0x04A0L,0xD5E099B3L,0x462A1B2BL,1L,0xB9L,-1L},1UL,-1L,0x285591BCL,255UL,{2UL,{-54,98,533,2010,2229},-1L,0x3CA06B3EL,0xA4DDB4C8L}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}},{{1UL,0xDE668F41L,0xEC761C66L,0xF984C670812C9E6CLL,2UL,0x3D42D951L},0x2FBAL,1L,9UL,255UL,{0x72C4F8FCL,{22,189,2587,11362,8884},0x9BL,0x89A9DC41L,8L}}},{{{3UL,0x512F6989L,0x3CB24112L,0x2F072515D126BE00LL,255UL,0L},8UL,0xBEE6EB0FL,4294967295UL,254UL,{4294967294UL,{-81,52,58,6735,9079},0xB7L,0x9A0C3F9EL,0xBBFBFF0DL}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}},{{65530UL,0xB1C396EFL,4294967290UL,1L,9UL,0x1E0BEB98L},1UL,0x915E1B30L,0UL,0xA0L,{0x251BE720L,{51,31,230,2741,-5428},0xAFL,0L,-1L}},{{0x04A0L,0xD5E099B3L,0x462A1B2BL,1L,0xB9L,-1L},1UL,-1L,0x285591BCL,255UL,{2UL,{-54,98,533,2010,2229},-1L,0x3CA06B3EL,0xA4DDB4C8L}},{{0UL,0x06F18D6FL,0UL,1L,255UL,0x31E0A6A2L},0xBEF8L,-1L,5UL,0xCBL,{0UL,{-86,138,1395,787,-8078},0x70L,0xB6EE66BEL,0x2BDBA6E8L}},{{0UL,0x06F18D6FL,0UL,1L,255UL,0x31E0A6A2L},0xBEF8L,-1L,5UL,0xCBL,{0UL,{-86,138,1395,787,-8078},0x70L,0xB6EE66BEL,0x2BDBA6E8L}},{{0x04A0L,0xD5E099B3L,0x462A1B2BL,1L,0xB9L,-1L},1UL,-1L,0x285591BCL,255UL,{2UL,{-54,98,533,2010,2229},-1L,0x3CA06B3EL,0xA4DDB4C8L}},{{65530UL,0xB1C396EFL,4294967290UL,1L,9UL,0x1E0BEB98L},1UL,0x915E1B30L,0UL,0xA0L,{0x251BE720L,{51,31,230,2741,-5428},0xAFL,0L,-1L}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}}},{{{0x04A0L,0xD5E099B3L,0x462A1B2BL,1L,0xB9L,-1L},1UL,-1L,0x285591BCL,255UL,{2UL,{-54,98,533,2010,2229},-1L,0x3CA06B3EL,0xA4DDB4C8L}},{{65535UL,-1L,0xB05A7DBEL,7L,0xF6L,0x782951D4L},65535UL,0L,0xC1506F0EL,0xD2L,{0x513B9E2CL,{16,94,1530,558,10175},0L,-3L,3L}},{{65530UL,0xB1C396EFL,4294967290UL,1L,9UL,0x1E0BEB98L},1UL,0x915E1B30L,0UL,0xA0L,{0x251BE720L,{51,31,230,2741,-5428},0xAFL,0L,-1L}},{{0x9E9BL,0x97B56981L,0xE3BFC850L,0xBE45E08BF942E3FBLL,0x2FL,0L},0x73B6L,0xBA6E4DEFL,0x2D84CD0AL,4UL,{0x8BA9A755L,{-20,181,792,3929,888},0xEEL,0xA554D7E8L,-1L}},{{65535UL,-1L,0xB05A7DBEL,7L,0xF6L,0x782951D4L},65535UL,0L,0xC1506F0EL,0xD2L,{0x513B9E2CL,{16,94,1530,558,10175},0L,-3L,3L}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}},{{0UL,0xF91DBB57L,0UL,0L,0x99L,0x963ABB84L},0x8E90L,0xB8D8EF31L,3UL,7UL,{0x7BC529EEL,{23,187,1104,758,-1529},-5L,0xA1F7DCA0L,0x72C02524L}},{{65530UL,0xB1C396EFL,4294967290UL,1L,9UL,0x1E0BEB98L},1UL,0x915E1B30L,0UL,0xA0L,{0x251BE720L,{51,31,230,2741,-5428},0xAFL,0L,-1L}},{{65530UL,0xB1C396EFL,4294967290UL,1L,9UL,0x1E0BEB98L},1UL,0x915E1B30L,0UL,0xA0L,{0x251BE720L,{51,31,230,2741,-5428},0xAFL,0L,-1L}}},{{{3UL,0x512F6989L,0x3CB24112L,0x2F072515D126BE00LL,255UL,0L},8UL,0xBEE6EB0FL,4294967295UL,254UL,{4294967294UL,{-81,52,58,6735,9079},0xB7L,0x9A0C3F9EL,0xBBFBFF0DL}},{{0UL,0x06F18D6FL,0UL,1L,255UL,0x31E0A6A2L},0xBEF8L,-1L,5UL,0xCBL,{0UL,{-86,138,1395,787,-8078},0x70L,0xB6EE66BEL,0x2BDBA6E8L}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}},{{0x9E9BL,0x97B56981L,0xE3BFC850L,0xBE45E08BF942E3FBLL,0x2FL,0L},0x73B6L,0xBA6E4DEFL,0x2D84CD0AL,4UL,{0x8BA9A755L,{-20,181,792,3929,888},0xEEL,0xA554D7E8L,-1L}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}},{{0UL,0x06F18D6FL,0UL,1L,255UL,0x31E0A6A2L},0xBEF8L,-1L,5UL,0xCBL,{0UL,{-86,138,1395,787,-8078},0x70L,0xB6EE66BEL,0x2BDBA6E8L}},{{3UL,0x512F6989L,0x3CB24112L,0x2F072515D126BE00LL,255UL,0L},8UL,0xBEE6EB0FL,4294967295UL,254UL,{4294967294UL,{-81,52,58,6735,9079},0xB7L,0x9A0C3F9EL,0xBBFBFF0DL}},{{0xE015L,0x5F1577AFL,1UL,4L,0x60L,0L},0UL,0x09191D37L,1UL,0xCAL,{4294967288UL,{88,36,860,3154,-10376},-10L,0xB1C6D690L,-1L}},{{65530UL,0xB1C396EFL,4294967290UL,1L,9UL,0x1E0BEB98L},1UL,0x915E1B30L,0UL,0xA0L,{0x251BE720L,{51,31,230,2741,-5428},0xAFL,0L,-1L}}}};
static const struct S5 g_1717 = {{0UL,0x13AA3724L,1UL,0L,0xF0L,0x81B0B755L},0xB02CL,-6L,1UL,248UL,{0UL,{-1,253,2427,11435,6676},0x04L,0xD50B2005L,0x0E1D5E76L}};/* VOLATILE GLOBAL g_1717 */
static const struct S5 g_1721 = {{0x57F8L,0xF0282312L,0UL,0x3345BFB3AFC35BD4LL,0x31L,0x3B84F327L},0x203AL,0xBA9BE89EL,0UL,0xB5L,{0x4E2B5282L,{-77,34,1341,1909,-2287},0x17L,1L,1L}};/* VOLATILE GLOBAL g_1721 */
static struct S6 g_1737 = {1,828,7740,-206,-0,-15596};/* VOLATILE GLOBAL g_1737 */
static struct S6 g_1738 = {-2,-1237,5621,44,0,-8181};/* VOLATILE GLOBAL g_1738 */
static struct S2 g_1740 = {154};/* VOLATILE GLOBAL g_1740 */
static struct S0 g_1780 = {0xC8D0L,0x2FED9DBAL,0UL,0x3AB36D8B77B50B2FLL,1UL,-7L};/* VOLATILE GLOBAL g_1780 */
static struct S0 g_1781 = {0xB361L,1L,0x38162080L,9L,8UL,0x077F7C17L};/* VOLATILE GLOBAL g_1781 */
static struct S0 g_1782 = {0x97A3L,-4L,0x9C36EB49L,-10L,0x79L,2L};/* VOLATILE GLOBAL g_1782 */
static struct S0 g_1783 = {0x60F7L,0x458F701CL,4294967287UL,3L,252UL,-4L};/* VOLATILE GLOBAL g_1783 */
static struct S0 g_1784 = {1UL,0xB7F480B4L,0x85864C47L,-1L,2UL,0xF8FD373CL};/* VOLATILE GLOBAL g_1784 */
static struct S0 g_1786 = {0x82CCL,0L,4294967288UL,0L,0UL,8L};/* VOLATILE GLOBAL g_1786 */
static struct S0 *g_1785 = &g_1786;
static volatile int32_t g_1808 = 0x3117496EL;/* VOLATILE GLOBAL g_1808 */
static volatile int64_t **g_1821 = (void*)0;
static struct S4 **** volatile *g_1832 = &g_757;
static const volatile struct S1 g_1838 = {-81,38,1732,11101,11239};/* VOLATILE GLOBAL g_1838 */
static int8_t *g_1844 = &g_310;
static int8_t **g_1843 = &g_1844;
static int8_t ***g_1842 = &g_1843;
static const struct S7 g_1865 = {{2}};/* VOLATILE GLOBAL g_1865 */
static volatile struct S7 g_1873 = {{179}};/* VOLATILE GLOBAL g_1873 */
static uint16_t g_1887 = 0x4E73L;
static struct S2 g_1909[4] = {{8},{8},{8},{8}};
static struct S5 ** volatile g_1913 = &g_187;/* VOLATILE GLOBAL g_1913 */
static struct S7 g_1945 = {{121}};/* VOLATILE GLOBAL g_1945 */
static struct S6 g_1982 = {3,1191,32,692,-0,30217};/* VOLATILE GLOBAL g_1982 */
static struct S6 g_1983 = {1,975,6128,317,-0,29182};/* VOLATILE GLOBAL g_1983 */
static volatile struct S7 g_2003 = {{21}};/* VOLATILE GLOBAL g_2003 */
static volatile struct S0 g_2021 = {0x7D9DL,0x463F3BEEL,0x2560BE54L,0x2E1C9A437DDF248DLL,255UL,0x89ECDDA7L};/* VOLATILE GLOBAL g_2021 */
static volatile struct S4 g_2025 = {{1UL,0x4B94ED17L,6UL,0xDC484D7AAE8C19FELL,3UL,0xC56F8CC4L}};/* VOLATILE GLOBAL g_2025 */
static struct S1 g_2034 = {-78,186,2502,2864,-7374};/* VOLATILE GLOBAL g_2034 */
static struct S4 g_2051[5] = {{{1UL,8L,1UL,0x7FB6177CABB5CA2CLL,255UL,-1L}},{{1UL,8L,1UL,0x7FB6177CABB5CA2CLL,255UL,-1L}},{{1UL,8L,1UL,0x7FB6177CABB5CA2CLL,255UL,-1L}},{{1UL,8L,1UL,0x7FB6177CABB5CA2CLL,255UL,-1L}},{{1UL,8L,1UL,0x7FB6177CABB5CA2CLL,255UL,-1L}}};
static struct S3 g_2056 = {0x7FA510F1L,{-39,186,2460,2684,-9177},1L,0xF723C3CAL,0xF0351395L};/* VOLATILE GLOBAL g_2056 */
static struct S7 g_2058 = {{134}};/* VOLATILE GLOBAL g_2058 */
static struct S1 g_2059 = {83,118,1039,7386,10004};/* VOLATILE GLOBAL g_2059 */
static volatile struct S0 g_2060 = {65532UL,-6L,4294967286UL,0xCEBA561467F207B0LL,0x1EL,3L};/* VOLATILE GLOBAL g_2060 */
static struct S4 g_2078 = {{0x1922L,0x20AFB541L,0x0499EF45L,0xED485ACFD216DA77LL,246UL,0xF24A7463L}};/* VOLATILE GLOBAL g_2078 */
static struct S6 g_2085[4][6] = {{{0,825,2758,269,-0,-700},{-3,-716,7891,-664,-0,32086},{-3,-716,7891,-664,-0,32086},{0,825,2758,269,-0,-700},{-3,-716,7891,-664,-0,32086},{-3,-716,7891,-664,-0,32086}},{{0,825,2758,269,-0,-700},{-3,-716,7891,-664,-0,32086},{-3,-716,7891,-664,-0,32086},{0,825,2758,269,-0,-700},{-3,-716,7891,-664,-0,32086},{-3,-716,7891,-664,-0,32086}},{{0,825,2758,269,-0,-700},{-3,-716,7891,-664,-0,32086},{-3,-716,7891,-664,-0,32086},{0,825,2758,269,-0,-700},{-3,-716,7891,-664,-0,32086},{-3,-716,7891,-664,-0,32086}},{{0,825,2758,269,-0,-700},{-3,-716,7891,-664,-0,32086},{3,530,89,278,-0,5083},{-3,-716,7891,-664,-0,32086},{3,530,89,278,-0,5083},{3,530,89,278,-0,5083}}};
static int32_t g_2093 = 0x5D5902F5L;
static struct S0 ** volatile g_2108[1] = {&g_459};
static volatile struct S1 g_2111 = {-13,165,1389,7792,-1465};/* VOLATILE GLOBAL g_2111 */
static struct S6 g_2114 = {-0,1323,1001,18,-0,-30367};/* VOLATILE GLOBAL g_2114 */
static volatile uint32_t *g_2116 = &g_962[4];
static volatile uint32_t **g_2115 = &g_2116;
static uint32_t g_2123 = 4294967295UL;
static struct S6 g_2130 = {-2,-1115,2125,621,0,925};/* VOLATILE GLOBAL g_2130 */
static volatile struct S4 g_2139 = {{65535UL,0x2C54415AL,0x606DA605L,0L,1UL,0x95DA1558L}};/* VOLATILE GLOBAL g_2139 */
static struct S6 g_2140 = {-2,-866,7692,-42,0,-8680};/* VOLATILE GLOBAL g_2140 */
static uint16_t g_2144 = 0xAAC8L;
static struct S2 g_2145 = {161};/* VOLATILE GLOBAL g_2145 */
static struct S5 g_2157 = {{65527UL,0xBB35B689L,0x63530054L,1L,0xAFL,0L},4UL,0L,4294967294UL,0UL,{1UL,{-78,152,1109,2898,1948},1L,0x21B18574L,0x7F3C88FEL}};/* VOLATILE GLOBAL g_2157 */
static volatile int16_t g_2164 = 0x9CECL;/* VOLATILE GLOBAL g_2164 */
static const volatile struct S6 g_2175 = {-1,-560,5645,-462,-0,-19055};/* VOLATILE GLOBAL g_2175 */
static volatile struct S6 g_2176 = {3,1292,5767,-211,-0,8592};/* VOLATILE GLOBAL g_2176 */
static const volatile uint16_t g_2197 = 0x89EBL;/* VOLATILE GLOBAL g_2197 */
static struct S0 g_2214[1] = {{0x3054L,0x9C2BA90BL,0x767B376AL,0xB40187A30E593522LL,8UL,1L}};
static volatile struct S6 g_2215 = {-2,-48,6418,-553,-0,-690};/* VOLATILE GLOBAL g_2215 */
static volatile struct S5 g_2216 = {{0xCABDL,0x7907AF38L,4294967295UL,0xE5F115DA4490071ALL,0xB9L,0x4A3E56A0L},2UL,0x9B892D6DL,0x72ACB3E3L,0x8FL,{4294967292UL,{-66,242,2173,893,-3639},0x04L,1L,9L}};/* VOLATILE GLOBAL g_2216 */
static volatile struct S6 g_2222 = {-2,894,7113,-634,-0,-29268};/* VOLATILE GLOBAL g_2222 */
static volatile struct S4 g_2228 = {{0x9F28L,0L,0x0BF8AE0AL,6L,0x7FL,-9L}};/* VOLATILE GLOBAL g_2228 */
static struct S5 g_2283 = {{0x98D1L,0x7EFDFD44L,4294967295UL,0xE2D96BE51E049028LL,0x01L,0xB7CFDC75L},1UL,0L,0xC66F5C53L,254UL,{4294967295UL,{-21,198,135,7554,-10507},0x73L,3L,-10L}};/* VOLATILE GLOBAL g_2283 */
static struct S6 g_2290 = {-2,151,545,314,0,-22054};/* VOLATILE GLOBAL g_2290 */
static struct S6 g_2291 = {-1,-476,1875,-662,0,-3783};/* VOLATILE GLOBAL g_2291 */
static const volatile int16_t *g_2293 = &g_2164;
static const volatile int16_t **g_2292 = &g_2293;
static int16_t g_2300 = 0x5AF2L;
static volatile struct S4 g_2303 = {{2UL,0x38D96ED3L,0x6EE1C27CL,8L,0x42L,1L}};/* VOLATILE GLOBAL g_2303 */
static struct S6 g_2316 = {-0,-424,5200,201,0,-6698};/* VOLATILE GLOBAL g_2316 */
static struct S6 g_2317[8] = {{3,1265,666,-415,0,-32196},{3,1265,666,-415,0,-32196},{-1,-105,4044,-396,-0,-2667},{3,1265,666,-415,0,-32196},{3,1265,666,-415,0,-32196},{-1,-105,4044,-396,-0,-2667},{3,1265,666,-415,0,-32196},{3,1265,666,-415,0,-32196}};
static int8_t *g_2321 = &g_310;
static volatile struct S4 g_2331 = {{0x0B2EL,0xBE2C4E97L,4294967286UL,0xD475BA92084C10A0LL,0x05L,0x9386137AL}};/* VOLATILE GLOBAL g_2331 */
static volatile struct S6 g_2333 = {-0,-427,2200,272,-0,-21409};/* VOLATILE GLOBAL g_2333 */
static struct S6 g_2365 = {2,744,1567,-573,0,7755};/* VOLATILE GLOBAL g_2365 */
static const struct S1 g_2368 = {-20,37,1416,10831,9201};/* VOLATILE GLOBAL g_2368 */
static struct S2 g_2378 = {143};/* VOLATILE GLOBAL g_2378 */
static struct S6 g_2381[5][1] = {{{3,-989,3938,-273,-0,-28195}},{{0,519,292,603,-0,25127}},{{3,-989,3938,-273,-0,-28195}},{{0,519,292,603,-0,25127}},{{3,-989,3938,-273,-0,-28195}}};
static struct S6 g_2382 = {-1,861,2899,-576,0,-6708};/* VOLATILE GLOBAL g_2382 */
static struct S6 g_2383 = {-2,401,8109,185,-0,-21451};/* VOLATILE GLOBAL g_2383 */
static struct S6 g_2389[9] = {{-0,-1275,6996,-80,-0,4967},{-0,769,1999,683,0,21503},{-0,769,1999,683,0,21503},{-0,-1275,6996,-80,-0,4967},{-0,769,1999,683,0,21503},{-0,769,1999,683,0,21503},{-0,-1275,6996,-80,-0,4967},{-0,769,1999,683,0,21503},{-0,769,1999,683,0,21503}};
static struct S6 g_2390 = {2,605,6814,547,-0,28133};/* VOLATILE GLOBAL g_2390 */
static struct S6 g_2391 = {-3,196,7149,368,-0,15845};/* VOLATILE GLOBAL g_2391 */
static struct S4 g_2392 = {{0x7082L,0xC41B23CFL,0UL,0xD0B55079190592FFLL,255UL,0xC585B56DL}};/* VOLATILE GLOBAL g_2392 */
/* --- FORWARD DECLARATIONS --- */
static struct S4 func_1(void);
static struct S6 func_2(const uint16_t p_3, uint32_t p_4, uint8_t p_5);
static int16_t func_12(uint32_t * p_13, uint32_t p_14, int32_t p_15, uint32_t * p_16);
static uint32_t * func_17(const int16_t p_18, const uint64_t p_19, uint8_t p_20);
static int16_t func_21(uint32_t p_22, uint32_t * p_23, uint16_t p_24);
static uint16_t func_43(uint16_t p_44, uint32_t p_45, uint8_t p_46);
static int8_t func_56(uint32_t p_57, int32_t * p_58, const int16_t p_59, uint16_t * p_60, int32_t p_61);
static int32_t * func_65(uint16_t p_66, uint16_t * p_67, int32_t * p_68, int8_t p_69);
static struct S6 func_72(int32_t p_73, uint32_t p_74, const uint32_t * p_75);
static uint16_t * func_79(uint64_t p_80, int16_t p_81, uint16_t * p_82, uint64_t p_83);
/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/*
* reads : g_9 g_6 g_26 g_39 g_292.f3 g_269 g_869 g_903.f3 g_576.f1.f3 g_1575.f0.f4 g_1780.f2 g_2093 g_456 g_457 g_185.f5.f1 g_1551.f1 g_576.f1.f4 g_1781.f2 g_445 g_264 g_40 g_1781.f5 g_1318 g_270 g_458 g_459 g_2111 g_188.f0.f2 g_1721.f5.f0 g_165.f1 g_1431 g_2115 g_2123 g_2130 g_1036.f1 g_185.f1 g_1844 g_310 g_1721.f5.f1.f3 g_2139 g_2140 g_2145 g_1780.f5 g_849.f1 g_2144 g_289 g_290 g_2175 g_1575 g_1165 g_891 g_2197 g_185.f0.f1 g_2214 g_751 g_752 g_2215 g_829 g_830 g_2216 g_2222 g_2034.f0 g_1439.f4 g_2228 g_1783.f2 g_1842 g_1843 g_750 g_2157.f3 g_827 g_1784.f2 g_1468 g_2283 g_185.f5.f2 g_1561.f5 g_88.f1 g_1666.f1 g_2157.f0.f5 g_2290 g_2291 g_2292 g_2303 g_1139.f4 g_267.f0.f1 g_2317 g_2293 g_2164 g_626 g_2157.f5.f1.f4 g_291.f5 g_2331 g_788 g_789 g_790 g_1782.f2 g_2333 g_1010 g_1045.f2 g_2365 g_904 g_2368 g_2300 g_1738.f4 g_2383 g_312 g_2389 g_2390 g_2392
* writes: g_9 g_28 g_38 g_270 g_1780.f2 g_1575.f0.f2 g_1666.f2 g_626 g_446 g_890.f0.f1 g_188.f0.f2 g_1781.f5 g_869 g_459 g_40 g_165.f1 g_836.f1 g_928 g_2114 g_316 g_185.f1 g_1780.f5 g_185.f0.f1 g_267.f0.f1 g_208 g_2144 g_1318 g_296 g_295 g_294 g_293 g_292 g_291 g_2176 g_1785 g_1468 g_788 g_1784.f2 g_804 g_276 g_310 g_1139.f1 g_2316 g_1844 g_2321 g_1782.f2 g_930 g_6 g_2300 g_142.f0.f0 g_2317 g_905 g_290 g_312 g_2391
*/
static struct S4 func_1(void)
{ /* block id: 0 */
uint32_t *l_7 = (void*)0;
uint32_t *l_8 = &g_9;
int32_t l_25 = 0x0FC24489L;
int8_t l_35[3][1];
int64_t l_36 = 6L;
uint16_t *l_37[8];
uint16_t l_41 = 0x95B9L;
uint16_t l_2087[6][8][5] = {{{65533UL,0x1F1BL,1UL,1UL,65535UL},{1UL,8UL,0x7865L,65535UL,0UL},{65529UL,65535UL,1UL,0xBA1FL,1UL},{65535UL,65530UL,65535UL,0x6FF9L,65535UL},{65529UL,65533UL,65535UL,5UL,1UL},{1UL,0xC00FL,0x6D7DL,0UL,0x229DL},{65533UL,0x0FC7L,0x0FC7L,65533UL,0x0255L},{0UL,0UL,1UL,0UL,65535UL}},{{1UL,1UL,1UL,6UL,65535UL},{0xA381L,0x4EA3L,0x9AF9L,0UL,0UL},{65535UL,1UL,0x1259L,65533UL,0x1F1BL},{0UL,65530UL,0x7CBAL,0UL,0x7CBAL},{0x0255L,1UL,6UL,5UL,1UL},{0xAE53L,9UL,0x9AF9L,0x6FF9L,1UL},{65533UL,5UL,1UL,0xBA1FL,65535UL},{0x7CBAL,9UL,1UL,65535UL,65535UL}},{{1UL,1UL,1UL,1UL,65535UL},{65528UL,65530UL,0x6D7DL,65530UL,65528UL},{65529UL,1UL,0x23CCL,0x1F1BL,1UL},{0x7CBAL,0x4EA3L,65535UL,0UL,0x10F0L},{0UL,1UL,0x0FC7L,1UL,1UL},{0xAE53L,0UL,0x7865L,0xA63CL,65528UL},{1UL,0x0FC7L,1UL,1UL,65535UL},{0UL,0xC00FL,0UL,0UL,65535UL}},{{0x1F1BL,65533UL,0x1259L,1UL,65535UL},{0xA381L,65530UL,65529UL,9UL,1UL},{0x0255L,65535UL,0x1259L,0x1F1BL,1UL},{0UL,8UL,0UL,0x6FF9L,0x7CBAL},{0UL,0x1F1BL,1UL,1UL,0x1F1BL},{1UL,9UL,0x7865L,0UL,0UL},{1UL,65535UL,0x0FC7L,0xBA1FL,65535UL},{65535UL,0x6FF9L,65535UL,65530UL,65535UL}},{{1UL,65533UL,0x23CCL,1UL,1UL},{0x229DL,0x5CEEL,65529UL,0UL,0xAE53L},{65529UL,5UL,0xC574L,1UL,1UL},{0UL,0UL,65535UL,0UL,1UL},{1UL,0x1F1BL,6UL,65535UL,1UL},{65528UL,9UL,1UL,0UL,1UL},{0xBA1FL,0x0FC7L,65535UL,1UL,0x198EL},{65535UL,9UL,0x10F0L,0UL,0x10F0L}},{{1UL,1UL,0x23CCL,1UL,0UL},{0xA381L,9UL,1UL,8UL,0x229DL},{65529UL,1UL,0x1259L,1UL,0xBA1FL},{0x10F0L,9UL,65535UL,0xC00FL,0x7CBAL},{65535UL,1UL,5UL,6UL,1UL},{65535UL,9UL,65529UL,9UL,65535UL},{0x1F1BL,0x0FC7L,5UL,0xBA1FL,1UL},{0x10F0L,9UL,0x7CBAL,0UL,0UL}}};
uint32_t *l_2088 = &g_869;
int i, j, k;
for (i = 0; i < 3; i++)
{
for (j = 0; j < 1; j++)
l_35[i][j] = 5L;
}
for (i = 0; i < 8; i++)
l_37[i] = &g_38;
g_2391 = func_2((((*l_8)--) , (func_12(func_17(func_21(l_25, &g_9, g_6[6][2]), ((((g_38 = (g_6[6][2] <= (safe_add_func_int64_t_s_s((g_6[4][2] > (((safe_div_func_uint8_t_u_u((safe_rshift_func_int16_t_s_s((g_9 <= l_35[2][0]), 0)), ((l_35[1][0] > l_36) && g_6[6][2]))) , g_6[6][2]) <= l_25)), l_36)))) , (void*)0) != g_39) <= l_36), l_41), g_292.f3, l_2087[5][1][2], l_2088) , 0UL)), g_576.f1.f3, g_1575.f0.f4);
return g_2392;
}
/* ------------------------------------------ */
/*
* reads : g_1780.f2 g_2093 g_456 g_457 g_185.f5.f1 g_1551.f1 g_576.f1.f4 g_1781.f2 g_445 g_264 g_39 g_40 g_1781.f5 g_1318 g_270 g_869 g_269 g_458 g_459 g_2111 g_188.f0.f2 g_1721.f5.f0 g_165.f1 g_1431 g_2115 g_2123 g_2130 g_1036.f1 g_185.f1 g_1844 g_310 g_1721.f5.f1.f3 g_2139 g_2140 g_2145 g_1780.f5 g_6 g_849.f1 g_2144 g_289 g_290 g_2175 g_1575 g_1165 g_891 g_2197 g_185.f0.f1 g_2214 g_751 g_752 g_2215 g_829 g_830 g_2216 g_2222 g_2034.f0 g_1439.f4 g_2228 g_1783.f2 g_1842 g_1843 g_750 g_2157.f3 g_827 g_1784.f2 g_1468 g_2283 g_185.f5.f2 g_1561.f5 g_88.f1 g_1666.f1 g_2157.f0.f5 g_2290 g_2291 g_2292 g_2303 g_1139.f4 g_267.f0.f1 g_2317 g_2293 g_2164 g_626 g_2157.f5.f1.f4 g_291.f5 g_2331 g_788 g_789 g_790 g_1782.f2 g_2333 g_1010 g_1045.f2 g_2365 g_904 g_2368 g_2300 g_1738.f4 g_2383 g_312 g_2389 g_2390
* writes: g_1780.f2 g_1575.f0.f2 g_1666.f2 g_626 g_446 g_890.f0.f1 g_188.f0.f2 g_1781.f5 g_869 g_459 g_40 g_165.f1 g_836.f1 g_928 g_2114 g_316 g_185.f1 g_1780.f5 g_185.f0.f1 g_267.f0.f1 g_208 g_2144 g_1318 g_296 g_295 g_294 g_293 g_292 g_291 g_2176 g_1785 g_1468 g_788 g_1784.f2 g_804 g_276 g_310 g_1139.f1 g_2316 g_1844 g_2321 g_1782.f2 g_930 g_6 g_2300 g_142.f0.f0 g_2317 g_905 g_290 g_312
*/
static struct S6 func_2(const uint16_t p_3, uint32_t p_4, uint8_t p_5)
{ /* block id: 1028 */
struct S5 *l_2090[1];
int32_t l_2094 = 1L;
int32_t l_2165 = 0L;
int32_t l_2166 = 0xE6C4949FL;
int32_t l_2167 = 1L;
int32_t l_2168 = (-5L);
int32_t l_2171 = 0x93945F7EL;
struct S0 *l_2186 = (void*)0;
int8_t **l_2189[7][1][5];
int32_t l_2198 = 1L;
const uint32_t *l_2238 = &g_1410;
const uint32_t *l_2315[1];
struct S2 *l_2349 = &g_828.f0;
uint32_t l_2364 = 18446744073709551615UL;
struct S2 ***l_2374 = &g_929[5][4][0];
int i, j, k;
for (i = 0; i < 1; i++)
l_2090[i] = &g_890;
for (i = 0; i < 7; i++)
{
for (j = 0; j < 1; j++)
{
for (k = 0; k < 5; k++)
l_2189[i][j][k] = &g_1844;
}
}
for (i = 0; i < 1; i++)
l_2315[i] = &g_869;
l_2090[0] = l_2090[0];
for (g_1780.f2 = 0; (g_1780.f2 <= 2); g_1780.f2 += 1)
{ /* block id: 1032 */
int16_t *l_2095 = (void*)0;
int32_t l_2101 = 0xB882B7F1L;
uint32_t *l_2102 = &g_1575.f0.f2;
uint32_t *l_2103 = (void*)0;
uint32_t *l_2104[10][3] = {{&g_1139.f0.f2,&g_1139.f0.f2,&g_890.f0.f2},{&g_165.f2,&g_188.f3,&g_165.f2},{&g_1139.f0.f2,&g_890.f0.f2,&g_890.f0.f2},{&g_1666.f2,&g_188.f3,&g_1666.f2},{&g_1139.f0.f2,&g_1139.f0.f2,&g_890.f0.f2},{&g_165.f2,&g_188.f3,&g_165.f2},{&g_1139.f0.f2,&g_890.f0.f2,&g_890.f0.f2},{&g_1666.f2,&g_188.f3,&g_1666.f2},{&g_1139.f0.f2,&g_1139.f0.f2,&g_890.f0.f2},{&g_165.f2,&g_188.f3,&g_165.f2}};
uint8_t *l_2105 = &g_626;
int16_t *l_2106 = (void*)0;
int16_t *l_2107[4][9];
struct S4 *l_2134 = (void*)0;
int32_t l_2170[8] = {(-1L),(-1L),(-1L),(-1L),(-1L),(-1L),(-1L),(-1L)};
uint8_t l_2185 = 0x9EL;
uint8_t l_2223 = 2UL;
int64_t l_2224 = 0x2CA0061E2E1E1BC7LL;
int16_t * const l_2297 = (void*)0;
int16_t * const *l_2296 = &l_2297;
int16_t * const l_2299 = &g_2300;
int16_t * const *l_2298 = &l_2299;
int8_t *l_2320[3];
int32_t l_2328[2];
uint64_t l_2329 = 0x8FB4CFB21B00D12DLL;
int32_t l_2330 = 0x9BE01735L;
struct S3 ****l_2341 = (void*)0;
struct S3 ****l_2342 = &g_788;
struct S2 *l_2346[8][8][4] = {{{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]}},{{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]}},{{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]}},{{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]}},{{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]}},{{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]}},{{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]}},{{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]},{&g_1909[1],&g_1909[1],&g_1909[1],&g_1909[1]}}};
const struct S2 *l_2377 = &g_2378;
const struct S2 **l_2376 = &l_2377;
const struct S2 ***l_2375 = &l_2376;
int i, j, k;
for (i = 0; i < 4; i++)
{
for (j = 0; j < 9; j++)
l_2107[i][j] = &g_449;
}
for (i = 0; i < 3; i++)
l_2320[i] = &g_312;
for (i = 0; i < 2; i++)
l_2328[i] = 0x00257EC4L;
(*g_445) = func_17((l_2101 = ((l_2094 = (safe_mul_func_uint8_t_u_u(g_2093, (((0x1A492556L <= l_2094) != (((**g_456) , p_5) <= l_2094)) >= ((*l_2105) = (((l_2095 == (void*)0) , (((g_1666.f2 = (p_4 = ((*l_2102) = (safe_add_func_int64_t_s_s((((safe_lshift_func_uint16_t_u_s(((safe_unary_minus_func_uint64_t_u(0x4C0F595309A3D825LL)) || (-1L)), g_1551.f1)) == l_2094) < g_576.f1.f4), l_2101))))) == l_2101) == l_2101)) != p_3)))))) < g_1781.f2)), p_5, p_3);
if ((**g_264))
continue;
if (p_5)
{ /* block id: 1041 */
int16_t l_2127 = 0x3E00L;
int32_t *l_2131[9] = {&g_2093,&g_2093,&g_2093,&g_2093,&g_2093,&g_2093,&g_2093,&g_2093,&g_2093};
struct S0 ***** const l_2136 = &g_774;
struct S0 *****l_2137[2][10] = {{&g_774,&g_774,&g_774,&g_774,&g_774,&g_774,&g_774,&g_774,&g_774,&g_774},{&g_774,&g_774,&g_774,&g_774,&g_774,&g_774,&g_774,&g_774,&g_774,&g_774}};
int i, j;
for (g_890.f0.f1 = 2; (g_890.f0.f1 >= 0); g_890.f0.f1 -= 1)
{ /* block id: 1044 */
const uint32_t *l_2112 = &g_540;
struct S4 **l_2135[5];
uint16_t *l_2138 = &g_185.f1;
int i;
for (i = 0; i < 5; i++)
l_2135[i] = &l_2134;
if (p_5)
break;
for (g_188.f0.f2 = 0; (g_188.f0.f2 <= 2); g_188.f0.f2 += 1)
{ /* block id: 1048 */
struct S4 ***l_2110 = &g_760;
int32_t l_2126 = (-2L);
for (g_1781.f5 = 2; (g_1781.f5 >= 0); g_1781.f5 -= 1)
{ /* block id: 1051 */
struct S0 **l_2109 = &g_459;
int i;
(*g_270) ^= g_1318[g_1781.f5];
(*g_270) &= p_3;
if ((**g_269))
break;
(*l_2109) = (*g_458);
}
if ((l_2110 != (g_2111 , l_2110)))
{ /* block id: 1057 */
const uint32_t **l_2113 = &l_2112;
int i;
(*g_39) &= (g_1318[(g_188.f0.f2 + 3)] | 65528UL);
g_2114 = func_72(((*g_270) = p_3), g_1721.f5.f0, ((*l_2113) = l_2112));
l_2126 = ((*g_39) = ((((((g_2115 == &g_2116) > ((((safe_lshift_func_int16_t_s_u((safe_rshift_func_uint8_t_u_u((safe_add_func_int16_t_s_s(1L, g_2123)), 0)), 9)) , (safe_mul_func_uint16_t_u_u(p_3, p_3))) <= p_4) == l_2094)) && 0x93L) && p_5) , l_2126) ^ l_2101));
}
else
{ /* block id: 1064 */
(*g_270) ^= l_2127;
(*g_445) = (void*)0;
}
}
(*g_270) = (safe_mod_func_int32_t_s_s((((*g_39) = l_2101) ^ (((g_2130 , ((*g_269) != l_2131[4])) != (safe_rshift_func_int8_t_s_s((((*l_2138) ^= (((g_316 = l_2134) != (((1L < (l_2136 != ((65535UL != (g_1036.f1 , 0L)) , l_2137[0][3]))) <= p_4) , (void*)0)) , 65535UL)) ^ p_4), (*g_1844)))) != g_1721.f5.f1.f3)), p_5));
}
l_2101 = (g_2139 , ((*g_270) = p_4));
}
else
{ /* block id: 1076 */
return g_2140;
}
for (g_1780.f5 = 0; (g_1780.f5 <= 2); g_1780.f5 += 1)
{ /* block id: 1081 */
uint8_t l_2159 = 0x79L;
int32_t l_2160[10] = {0x7638FF43L,0x7638FF43L,0x7638FF43L,0x7638FF43L,0x7638FF43L,0x7638FF43L,0x7638FF43L,0x7638FF43L,0x7638FF43L,0x7638FF43L};
uint64_t l_2256[3];
int16_t * const *l_2294 = &l_2095;
uint16_t *l_2327[10];
int32_t *l_2340[6][1][3] = {{{&g_1666.f1,&g_1784.f1,&g_1784.f1}},{{&g_1666.f1,&g_1784.f1,&g_1784.f1}},{{&g_1666.f1,&g_1784.f1,&g_1784.f1}},{{&g_1666.f1,&g_1784.f1,&g_1784.f1}},{{&g_1666.f1,&g_1784.f1,&g_1784.f1}},{{&g_1666.f1,&g_1784.f1,&g_1784.f1}}};
struct S3 *l_2363 = &g_2056;
int i, j, k;
for (i = 0; i < 3; i++)
l_2256[i] = 18446744073709551609UL;
for (i = 0; i < 10; i++)
l_2327[i] = &g_1139.f1;
for (g_185.f0.f1 = 2; (g_185.f0.f1 <= 6); g_185.f0.f1 += 1)
{ /* block id: 1084 */
struct S5 *l_2154 = &g_1575;
struct S0 *l_2188 = (void*)0;
int32_t l_2225 = 1L;
int i, j, k;
for (g_267.f0.f1 = 0; (g_267.f0.f1 <= 2); g_267.f0.f1 += 1)
{ /* block id: 1087 */
uint16_t * const l_2143 = &g_2144;
uint16_t * const *l_2142[9][7][4] = {{{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143}},{{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143}},{{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143}},{{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143}},{{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143}},{{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143}},{{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143}},{{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143}},{{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143},{&l_2143,&l_2143,&l_2143,&l_2143}}};
uint16_t * const **l_2141 = &l_2142[6][3][3];
struct S5 **l_2155[9];
struct S5 *l_2156[2];
int64_t *l_2158 = &g_208;
int32_t l_2163 = 0x536E219EL;
int32_t l_2169 = (-6L);
uint32_t l_2172 = 1UL;
struct S6 ***l_2196 = (void*)0;
struct S6 ****l_2195 = &l_2196;
int i, j, k;
for (i = 0; i < 9; i++)
l_2155[i] = &l_2090[0];
for (i = 0; i < 2; i++)
l_2156[i] = &g_2157;
if (((((*l_2141) = &g_718[8][0][1]) != (g_2145 , ((safe_mul_func_uint8_t_u_u(((g_6[(g_1780.f5 + 4)][g_1780.f5] ^ (p_4 >= (safe_add_func_uint32_t_u_u(((((*g_39) = (-1L)) <= (((*l_2143) |= (p_4 >= (safe_sub_func_int16_t_s_s((safe_lshift_func_uint8_t_u_s((((l_2160[9] = (l_2101 >= (((*l_2158) = ((l_2154 != (l_2156[1] = l_2090[0])) != 2UL)) && l_2159))) , p_3) & 0xCA7DBC8BL), 1)), g_849.f1)))) || l_2094)) != l_2159), l_2094)))) != p_4), l_2094)) , (void*)0))) , 0x5F514FC6L))
{ /* block id: 1094 */
const uint32_t *l_2161 = &g_1410;
int32_t *l_2162[7];
int i;
for (i = 0; i < 7; i++)
l_2162[i] = &g_28;
g_1318[(g_1780.f5 + 6)] = p_4;
(**g_289) = func_72(p_5, p_3, l_2161);
l_2172++;
g_2176 = g_2175;
}
else
{ /* block id: 1099 */
struct S0 **l_2187[7] = {&g_1785,&g_1785,&g_1785,&g_1785,&g_1785,&g_1785,&g_1785};
uint64_t *l_2190 = &g_1468;
int i;
(*g_270) |= (**g_264);
(*g_270) |= ((safe_mul_func_int8_t_s_s((safe_sub_func_int32_t_s_s(((safe_lshift_func_uint8_t_u_s(l_2185, (((*l_2154) , ((*g_458) = l_2186)) == (g_1785 = l_2188)))) || ((((*l_2190) = ((void*)0 == l_2189[6][0][0])) | (safe_mul_func_uint16_t_u_u((0x1D7ACA13L & (safe_lshift_func_uint16_t_u_u(((*g_1165) == l_2195), p_3))), g_2197))) && p_3)), p_5)), l_2198)) && 0UL);
}
}
(*g_445) = &l_2167;
l_2225 ^= ((safe_add_func_uint64_t_u_u((safe_add_func_uint32_t_u_u((safe_add_func_uint8_t_u_u(g_6[g_185.f0.f1][g_1780.f5], ((safe_rshift_func_uint16_t_u_s(p_5, p_4)) != ((((*g_39) = (!(safe_rshift_func_int8_t_s_u((safe_mod_func_uint64_t_u_u(((safe_mul_func_uint8_t_u_u((((g_2214[0] , (((*g_751) , (g_2215 , (((*g_829) , g_2216) , (safe_mul_func_uint16_t_u_u((!((safe_sub_func_int64_t_s_s((g_2222 , 0x9FB421CF99DB0DCCLL), 0x761BA64496017932LL)) >= g_2034.f0)), p_4))))) <= p_3)) || l_2101) & l_2094), l_2223)) , 0UL), g_1439.f4)), 3)))) < p_3) , 0xDCCEL)))), l_2224)), 0xFF20E808E4DAEF12LL)) && 249UL);
}
if ((safe_div_func_int16_t_s_s((g_2228 , l_2198), l_2224)))
{ /* block id: 1111 */
struct S3 ****l_2229 = (void*)0;
struct S3 ****l_2230 = &g_788;
struct S3 ***l_2233 = &g_789;
int32_t l_2239[6][6] = {{0xC6EF0018L,0xAB6BA350L,1L,0xA19F92D8L,0xAB6BA350L,0xA19F92D8L},{0xC6EF0018L,(-8L),0xC6EF0018L,0xA19F92D8L,(-8L),1L},{0xC6EF0018L,0xE57EE259L,0xA19F92D8L,0xA19F92D8L,0xE57EE259L,0xC6EF0018L},{0xC6EF0018L,0xAB6BA350L,1L,0xA19F92D8L,0xAB6BA350L,0xA19F92D8L},{0xC6EF0018L,(-8L),0xC6EF0018L,0xA19F92D8L,(-8L),1L},{0xC6EF0018L,0xE57EE259L,0xA19F92D8L,0xA19F92D8L,0xE57EE259L,0xC6EF0018L}};
int16_t * const **l_2295[3][6][6] = {{{&l_2294,&l_2294,&l_2294,&l_2294,(void*)0,(void*)0},{&l_2294,&l_2294,&l_2294,&l_2294,&l_2294,&l_2294},{&l_2294,&l_2294,&l_2294,&l_2294,&l_2294,(void*)0},{&l_2294,&l_2294,&l_2294,&l_2294,&l_2294,&l_2294},{&l_2294,(void*)0,(void*)0,&l_2294,&l_2294,&l_2294},{&l_2294,&l_2294,&l_2294,&l_2294,&l_2294,&l_2294}},{{(void*)0,&l_2294,&l_2294,&l_2294,&l_2294,(void*)0},{&l_2294,&l_2294,&l_2294,(void*)0,&l_2294,&l_2294},{(void*)0,(void*)0,&l_2294,&l_2294,&l_2294,&l_2294},{&l_2294,&l_2294,&l_2294,(void*)0,(void*)0,&l_2294},{&l_2294,&l_2294,&l_2294,(void*)0,&l_2294,&l_2294},{(void*)0,&l_2294,&l_2294,(void*)0,&l_2294,&l_2294}},{{&l_2294,&l_2294,&l_2294,(void*)0,(void*)0,&l_2294},{&l_2294,&l_2294,(void*)0,&l_2294,&l_2294,&l_2294},{&l_2294,&l_2294,&l_2294,&l_2294,&l_2294,(void*)0},{&l_2294,&l_2294,&l_2294,&l_2294,&l_2294,&l_2294},{&l_2294,&l_2294,(void*)0,&l_2294,&l_2294,&l_2294},{&l_2294,&l_2294,&l_2294,&l_2294,&l_2294,&l_2294}}};
int16_t * const *l_2301 = (void*)0;
int i, j, k;
(*g_39) = ((((*l_2230) = &g_789) != ((4L < (safe_add_func_int16_t_s_s(g_1783.f2, p_3))) , l_2233)) >= (l_2239[5][0] = ((***g_1842) | (safe_mul_func_uint8_t_u_u((l_2170[1] &= (((l_2165 &= ((((func_72((p_3 && (safe_mod_func_uint64_t_u_u((p_4 < (**g_750)), g_2140.f4))), g_2157.f3, l_2238) , (void*)0) == g_827[5]) <= 0xB9B1L) ^ 0L)) , p_4) , 0x17L)), p_5)))));
if (l_2094)
break;
for (g_1784.f2 = 0; (g_1784.f2 <= 1); g_1784.f2 += 1)
{ /* block id: 1120 */
int16_t l_2255 = (-10L);
int32_t l_2286 = 0x51E414F8L;
struct S3 *l_2289 = (void*)0;
for (p_5 = 0; (p_5 <= 2); p_5 += 1)
{ /* block id: 1123 */
int32_t *l_2240 = &g_1783.f1;
int32_t *l_2241 = &g_1780.f1;
int32_t *l_2242 = (void*)0;
int32_t *l_2243 = (void*)0;
int32_t *l_2244 = (void*)0;
int32_t *l_2245 = (void*)0;
int32_t *l_2246 = &l_2239[5][0];
int32_t l_2247 = 0L;
int32_t l_2248 = 0x4C086913L;
int32_t *l_2249 = &l_2239[5][4];
int32_t *l_2250 = (void*)0;
int32_t *l_2251 = &g_1784.f1;
int32_t *l_2252 = &l_2160[9];
int32_t *l_2253 = &l_2166;
int32_t *l_2254[6] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
int i;
(*g_39) = (**g_269);
(*g_39) ^= l_2239[2][3];
--l_2256[0];
}
if (p_5)
break;
if (p_4)
{ /* block id: 1129 */
struct S1 ****l_2267 = (void*)0;
struct S1 ****l_2268 = &g_804;
uint64_t *l_2277[6][5][1] = {{{&g_1468},{(void*)0},{&g_1468},{&g_1468},{&g_1468}},{{&g_1468},{(void*)0},{&g_1468},{&l_2256[0]},{&g_1468}},{{&l_2256[0]},{&g_1468},{(void*)0},{&g_1468},{&g_1468}},{{&g_1468},{&g_1468},{(void*)0},{&g_1468},{&l_2256[0]}},{{&g_1468},{&l_2256[0]},{&g_1468},{(void*)0},{&g_1468}},{{&g_1468},{&g_1468},{&g_1468},{(void*)0},{&g_1468}}};
int64_t *l_2287 = &g_276;
int64_t *l_2288 = &l_2224;
int i, j, k;
(*g_270) ^= (*g_39);
(*g_270) = (safe_unary_minus_func_uint64_t_u((safe_mul_func_int8_t_s_s((safe_div_func_uint8_t_u_u((((!(safe_div_func_int8_t_s_s((((*l_2268) = (void*)0) != (void*)0), 0xDBL))) | (p_5 <= (safe_mul_func_int16_t_s_s(((safe_lshift_func_int8_t_s_u((safe_add_func_uint8_t_u_u((safe_rshift_func_uint8_t_u_s(((++g_1468) , p_3), 1)), l_2101)), 4)) & (~((safe_div_func_int8_t_s_s(((**g_1843) = ((g_2283 , (((((*l_2288) ^= ((*l_2287) = (safe_add_func_uint64_t_u_u((l_2286 = 0x91CCB83393A02F16LL), p_5)))) & g_185.f5.f2) <= g_1561.f5) | l_2256[0])) <= 0x85L)), l_2239[5][0])) >= g_88.f1))), p_3)))) < p_5), g_1666.f1)), g_2157.f0.f5))));
l_2289 = (void*)0;
return g_2290;
}
else
{ /* block id: 1140 */
return g_2291;
}
}
(*g_39) ^= (g_2292 == (l_2301 = (l_2298 = (l_2296 = l_2294))));
}
else
{ /* block id: 1148 */
uint32_t l_2302[1];
uint16_t *l_2305 = &g_1139.f1;
int i;
for (i = 0; i < 1; i++)
l_2302[i] = 0xAB55B0BAL;
g_2316 = func_72(l_2302[0], ((((*l_2305) = (g_2303 , (~(*g_751)))) | p_4) & ((safe_rshift_func_int16_t_s_s((((safe_rshift_func_uint16_t_u_s((~(safe_mul_func_int8_t_s_s(p_4, (((l_2302[0] & (safe_sub_func_uint32_t_u_u(1UL, ((l_2302[0] == 8L) || 0xEB02L)))) , 0x51397EB43B871F7CLL) ^ g_1139.f4)))), 12)) == g_1575.f1) == 0x88A3L), l_2166)) , l_2198)), l_2315[0]);
for (g_267.f0.f1 = 0; (g_267.f0.f1 <= 2); g_267.f0.f1 += 1)
{ /* block id: 1153 */
return g_2317[0];
}
if (l_2302[0])
break;
}
if ((l_2330 |= (((((l_2328[0] |= (((**g_2292) == (((++(*l_2105)) != (((*g_1843) = (**g_1842)) == (g_2321 = (l_2320[1] = l_2105)))) || ((~(((0xB2L & l_2101) | ((safe_div_func_uint64_t_u_u(0UL, (safe_div_func_uint32_t_u_u(((void*)0 != l_2103), l_2166)))) || (*g_270))) ^ l_2170[3])) == g_2157.f5.f1.f4))) , l_2198)) > g_291.f5) != 9UL) == l_2185) ^ l_2329)))
{ /* block id: 1164 */
struct S3 *l_2332 = (void*)0;
int32_t l_2338[1];
uint32_t **l_2362 = &l_2104[9][2];
struct S0 **l_2369 = &g_1785;
struct S6 *l_2380[8] = {&g_2381[1][0],&g_2381[1][0],&g_2381[1][0],&g_2381[1][0],&g_2381[1][0],&g_2381[1][0],&g_2381[1][0],&g_2381[1][0]};
int i, j;
for (i = 0; i < 1; i++)
l_2338[i] = 0L;
if (((g_2331 , l_2332) == (**g_788)))
{ /* block id: 1165 */
int8_t l_2334 = 0xDDL;
for (g_1782.f2 = 0; (g_1782.f2 <= 2); g_1782.f2 += 1)
{ /* block id: 1168 */
uint32_t l_2339 = 1UL;
(**g_289) = g_2333;
l_2340[0][0][1] = &l_2338[0];
}
l_2342 = l_2341;
}
else
{ /* block id: 1175 */
uint32_t l_2343 = 1UL;
l_2343++;
(*g_1010) = l_2346[4][0][1];
}
if ((4294967286UL == (((0x433BL && ((void*)0 == l_2349)) || (safe_rshift_func_int8_t_s_u((safe_sub_func_int32_t_s_s((safe_sub_func_int16_t_s_s((((safe_mul_func_uint16_t_u_u(((safe_sub_func_int64_t_s_s(((l_2364 = (safe_rshift_func_int16_t_s_s((l_2103 == ((*l_2362) = &p_4)), ((*l_2299) = (g_6[g_1780.f5][g_1780.f5] |= ((void*)0 == l_2363)))))) == 0xAB6F0A05L), l_2338[0])) <= l_2330), (*g_2293))) & l_2171) && l_2168), p_4)), 0xD4331722L)), p_4))) , g_1045[5][1][3].f2)))
{ /* block id: 1183 */
const struct S2 ****l_2379 = &l_2375;
for (g_142.f0.f0 = 0; g_142.f0.f0 < 8; g_142.f0.f0 += 1)
{
struct S6 tmp = {3,-1049,3504,512,0,24082};
g_2317[g_142.f0.f0] = tmp;
}
(*g_904) = g_2365;
(*g_39) = (safe_sub_func_uint64_t_u_u((g_2368 , ((void*)0 != l_2369)), (249UL != (((0x05L == ((safe_div_func_int16_t_s_s(((safe_mul_func_int16_t_s_s((g_2300 ^= ((((*g_289) = (*g_289)) == ((l_2374 != ((*l_2379) = l_2375)) , l_2380[3])) <= p_3)), (-1L))) >= p_5), p_3)) != (*g_270))) > g_1738.f4) & (-5L)))));
}
else
{ /* block id: 1190 */
return g_2383;
}
}
else
{ /* block id: 1193 */
int8_t l_2388[9][4] = {{(-6L),(-6L),(-6L),(-6L)},{(-6L),(-6L),(-6L),(-6L)},{(-6L),(-6L),(-6L),(-6L)},{(-6L),(-6L),(-6L),(-6L)},{(-6L),(-6L),(-6L),(-6L)},{(-6L),(-6L),(-6L),(-6L)},{(-6L),(-6L),(-6L),(-6L)},{(-6L),(-6L),(-6L),(-6L)},{(-6L),(-6L),(-6L),(-6L)}};
int i, j;
for (l_2198 = 2; (l_2198 >= 0); l_2198 -= 1)
{ /* block id: 1196 */
int32_t *l_2387 = &g_2078.f0.f1;
for (g_312 = 0; (g_312 <= 2); g_312 += 1)
{ /* block id: 1199 */
uint64_t l_2384 = 0x55972163DC83A24BLL;
l_2384++;
}
l_2387 = func_17((**g_2292), p_4, l_2167);
if ((*g_39))
break;
if (l_2388[7][2])
continue;
}
}
return g_2389[5];
}
}
return g_2390;
}
/* ------------------------------------------ */
/*
* reads : g_269 g_869 g_903.f3
* writes: g_270
*/
static int16_t func_12(uint32_t * p_13, uint32_t p_14, int32_t p_15, uint32_t * p_16)
{ /* block id: 1024 */
struct S6 *l_2089 = &g_1045[4][8][2];
(*g_269) = p_16;
l_2089 = ((*p_16) , l_2089);
return g_903.f3;
}
/* ------------------------------------------ */
/*
* reads :
* writes:
*/
static uint32_t * func_17(const int16_t p_18, const uint64_t p_19, uint8_t p_20)
{ /* block id: 6 */
const int32_t l_47 = 0xF9BD85DDL;
int32_t *l_55 = &g_40;
uint32_t *l_62 = &g_9;
uint16_t *l_70 = &g_38;
int8_t l_1432 = 1L;
int32_t * const l_1433[2] = {(void*)0,(void*)0};
uint8_t l_1434 = 0xF3L;
int16_t *l_1435 = (void*)0;
int16_t *l_1436 = &g_1288;
struct S2 *l_1469 = (void*)0;
struct S2 *l_1470 = &g_1471;
int8_t l_1478 = 1L;
uint16_t l_1479 = 1UL;
struct S0 **l_1557 = &g_459;
struct S3 ****l_1621 = &g_788;
struct S1 * const l_1675 = &g_1617[4][3][2];
struct S5 * const l_1718 = &g_1139;
struct S1 **l_1735 = (void*)0;
int64_t l_1736 = 0L;
uint16_t l_1859 = 0xFD34L;
int16_t l_1958 = 0x3CF4L;
struct S7 **l_2024 = &g_827[6];
volatile uint64_t **l_2084 = &g_751;
uint32_t *l_2086 = (void*)0;
int i;
return l_2086;
}
/* ------------------------------------------ */
/*
* reads : g_26
* writes: g_28
*/
static int16_t func_21(uint32_t p_22, uint32_t * p_23, uint16_t p_24)
{ /* block id: 2 */
int32_t *l_27 = &g_28;
(*l_27) = (g_26 , ((void*)0 != &g_9));
return p_22;
}
/* ------------------------------------------ */
/*
* reads : g_1439 g_185.f4 g_188.f1 g_188.f3 g_650 g_750 g_751 g_752 g_1197.f5 g_185.f1 g_890.f0.f1
* writes: g_185.f4 g_188.f1 g_6 g_650 g_890.f0.f1
*/
static uint16_t func_43(uint16_t p_44, uint32_t p_45, uint8_t p_46)
{ /* block id: 635 */
uint8_t *l_1441 = &g_185.f4;
int32_t l_1446 = 0xEE338162L;
struct S2 *l_1457 = &g_1458;
uint16_t *l_1459 = &g_188.f1;
int16_t *l_1460 = &g_6[5][0];
int32_t *l_1461 = &g_890.f0.f1;
(*l_1461) |= ((p_44 ^ (((safe_sub_func_uint16_t_u_u((g_1439 , p_46), (~((p_45 == (((++(*l_1441)) || (++(*l_1441))) > l_1446)) > (g_650 ^= (((*l_1460) = ((((safe_mod_func_uint16_t_u_u(((&g_743 == (((l_1446 != ((safe_add_func_uint16_t_u_u((safe_div_func_uint16_t_u_u(p_46, ((safe_sub_func_uint32_t_u_u((((*l_1459) |= ((safe_mod_func_int64_t_s_s((l_1457 != (void*)0), 9L)) <= p_44)) ^ p_45), p_45)) || p_45))), g_188.f3)) , p_44)) , 0x967A64F35CF12D31LL) , (void*)0)) , 6UL), 65534UL)) | p_44) < 1UL) >= (-4L))) || p_44)))))) || (**g_750)) & g_1197.f5)) && g_185.f1);
return p_44;
}
/* ------------------------------------------ */
/*
* reads :
* writes:
*/
static int8_t func_56(uint32_t p_57, int32_t * p_58, const int16_t p_59, uint16_t * p_60, int32_t p_61)
{ /* block id: 632 */
return p_61;
}
/* ------------------------------------------ */
/*
* reads : g_86 g_87 g_88 g_39 g_38 g_26.f2 g_6 g_107 g_40 g_115 g_28 g_71 g_142 g_165 g_185.f2 g_185.f0.f5 g_162.f5.f3 g_208 g_185.f5.f1.f3 g_188.f0.f2 g_188.f5.f1.f3 g_225 g_188.f0.f1 g_238 g_262 g_264 g_267 g_269 g_185.f3 g_270 g_295.f1 g_188.f4 g_187 g_188 g_322 g_263 g_291.f0 g_296.f0 g_318 g_294.f0 g_185.f4 g_185.f0.f2 g_444 g_452 g_449 g_456 g_458 g_460 g_461 g_305.f3 g_473 g_305.f0 g_293.f5 g_445 g_446 g_295.f5 g_162.f5.f1.f3 g_293.f4 g_305 g_457 g_185.f5.f1 g_310 g_292.f5 g_162.f4 g_577 g_579 g_601 g_290 g_602 g_291.f1 g_295.f4 g_660 g_694 g_299 g_695 g_162.f5.f1.f1 g_717 g_721 g_291.f3 g_369.f0 g_732 g_324 g_159 g_160 g_312 g_576 g_742 g_750 g_758 g_774 g_650 g_788 g_836 g_837 g_849 g_459 g_869 g_289 g_890 g_891 g_899 g_789 g_752 g_626 g_928 g_718 g_743 g_962 g_970 g_980 g_805 g_904 g_905 g_185.f1 g_929 g_935.f1 g_291.f4 g_292.f1 g_1062 g_292.f4 g_296.f1 g_751 g_1045.f3 g_295.f0 g_1120 g_540 g_292.f0 g_1036.f1 g_1139 g_162.f3 g_900 g_1190 g_1197 g_291.f5 g_296.f5 g_1045.f4 g_1318 g_1431
* writes: g_40 g_107 g_38 g_28 g_187 g_165.f1 g_208 g_86.f1.f0 g_185.f4 g_88 g_263 g_39 g_270 g_276 g_185.f3 g_188.f0.f1 g_289 g_299 g_310 g_312 g_188.f4 g_316 g_267.f0.f2 g_323 g_324 g_188.f1 g_449 g_459 g_458 g_540 g_185.f0.f5 g_296 g_295 g_294 g_293 g_292 g_291 g_626 g_650 g_660 g_446 g_188.f3 g_165.f2 g_267.f0.f1 g_457 g_185.f0.f2 g_717 g_742 g_759 g_804 g_827 g_829 g_721.f0.f2 g_290 g_891 g_790 g_929 g_836.f2 g_784 g_962 g_806 g_774 g_1010 g_869 g_601.f4 g_1165 g_1190 g_1193 g_1139.f3 g_1139.f0.f2 g_1139.f4 g_991.f0.f1 g_1045.f4 g_836.f1 g_928 g_905
*/
static int32_t * func_65(uint16_t p_66, uint16_t * p_67, int32_t * p_68, int8_t p_69)
{ /* block id: 8 */
const int16_t l_78 = 0x328DL;
uint16_t *l_85 = &g_38;
uint16_t **l_84 = &l_85;
const uint32_t *l_1409 = &g_1410;
(*g_904) = func_72((g_1045[5][1][3].f4 &= ((safe_rshift_func_uint8_t_u_u(l_78, 4)) >= (&g_38 != ((*l_84) = func_79(l_78, (((*l_84) = &p_66) != (g_86 , (g_87[2] , (g_88 , &g_38)))), &g_38, l_78))))), l_78, l_1409);
return p_68;
}
/* ------------------------------------------ */
/*
* reads : g_165.f1 g_1318 g_836.f1 g_1431
* writes: g_165.f1 g_836.f1 g_928
*/
static struct S6 func_72(int32_t p_73, uint32_t p_74, const uint32_t * p_75)
{ /* block id: 617 */
struct S2 ***l_1429[1][7] = {{&g_1010,&g_1010,&g_1010,&g_1010,&g_1010,&g_1010,&g_1010}};
struct S2 ****l_1430[5];
int i, j;
for (i = 0; i < 5; i++)
l_1430[i] = &l_1429[0][6];
for (g_165.f1 = 1; (g_165.f1 >= 0); g_165.f1 -= 1)
{ /* block id: 620 */
int32_t l_1424 = 0xDAA39EF1L;
int32_t l_1425[7] = {0xEE282F6BL,0xEE282F6BL,0xEE282F6BL,0xEE282F6BL,0xEE282F6BL,0xEE282F6BL,0xEE282F6BL};
uint8_t l_1426 = 0UL;
int i;
if (g_1318[(g_165.f1 + 6)])
break;
for (g_836.f1 = 8; (g_836.f1 >= 0); g_836.f1 -= 1)
{ /* block id: 624 */
int32_t *l_1411 = &g_1139.f0.f1;
int32_t *l_1412 = &g_267.f0.f1;
int32_t *l_1413 = &g_185.f0.f1;
int32_t *l_1414 = &g_890.f0.f1;
int32_t *l_1415 = &g_185.f0.f1;
int32_t *l_1416 = &g_1095;
int32_t *l_1417 = &g_185.f0.f1;
int32_t l_1418 = (-1L);
int32_t *l_1419 = &g_721.f0.f1;
int32_t *l_1420 = &g_890.f0.f1;
int32_t *l_1421 = &g_1139.f0.f1;
int32_t l_1422 = (-1L);
int32_t *l_1423[9] = {&g_721.f0.f1,&g_721.f0.f1,&g_721.f0.f1,&g_721.f0.f1,&g_721.f0.f1,&g_721.f0.f1,&g_721.f0.f1,&g_721.f0.f1,&g_721.f0.f1};
int i;
--l_1426;
}
}
g_928 = l_1429[0][0];
return g_1431[6][0][3];
}
/* ------------------------------------------ */
/*
* reads : g_86.f1.f4 g_39 g_38 g_87.f3 g_26.f2 g_6 g_88.f4 g_107 g_40 g_115 g_87.f2 g_71 g_142 g_28 g_165 g_88 g_185.f2 g_185.f0.f5 g_162.f5.f3 g_86.f1.f3 g_208 g_185.f5.f1.f3 g_188.f0.f2 g_188.f5.f1.f3 g_86.f1.f0 g_225 g_188.f0.f1 g_238 g_262 g_264 g_267 g_269 g_270 g_295.f1 g_187 g_188 g_322 g_263 g_291.f0 g_296.f0 g_318 g_294.f0 g_185.f4 g_185.f0.f2 g_444 g_452 g_456 g_458 g_460 g_461 g_305.f3 g_473 g_86.f1.f1 g_305.f0 g_449 g_293.f5 g_445 g_446 g_295.f5 g_162.f5.f1.f3 g_293.f4 g_305 g_457 g_185.f5.f1 g_310 g_292.f5 g_162.f4 g_577 g_579 g_601 g_290 g_602 g_291.f1 g_295.f4 g_660 g_694 g_299 g_695 g_162.f5.f1.f1 g_86.f0 g_717 g_721 g_291.f3 g_369.f0 g_732 g_324 g_159 g_160 g_312 g_576 g_742 g_750 g_758 g_774 g_650 g_788 g_836 g_837 g_849 g_459 g_869 g_289 g_890 g_891 g_899 g_789 g_752 g_928 g_718 g_743 g_962 g_970 g_980 g_805 g_185.f3 g_904 g_905 g_185.f1 g_929 g_935.f1 g_291.f4 g_292.f1 g_1062 g_292.f4 g_296.f1 g_751 g_1045.f3 g_295.f0 g_1120 g_540 g_292.f0 g_1036.f1 g_1139 g_162.f3 g_900 g_1190 g_1197 g_291.f5 g_296.f5 g_626
* writes: g_40 g_107 g_38 g_28 g_187 g_165.f1 g_208 g_86.f1.f0 g_185.f4 g_88 g_263 g_39 g_270 g_276 g_185.f3 g_188.f0.f1 g_289 g_299 g_310 g_312 g_188.f4 g_316 g_267.f0.f2 g_323 g_324 g_188.f1 g_449 g_459 g_458 g_540 g_185.f0.f5 g_296 g_295 g_294 g_293 g_292 g_291 g_626 g_650 g_660 g_446 g_188.f3 g_165.f2 g_267.f0.f1 g_457 g_185.f0.f2 g_717 g_742 g_759 g_804 g_827 g_829 g_721.f0.f2 g_290 g_891 g_790 g_929 g_836.f2 g_784 g_962 g_806 g_774 g_1010 g_869 g_601.f4 g_1165 g_1190 g_1193 g_1139.f3 g_1139.f0.f2 g_1139.f4 g_991.f0.f1
*/
static uint16_t * func_79(uint64_t p_80, int16_t p_81, uint16_t * p_82, uint64_t p_83)
{ /* block id: 10 */
uint64_t l_93 = 0x3DCC553FEA944068LL;
uint16_t *l_105 = (void*)0;
uint16_t *l_106 = &g_107[0];
int32_t l_114 = 1L;
int32_t *l_121 = &g_40;
int32_t l_126[2][8][1] = {{{(-3L)},{0xA53E6A3FL},{0xA53E6A3FL},{(-3L)},{0xA53E6A3FL},{0xA53E6A3FL},{(-3L)},{0xA53E6A3FL}},{{0xA53E6A3FL},{(-3L)},{0xA53E6A3FL},{0xA53E6A3FL},{(-3L)},{0xA53E6A3FL},{0xA53E6A3FL},{(-3L)}}};
struct S6 *l_168 = &g_88;
struct S5 *l_183 = (void*)0;
uint8_t l_247[2];
struct S1 *l_304 = &g_305;
const struct S7 *l_340 = &g_341;
int64_t l_361[2];
int32_t l_403[3];
struct S6 ***l_463 = &g_299[1][1][3];
struct S6 ****l_462 = &l_463;
uint32_t l_500[4][3] = {{0xBC1B014DL,0xACC43904L,0xBC1B014DL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{0xBC1B014DL,0xACC43904L,0xBC1B014DL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL}};
uint16_t l_529 = 0x1115L;
struct S0 **l_567 = &g_459;
uint64_t l_570 = 0x3CEF214C5D950EF7LL;
struct S3 *l_575 = &g_576;
struct S3 **l_574 = &l_575;
struct S3 ***l_573 = &l_574;
uint32_t l_611 = 4294967289UL;
volatile struct S2 *l_617 = &g_618;
uint16_t l_683 = 0UL;
struct S1 **l_803[1][8][3];
struct S1 ***l_802 = &l_803[0][3][1];
int32_t l_957[5][10][1] = {{{0xBF73DF8DL},{0L},{0x2DDC3742L},{(-1L)},{0xBF73DF8DL},{(-1L)},{0x2DDC3742L},{0L},{0xBF73DF8DL},{0L}},{{0x2DDC3742L},{(-1L)},{0xBF73DF8DL},{(-1L)},{0x2DDC3742L},{0L},{0xBF73DF8DL},{0L},{0x2DDC3742L},{(-1L)}},{{0xBF73DF8DL},{(-1L)},{0x2DDC3742L},{0L},{0xBF73DF8DL},{0L},{0x2DDC3742L},{(-1L)},{0xBF73DF8DL},{(-1L)}},{{0x2DDC3742L},{0L},{0xBF73DF8DL},{0L},{0x2DDC3742L},{(-1L)},{0xBF73DF8DL},{(-1L)},{0x2DDC3742L},{0L}},{{0xBF73DF8DL},{0L},{0x2DDC3742L},{(-1L)},{0xBF73DF8DL},{(-1L)},{0x2DDC3742L},{0L},{0xBF73DF8DL},{0L}}};
struct S2 ***l_971 = (void*)0;
int32_t l_1011 = 0x216DB0F1L;
uint32_t l_1096 = 4294967295UL;
uint8_t l_1186 = 0xFCL;
const struct S5 *l_1196 = (void*)0;
const struct S5 **l_1195 = &l_1196;
const struct S5 ***l_1194 = &l_1195;
struct S4 *l_1237 = &g_991;
uint32_t l_1309[5] = {0xCC721437L,0xCC721437L,0xCC721437L,0xCC721437L,0xCC721437L};
int64_t l_1316 = 0x8FBB71ED9A881B17LL;
int i, j, k;
for (i = 0; i < 2; i++)
l_247[i] = 0x1CL;
for (i = 0; i < 2; i++)
l_361[i] = 0x8CD7117A21134290LL;
for (i = 0; i < 3; i++)
l_403[i] = 0xF1E4A5B4L;
for (i = 0; i < 1; i++)
{
for (j = 0; j < 8; j++)
{
for (k = 0; k < 3; k++)
l_803[i][j][k] = &l_304;
}
}
lbl_754:
if ((p_80 & ((*l_106) |= ((+((*g_39) = (safe_unary_minus_func_uint32_t_u(((g_86.f1.f4 < (safe_add_func_int64_t_s_s(p_81, 0xCE3A63A677434CA8LL))) & l_93))))) != ((((!l_93) , ((safe_sub_func_uint16_t_u_u(((safe_lshift_func_int8_t_s_s((safe_mod_func_uint32_t_u_u(((*p_82) & g_87[2].f3), (safe_rshift_func_uint16_t_u_s((safe_rshift_func_int8_t_s_s(0x48L, 3)), p_81)))), 6)) > l_93), l_93)) == g_26.f2)) < g_6[1][0]) , g_88.f4)))))
{ /* block id: 13 */
uint8_t l_133 = 1UL;
int32_t l_158 = (-1L);
int32_t *l_170 = &g_165.f1;
uint8_t l_237[10][2][9] = {{{0x7CL,255UL,0xA7L,0x47L,0xB9L,255UL,0x47L,0xF2L,0x4EL},{0xC6L,255UL,0xF2L,0x7CL,0xB9L,0xB9L,0x7CL,0xF2L,255UL}},{{0x47L,255UL,255UL,0xC6L,0xB9L,247UL,0xC6L,0xF2L,255UL},{0x7CL,255UL,0xA7L,0x47L,0xB9L,255UL,0x47L,0xF2L,0x4EL}},{{0xC6L,255UL,0xF2L,0x7CL,0xB9L,0xB9L,0x7CL,0xF2L,255UL},{0x47L,255UL,255UL,0xC6L,0xB9L,247UL,0xC6L,0xF2L,255UL}},{{0x7CL,255UL,0xA7L,0x47L,0xB9L,255UL,0x47L,0xF2L,0x4EL},{0xC6L,255UL,0xF2L,0x7CL,0xB9L,0xB9L,0x7CL,0xF2L,255UL}},{{0x47L,255UL,255UL,0xC6L,0xB9L,247UL,0xC6L,0xF2L,255UL},{0x7CL,255UL,0xA7L,0x47L,0xB9L,255UL,0x47L,0xF2L,0x4EL}},{{0xC6L,255UL,0xF2L,0x7CL,0xB9L,0xB9L,0x7CL,0xF2L,255UL},{0x47L,255UL,255UL,0xC6L,0xB9L,247UL,0xC6L,0xF2L,255UL}},{{0x7CL,255UL,0xA7L,0x47L,0xB9L,255UL,0x47L,0xF2L,0x4EL},{0xC6L,255UL,0xF2L,0x7CL,0xB9L,0xB9L,0x7CL,0xF2L,0UL}},{{0xB9L,0UL,250UL,247UL,0x60L,250UL,247UL,0x5CL,0x65L},{255UL,0UL,2UL,0xB9L,0x60L,0xDFL,0xB9L,0x5CL,0x20L}},{{247UL,0UL,0x5CL,255UL,0x60L,0x60L,255UL,0x5CL,0UL},{0xB9L,0UL,250UL,247UL,0x60L,250UL,247UL,0x5CL,0x65L}},{{255UL,0UL,2UL,0xB9L,0x60L,0xDFL,0xB9L,0x5CL,0x20L},{247UL,0UL,0x5CL,255UL,0x60L,0x60L,255UL,0x5CL,0UL}}};
int32_t l_256 = 0xC8D32F10L;
struct S6 ** const l_302[2][4] = {{&g_290[8][0],&g_290[8][0],&g_290[8][0],&g_290[8][0]},{&g_290[8][0],&g_290[8][0],&g_290[8][0],&g_290[8][0]}};
struct S4 *l_314 = &g_267;
struct S7 *l_368 = &g_369;
struct S7 *l_370 = &g_369;
int8_t l_371 = 0xBDL;
struct S3 *l_392 = (void*)0;
const int32_t ***l_447 = &g_445;
int16_t l_498 = 0L;
int32_t l_586 = 3L;
int32_t l_589[6][4][3] = {{{5L,0xF6472452L,(-8L)},{1L,(-1L),0x3EEBBEFEL},{4L,0x8E3C5E1EL,0x3EEBBEFEL},{(-8L),3L,(-8L)}},{{0xD3F9389EL,0x446BF8DAL,5L},{0x56075902L,(-10L),0L},{6L,6L,0x5D97B975L},{0x128AF7B3L,4L,0L}},{{6L,(-1L),5L},{0x56075902L,0xF644E1A3L,(-5L)},{0xD3F9389EL,1L,(-1L)},{(-8L),0x5D97B975L,(-1L)}},{{4L,0x5D97B975L,0x8E3C5E1EL},{1L,1L,6L},{5L,0xF644E1A3L,4L},{6L,(-1L),0L}},{{0x8FD928D2L,4L,0xF6472452L},{0xEBB5C9B9L,6L,0L},{0x5D97B975L,(-10L),4L},{(-1L),0x446BF8DAL,6L}},{{(-1L),3L,0x8E3C5E1EL},{0L,0x8E3C5E1EL,(-1L)},{0L,(-1L),(-1L)},{(-1L),0xF6472452L,(-5L)}}};
int32_t l_595 = 0x2F34CA9EL;
int32_t l_597 = 0xB3315F5FL;
struct S0 **l_672 = &g_459;
int i, j, k;
if ((*g_39))
{ /* block id: 14 */
uint32_t l_116 = 0xF3A2FA3DL;
int32_t *l_119 = &g_28;
int32_t **l_120 = &l_119;
int32_t l_122 = 0xE9E4B147L;
int32_t l_132 = (-7L);
int32_t l_222 = 0xE87EC680L;
int32_t l_254[3];
int i;
for (i = 0; i < 3; i++)
l_254[i] = (-1L);
if ((safe_mul_func_int8_t_s_s((((safe_div_func_int32_t_s_s(0x092B2853L, ((safe_div_func_int16_t_s_s(((l_114 ^= ((*p_82) = 6UL)) | (p_81 > (((g_115 , g_87[2].f2) ^ 0x3CL) ^ p_83))), l_116)) | ((safe_sub_func_uint32_t_u_u((((((*l_120) = l_119) != l_121) ^ 0xA8C8944EL) , p_81), (*g_39))) | l_122)))) || p_81) < (*l_121)), p_83)))
{ /* block id: 18 */
int16_t l_129 = 2L;
int32_t l_130 = 0xED700720L;
for (g_28 = (-29); (g_28 > (-27)); g_28++)
{ /* block id: 21 */
int32_t ***l_125 = &l_120;
int32_t l_128 = 0xB3CF24B4L;
int32_t l_131[8] = {(-3L),(-3L),0xA8145684L,(-3L),(-3L),0xA8145684L,(-3L),(-3L)};
int i;
(*l_125) = &g_39;
for (l_122 = 2; (l_122 >= 0); l_122 -= 1)
{ /* block id: 25 */
int32_t *l_127[6];
uint64_t *l_157 = &l_93;
int i;
for (i = 0; i < 6; i++)
l_127[i] = &l_126[1][3][0];
l_133--;
(**l_120) = (safe_mul_func_int8_t_s_s(g_107[l_122], (safe_mul_func_uint16_t_u_u((l_158 = (g_71 , (safe_mul_func_int16_t_s_s((g_142 , (p_81 = 0xA422L)), ((safe_add_func_int16_t_s_s(((safe_mul_func_int16_t_s_s(((g_6[6][2] <= (safe_rshift_func_uint8_t_u_u(0UL, 1))) , 0x5A46L), (safe_add_func_uint64_t_u_u(((*l_157) |= (p_80 <= (safe_mul_func_int8_t_s_s((~(!0x81L)), (***l_125))))), 1UL)))) != g_6[1][2]), 1L)) && g_28))))), 0xD8BFL))));
if ((*g_39))
break;
}
for (p_83 = 0; (p_83 <= 0); p_83 += 1)
{ /* block id: 35 */
volatile struct S5 *l_161 = &g_162;
l_161 = &g_115;
}
for (l_116 = (-25); (l_116 > 18); l_116 = safe_add_func_uint8_t_u_u(l_116, 8))
{ /* block id: 40 */
if (l_158)
break;
}
}
}
else
{ /* block id: 44 */
int32_t * const *l_176 = (void*)0;
int32_t * const ** const l_175 = &l_176;
int32_t l_252 = 5L;
int32_t l_253 = 1L;
int32_t l_255 = 0x0E8F7A8CL;
int32_t l_257 = 0L;
uint32_t l_258 = 0x26045AEAL;
if ((g_165 , l_158))
{ /* block id: 45 */
struct S5 *l_184[3][9] = {{(void*)0,&g_185,(void*)0,(void*)0,&g_185,(void*)0,(void*)0,&g_185,(void*)0},{(void*)0,&g_185,(void*)0,(void*)0,&g_185,(void*)0,(void*)0,&g_185,(void*)0},{(void*)0,&g_185,(void*)0,(void*)0,&g_185,(void*)0,(void*)0,&g_185,(void*)0}};
int32_t l_220 = 1L;
int32_t *l_251[4][4] = {{&g_165.f1,&g_165.f1,&g_165.f1,&g_165.f1},{&g_165.f1,&g_165.f1,&g_165.f1,&g_165.f1},{&g_165.f1,&g_165.f1,&g_165.f1,&g_165.f1},{&g_165.f1,&g_165.f1,&g_165.f1,&g_165.f1}};
int i, j;
for (l_93 = (-30); (l_93 >= 4); ++l_93)
{ /* block id: 48 */
struct S6 **l_169 = &l_168;
(*l_169) = l_168;
if (p_80)
break;
l_170 = (*l_120);
}
lbl_250:
if ((*g_39))
{ /* block id: 53 */
uint64_t *l_180 = &l_93;
struct S5 **l_186[2];
int64_t *l_207 = &g_208;
int32_t l_221 = 0xA7629048L;
int i;
for (i = 0; i < 2; i++)
l_186[i] = &l_184[2][1];
(*l_119) ^= ((safe_mul_func_int16_t_s_s((safe_add_func_uint64_t_u_u(p_81, ((void*)0 != l_175))), (!(safe_rshift_func_uint16_t_u_u((*l_121), (0x77F8201C62F756BALL != (--(*l_180)))))))) | (l_183 == ((*l_168) , (g_187 = l_184[2][1]))));
(*l_170) = (((((safe_add_func_uint8_t_u_u(0UL, 0x88L)) || p_83) | g_185.f2) | (safe_sub_func_int16_t_s_s((-4L), (++(*l_106))))) <= p_83);
g_86.f1.f0 &= (((g_185.f0.f5 || (((safe_add_func_uint32_t_u_u((((safe_sub_func_int8_t_s_s(g_162.f5.f3, ((((safe_lshift_func_uint16_t_u_u((safe_div_func_uint16_t_u_u(((safe_rshift_func_uint16_t_u_u(((*p_82)--), g_86.f1.f3)) > ((((*l_207) |= (-6L)) , ((~g_185.f5.f1.f3) ^ (safe_mul_func_uint8_t_u_u((((*l_180) = ((((safe_add_func_int8_t_s_s((safe_mul_func_uint8_t_u_u(((safe_mod_func_uint8_t_u_u(((*l_170) & ((*l_106) |= 0xC71EL)), ((safe_mul_func_uint16_t_u_u(g_188.f0.f2, (g_208 ^ g_88.f5))) & 0xFE4F01166651E270LL))) & g_185.f5.f1.f3), g_188.f5.f1.f3)), (*l_121))) <= p_80) == p_83) ^ l_220)) < 0x42D59610F7576009LL), g_88.f3)))) || g_88.f5)), 0x92D8L)), g_86.f1.f4)) >= 0xB2FF3143DF592409LL) , 1L) <= 0L))) && g_142.f0.f3) != l_221), 4294967295UL)) , g_185.f2) >= l_222)) , l_183) == l_184[1][3]);
}
else
{ /* block id: 64 */
uint8_t *l_229 = &g_185.f4;
int32_t l_240[7];
int32_t *l_241 = &g_28;
int32_t *l_242 = &g_28;
int32_t *l_243 = (void*)0;
int32_t *l_244 = &l_240[4];
int32_t *l_245 = &l_240[3];
int32_t *l_246[10];
int i;
for (i = 0; i < 7; i++)
l_240[i] = 9L;
for (i = 0; i < 10; i++)
l_246[i] = &l_222;
(*l_121) = (safe_div_func_uint16_t_u_u(((**l_120) , (((g_225 , g_142.f0) , (!(*l_170))) && ((safe_rshift_func_uint8_t_u_u(((*l_229) = 0x26L), ((safe_lshift_func_int8_t_s_s((0UL == 1UL), (safe_mul_func_int16_t_s_s((((*g_39) & ((safe_unary_minus_func_uint32_t_u((safe_rshift_func_uint8_t_u_u((1UL | g_115.f2), 6)))) || 1L)) && l_237[2][1][0]), p_83)))) , 4UL))) <= g_188.f0.f1))), (*p_82)));
if (l_114)
goto lbl_239;
lbl_239:
(*l_168) = g_238;
++l_247[0];
(*l_168) = g_88;
if (g_165.f5)
goto lbl_250;
}
++l_258;
}
else
{ /* block id: 74 */
return &g_107[1];
}
}
}
else
{ /* block id: 78 */
uint16_t *l_279 = &g_188.f1;
struct S1 *l_307 = (void*)0;
int32_t l_313 = 0L;
uint32_t l_334 = 3UL;
const struct S7 *l_342[7] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
struct S3 *l_345 = &g_86;
struct S3 ** const l_344[5][8] = {{&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345},{&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345},{&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345},{&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345},{&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345,&l_345}};
uint32_t *l_358 = &l_334;
struct S5 **l_366 = (void*)0;
struct S5 **l_367 = &l_183;
uint64_t *l_382 = (void*)0;
uint64_t *l_383 = &l_93;
int32_t l_402 = 0L;
uint32_t l_404 = 9UL;
struct S6 ****l_467[9] = {&l_463,&l_463,&l_463,&l_463,&l_463,&l_463,&l_463,&l_463,&l_463};
const uint16_t l_468 = 0xD7B9L;
int32_t l_499 = 0L;
int16_t *l_517 = &l_498;
int32_t l_594 = 0L;
int32_t l_596[5] = {0x6E5EF7C4L,0x6E5EF7C4L,0x6E5EF7C4L,0x6E5EF7C4L,0x6E5EF7C4L};
int i, j;
lbl_407:
if ((*g_39))
{ /* block id: 79 */
const struct S3 *l_261 = &g_188.f5;
for (l_93 = 0; (l_93 <= 0); l_93 += 1)
{ /* block id: 82 */
(*g_262) = l_261;
for (g_40 = 0; (g_40 <= 0); g_40 += 1)
{ /* block id: 86 */
return &g_107[1];
}
(*g_264) = &g_40;
for (l_114 = 0; (l_114 <= 0); l_114 += 1)
{ /* block id: 92 */
struct S1 *l_266 = (void*)0;
struct S1 **l_265 = &l_266;
int32_t *l_268 = &l_114;
int32_t **l_271 = &g_270;
(*l_265) = &g_87[5];
(*g_269) = (g_267 , ((*g_264) = l_268));
(*l_271) = (*g_264);
(*l_121) = (safe_rshift_func_int16_t_s_s((g_276 = (safe_div_func_uint64_t_u_u(p_81, 0x718F66F7A08163BCLL))), 14));
}
}
for (g_185.f3 = 0; (g_185.f3 < 28); g_185.f3 = safe_add_func_int16_t_s_s(g_185.f3, 5))
{ /* block id: 103 */
(*g_270) ^= (-1L);
return l_279;
}
}
else
{ /* block id: 107 */
uint16_t l_319 = 0x401BL;
uint64_t l_339[8];
int i;
for (i = 0; i < 8; i++)
l_339[i] = 0x7FB7F7314760B189LL;
for (g_38 = 0; (g_38 <= 2); g_38 += 1)
{ /* block id: 110 */
uint16_t l_282 = 5UL;
struct S6 **l_298 = &g_290[8][0];
struct S6 ***l_297[8][4];
struct S1 *l_303 = (void*)0;
struct S1 **l_306[10] = {&l_304,(void*)0,(void*)0,&l_304,(void*)0,(void*)0,&l_304,(void*)0,(void*)0,&l_304};
int64_t *l_308[4];
int8_t *l_309 = &g_310;
int8_t *l_311 = &g_312;
int i, j;
for (i = 0; i < 8; i++)
{
for (j = 0; j < 4; j++)
l_297[i][j] = &l_298;
}
for (i = 0; i < 4; i++)
l_308[i] = &g_208;
(*g_39) = ((safe_div_func_int32_t_s_s(0x49F3D813L, (**g_269))) == (l_282 , ((safe_add_func_uint16_t_u_u((safe_add_func_uint64_t_u_u((((*l_311) = ((*l_309) = (safe_rshift_func_uint16_t_u_s((((g_289 = (void*)0) == (g_299[1][1][3] = &g_290[7][0])) > (g_208 = (safe_lshift_func_uint8_t_u_s(((&g_290[6][0] == l_302[0][2]) | (l_303 != (l_307 = l_304))), 3)))), 7)))) , 18446744073709551615UL), g_165.f5)), g_295.f1)) && l_282)));
(*g_39) = l_313;
for (g_188.f4 = 0; (g_188.f4 <= 2); g_188.f4 += 1)
{ /* block id: 121 */
struct S4 **l_315[9] = {&l_314,&l_314,&l_314,&l_314,&l_314,&l_314,&l_314,&l_314,&l_314};
int i;
g_316 = l_314;
return l_279;
}
for (g_267.f0.f2 = 0; (g_267.f0.f2 <= 2); g_267.f0.f2 += 1)
{ /* block id: 127 */
int32_t *l_317[7][8] = {{&l_158,&g_40,&g_165.f1,&l_313,&l_126[1][3][0],&l_126[1][3][0],&l_313,&g_165.f1},{(void*)0,(void*)0,&g_40,&g_185.f0.f1,&l_126[1][3][0],&g_267.f0.f1,&g_185.f0.f1,&g_267.f0.f1},{&l_158,&g_165.f1,&g_185.f0.f1,&g_165.f1,&l_158,&l_256,(void*)0,&g_267.f0.f1},{&g_165.f1,&l_126[1][3][0],&g_185.f0.f1,&g_185.f0.f1,&g_185.f0.f1,&g_185.f0.f1,&l_126[1][3][0],&g_165.f1},{&g_40,&l_256,&g_185.f0.f1,&l_313,(void*)0,&l_158,(void*)0,&l_313},{&g_185.f0.f1,&l_313,&g_185.f0.f1,&g_267.f0.f1,&l_313,&l_158,&g_185.f0.f1,&g_185.f0.f1},{&g_185.f0.f1,&l_256,&g_40,&g_40,&l_256,&g_185.f0.f1,&l_313,(void*)0}};
int i, j;
l_319++;
g_323 = ((*g_187) , g_322);
}
}
g_324 = ((**g_262) , &g_159[1]);
if ((safe_mul_func_int16_t_s_s(p_83, (((safe_add_func_int64_t_s_s(((+(safe_sub_func_uint32_t_u_u(l_319, ((safe_div_func_uint8_t_u_u((l_313 ^ l_334), p_80)) && l_334)))) < 0xD0BDD129L), (safe_lshift_func_int16_t_s_u(((l_319 <= (safe_add_func_int32_t_s_s(0x6B6CE06DL, (**g_264)))) != l_334), 1)))) || 0x4407E7B2CC81F561LL) != l_339[5]))))
{ /* block id: 133 */
l_342[5] = l_340;
}
else
{ /* block id: 135 */
uint64_t l_343[8] = {0x241E805390F69E3CLL,0UL,0UL,0x241E805390F69E3CLL,0UL,0UL,0x241E805390F69E3CLL,0UL};
struct S3 **l_347 = &l_345;
struct S3 ***l_346 = &l_347;
int i;
(*g_270) = ((l_343[2] & (0x563B06DA5584C7ECLL <= (l_344[4][0] != ((*l_346) = (void*)0)))) == 0x4AL);
}
(*l_121) ^= 0L;
}
(*g_39) = (safe_rshift_func_int8_t_s_u((safe_sub_func_int32_t_s_s(((+(((((((((((*l_279) = (safe_lshift_func_uint16_t_u_s((*l_121), 13))) >= ((safe_unary_minus_func_uint64_t_u(g_291.f0)) < ((((safe_mod_func_uint8_t_u_u((((((((*l_358)++) , (((1UL == (l_313 ^ g_296.f0)) > ((l_361[0] <= ((safe_div_func_uint64_t_u_u((safe_lshift_func_uint8_t_u_s((((((l_366 = &g_187) == l_367) , l_368) != l_370) != p_80), 5)), p_81)) && 0x9018EF9AL)) , 1L)) || l_371)) , (*l_170)) <= 0x1A29L) >= 0x86E4F013L) > 250UL), 1UL)) ^ p_81) >= l_313) >= l_313))) <= 1L) >= p_83) > 1L) == (*g_39)) <= p_80) , 0x0CCFL) | (*l_170)) , 1UL)) == 0x1D5AB82BL), 2L)), 6));
if ((((safe_lshift_func_int8_t_s_s((((((safe_div_func_int8_t_s_s((((0L ^ (!((safe_mul_func_uint8_t_u_u(((safe_mul_func_int16_t_s_s((!((*l_383) = (p_80 = 18446744073709551612UL))), (((*l_168) , &l_313) != &l_126[0][5][0]))) , (safe_div_func_int16_t_s_s(0x47E0L, (((*l_170) || ((safe_sub_func_int8_t_s_s(g_318, p_81)) > g_188.f4)) & g_294.f0)))), 0x6AL)) || (*l_121)))) | p_81) >= (-4L)), 249UL)) ^ g_188.f5.f1.f4) > g_185.f4) < 1L) < 1L), l_313)) , (-1L)) >= 0L))
{ /* block id: 147 */
int64_t l_400 = 3L;
int32_t l_401 = 1L;
struct S6 * const **l_420[1];
struct S4 *l_426 = &g_267;
int i;
for (i = 0; i < 1; i++)
l_420[i] = (void*)0;
if (((safe_sub_func_int8_t_s_s(((void*)0 == p_82), (safe_div_func_uint16_t_u_u(((void*)0 == l_392), (0x5D69L & (*p_82)))))) >= g_26.f2))
{ /* block id: 148 */
struct S4 **l_393 = &l_314;
int32_t *l_394 = &g_185.f0.f1;
int32_t l_395 = 0xFA9E28F9L;
int32_t *l_396 = &l_395;
int32_t *l_397 = &g_28;
int32_t *l_398 = (void*)0;
int32_t *l_399[4][7][7] = {{{(void*)0,&g_165.f1,&g_28,&l_256,&g_165.f1,&g_188.f0.f1,&g_28},{&g_28,(void*)0,&l_126[0][4][0],&g_40,(void*)0,(void*)0,&l_256},{&l_114,&g_188.f0.f1,&g_28,&g_185.f0.f1,&g_28,(void*)0,&g_28},{&l_256,&g_188.f0.f1,&l_126[0][4][0],&g_28,&l_395,&g_185.f0.f1,&g_267.f0.f1},{&g_165.f1,&g_185.f0.f1,&g_28,&l_114,&g_28,&g_185.f0.f1,&g_165.f1},{&g_185.f0.f1,&l_126[0][4][0],&l_126[0][4][0],&g_267.f0.f1,&g_267.f0.f1,(void*)0,&g_40},{&l_395,&l_158,&g_28,&l_395,&l_256,(void*)0,(void*)0}},{{&l_114,&g_185.f0.f1,&l_126[0][4][0],&l_395,(void*)0,&l_256,&g_185.f0.f1},{(void*)0,&l_395,&l_158,(void*)0,(void*)0,&g_28,&g_28},{&g_28,&l_256,(void*)0,(void*)0,&l_114,&l_114,&g_267.f0.f1},{&g_28,(void*)0,&l_158,&l_126[1][0][0],&g_267.f0.f1,&l_114,&g_185.f0.f1},{&l_395,&g_185.f0.f1,(void*)0,&g_267.f0.f1,(void*)0,&g_185.f0.f1,&l_395},{&l_114,&g_28,&l_158,(void*)0,&g_165.f1,&l_395,&g_188.f0.f1},{&g_165.f1,&g_185.f0.f1,(void*)0,&g_185.f0.f1,(void*)0,&g_28,&g_165.f1}},{{&l_256,&l_114,&l_158,&l_256,&l_256,&g_165.f1,&l_114},{&g_267.f0.f1,&g_267.f0.f1,(void*)0,&l_126[1][3][0],&g_28,&g_185.f0.f1,&g_40},{&g_188.f0.f1,&g_165.f1,&l_158,&g_267.f0.f1,(void*)0,(void*)0,(void*)0},{&g_40,&l_114,(void*)0,&g_185.f0.f1,&l_395,&g_40,&g_165.f1},{&l_395,&g_165.f1,&l_158,(void*)0,&l_158,&g_165.f1,&l_395},{&g_185.f0.f1,&g_28,(void*)0,(void*)0,&l_313,&g_267.f0.f1,&g_28},{&g_185.f0.f1,&g_28,&l_158,&g_165.f1,&g_165.f1,&g_28,&l_256}},{{&g_165.f1,&g_40,(void*)0,&l_395,(void*)0,&l_256,&g_185.f0.f1},{(void*)0,&l_395,&l_158,(void*)0,(void*)0,&g_28,&g_28},{&g_28,&l_256,(void*)0,(void*)0,&l_114,&l_114,&g_267.f0.f1},{&g_28,(void*)0,&l_158,&l_126[1][0][0],&g_267.f0.f1,&l_114,&g_185.f0.f1},{&l_395,&g_185.f0.f1,(void*)0,&g_267.f0.f1,(void*)0,&g_185.f0.f1,&l_395},{&l_114,&g_28,&l_158,(void*)0,&g_165.f1,&l_395,&g_188.f0.f1},{&g_165.f1,&g_185.f0.f1,(void*)0,&g_185.f0.f1,(void*)0,&g_28,&g_165.f1}}};
int i, j, k;
(*l_393) = l_314;
l_404++;
if (g_238.f5)
goto lbl_407;
l_401 = ((*l_397) = (*g_270));
}
else
{ /* block id: 154 */
struct S6 ***l_418 = &g_289;
struct S6 ****l_417 = &l_418;
struct S6 * const ***l_419 = (void*)0;
int32_t l_427 = 0x9337297BL;
(*l_170) = (((safe_lshift_func_int16_t_s_s((!((safe_div_func_int64_t_s_s(0x5D51ADBA321759A1LL, p_80)) <= ((safe_mod_func_int8_t_s_s((p_82 != (void*)0), ((safe_sub_func_uint64_t_u_u((((*l_417) = &g_299[1][1][3]) != (l_420[0] = (void*)0)), (l_313 | (g_185.f4 &= (((safe_unary_minus_func_int16_t_s(((safe_sub_func_uint16_t_u_u((safe_lshift_func_uint8_t_u_u(((((((&g_267 == l_426) < g_185.f0.f2) , 0x19L) || 0x3CL) == (*l_170)) != 0L), p_80)), l_427)) || p_80))) || (*l_170)) ^ p_81))))) , g_238.f3))) == l_400))), 3)) < 0x40F7L) >= g_115.f2);
}
}
else
{ /* block id: 160 */
struct S1 *l_439 = (void*)0;
int64_t *l_441 = &l_361[0];
int16_t *l_448[3];
int64_t *l_450 = (void*)0;
int64_t *l_451 = &g_208;
struct S6 ****l_464 = &l_463;
int32_t l_482[4][2];
int32_t *l_497[8][4][2] = {{{&l_126[1][3][0],&l_482[1][1]},{(void*)0,&l_482[1][1]},{&l_126[1][3][0],&g_40},{(void*)0,&g_40}},{{&l_126[1][3][0],&l_482[1][1]},{(void*)0,&l_482[1][1]},{&l_126[1][3][0],&g_40},{(void*)0,&g_40}},{{&l_126[1][3][0],&l_482[1][1]},{(void*)0,&l_482[1][1]},{&l_126[1][3][0],&g_40},{(void*)0,&g_40}},{{&l_126[1][3][0],&l_482[1][1]},{(void*)0,&l_482[1][1]},{&l_126[1][3][0],&g_40},{(void*)0,&g_40}},{{&l_126[1][3][0],&l_482[1][1]},{(void*)0,&l_482[1][1]},{&l_126[1][3][0],&g_40},{(void*)0,&g_40}},{{&l_126[1][3][0],&l_482[1][1]},{(void*)0,&l_482[1][1]},{&l_126[1][3][0],&g_40},{(void*)0,&g_40}},{{&l_126[1][3][0],&l_482[1][1]},{(void*)0,&l_482[1][1]},{&l_126[1][3][0],&g_40},{(void*)0,&g_40}},{{&l_126[1][3][0],&l_482[1][1]},{(void*)0,&l_482[1][1]},{&l_126[1][3][0],&g_40},{(void*)0,&g_40}}};
int i, j, k;
for (i = 0; i < 3; i++)
l_448[i] = &g_449;
for (i = 0; i < 4; i++)
{
for (j = 0; j < 2; j++)
l_482[i][j] = 0x844A9BF5L;
}
if ((safe_add_func_uint64_t_u_u(l_404, ((*l_451) ^= (safe_rshift_func_int8_t_s_s(((*l_170) > (l_402 &= (((*p_82) = (!(p_81 ^= (g_188.f5.f1 , (safe_mod_func_uint32_t_u_u((safe_mul_func_int8_t_s_s(((safe_rshift_func_uint8_t_u_s(g_188.f5.f1.f1, 6)) >= ((void*)0 == l_439)), (((*l_441) &= (~(*l_121))) , 0x1FL))), (safe_mod_func_int8_t_s_s(((l_447 = g_444[0]) == &g_445), (*l_121))))))))) & 8L))), g_88.f5))))))
{ /* block id: 167 */
int32_t *l_453 = &g_28;
(*l_168) = g_452;
(**g_269) |= (-6L);
l_453 = l_453;
for (g_449 = 0; (g_449 < (-10)); g_449 = safe_sub_func_uint32_t_u_u(g_449, 3))
{ /* block id: 173 */
(*g_39) = ((void*)0 == g_456);
(*g_458) = &g_165;
if (g_460)
continue;
(*l_168) = g_461;
}
}
else
{ /* block id: 179 */
struct S6 *****l_465 = (void*)0;
struct S6 *****l_466[3];
int32_t l_474 = 1L;
int16_t l_479 = 0xD1E7L;
int i;
for (i = 0; i < 3; i++)
l_466[i] = &l_464;
l_313 |= (((l_462 == (l_467[8] = l_464)) | (((l_334 < l_468) ^ (*l_170)) > g_305.f3)) | (safe_add_func_int16_t_s_s((g_449 = (((safe_rshift_func_uint16_t_u_s(l_402, (g_473 , g_86.f1.f1))) || l_474) == 0x105E991380E6533ELL)), (*p_82))));
if ((((((p_81 || 0x90A49770L) == ((safe_lshift_func_int8_t_s_s(l_479, (safe_lshift_func_uint16_t_u_u(((*p_82) = 65535UL), 12)))) > l_482[1][1])) || (*l_121)) > (safe_sub_func_int16_t_s_s(g_115.f0.f4, (g_449 |= (safe_rshift_func_int16_t_s_u(((*l_170) = (((safe_lshift_func_int8_t_s_u((safe_unary_minus_func_int64_t_s((safe_mul_func_int16_t_s_s(((safe_rshift_func_uint8_t_u_s((safe_div_func_uint16_t_u_u(g_305.f0, (~(p_81 & g_86.f1.f0)))), 5)) & 2L), p_80)))), 2)) ^ g_40) ^ 0x230EL)), 5)))))) & g_293.f5))
{ /* block id: 186 */
return l_279;
}
else
{ /* block id: 188 */
return &g_38;
}
}
--l_500[3][2];
}
if ((g_188.f5.f1.f1 ^ ((~(safe_mul_func_int16_t_s_s((safe_sub_func_int64_t_s_s(((safe_rshift_func_uint16_t_u_s((safe_rshift_func_int8_t_s_u((-9L), g_188.f0.f2)), (!(***l_447)))) == (*l_121)), (p_83 = (safe_mul_func_uint16_t_u_u((safe_div_func_uint16_t_u_u((*p_82), (0xD6L ^ (-2L)))), ((*l_517) = (((((l_370 != l_370) != g_305.f3) != g_295.f5) == 0xB4A5D6E7B4568F12LL) & (*l_170)))))))), g_238.f0))) != l_404)))
{ /* block id: 196 */
uint16_t l_528 = 65535UL;
int32_t l_535 = 0x6D475D08L;
int32_t *l_543 = &g_165.f1;
int32_t l_590 = 1L;
int32_t l_591 = 0xB2D15C47L;
int32_t l_592 = (-1L);
int32_t l_593 = 0xD7684B30L;
if ((0UL || (g_188.f4 = (safe_rshift_func_int8_t_s_s((0x34207361177807A1LL & 0x86C76AD622B2B47FLL), (safe_add_func_uint32_t_u_u(((safe_sub_func_int16_t_s_s((safe_sub_func_int16_t_s_s(g_162.f5.f1.f3, (safe_rshift_func_int8_t_s_u(0x52L, (((p_80 & l_528) || ((*l_517) = (***l_447))) , g_6[6][2]))))), 0xE6B5L)) == g_86.f1.f4), l_529)))))))
{ /* block id: 199 */
struct S0 ** const l_534 = &g_459;
for (l_313 = 0; (l_313 <= (-15)); l_313 = safe_sub_func_int32_t_s_s(l_313, 6))
{ /* block id: 202 */
(*g_39) |= (*g_446);
(*g_39) ^= p_83;
if (p_80)
continue;
}
for (l_114 = 0; (l_114 >= 19); ++l_114)
{ /* block id: 209 */
(*l_121) = (-9L);
if ((**g_445))
continue;
g_458 = l_534;
}
}
else
{ /* block id: 214 */
struct S6 **l_539 = &g_290[5][1];
int32_t l_541 = 0x3644F2DEL;
int8_t *l_542 = &g_312;
int32_t l_587 = 0x8775938DL;
int32_t l_588[9] = {1L,(-1L),1L,1L,(-1L),1L,1L,(-1L),1L};
uint16_t l_598 = 65535UL;
int i;
if (((l_535 = 9L) >= (((*l_542) = (l_499 > ((safe_mul_func_uint16_t_u_u((***l_447), (+((((*l_517) |= g_293.f4) != (((*l_304) , (g_540 = (p_80 || ((void*)0 == l_539)))) || (l_541 && 65534UL))) | (*p_82))))) > g_38))) > (-1L))))
{ /* block id: 219 */
uint16_t l_554 = 0x6E9FL;
int16_t l_555 = 0x2DC3L;
int32_t l_556 = 0L;
l_543 = (*g_269);
l_556 &= (0x898EL > (l_555 = ((safe_add_func_int32_t_s_s(((p_83 | ((((((safe_rshift_func_int8_t_s_s(((*g_457) , p_81), (((g_185.f5.f1.f3 <= ((*l_106) = 0xB883L)) != (l_539 != (void*)0)) && (safe_mod_func_uint64_t_u_u((safe_div_func_int32_t_s_s((g_188.f4 || l_404), 0xF578FA5CL)), 5L))))) > p_80) >= l_554) || g_310) && (-3L)) != p_81)) ^ 0xD2L), p_83)) & g_292.f5)));
(*g_270) ^= (*l_121);
return p_82;
}
else
{ /* block id: 226 */
int64_t *l_571 = (void*)0;
int64_t *l_572[10][9][2] = {{{&g_276,&g_208},{&l_361[0],(void*)0},{(void*)0,&l_361[0]},{&g_276,&l_361[0]},{&g_276,&l_361[0]},{(void*)0,(void*)0},{&l_361[0],&g_208},{&g_276,&l_361[1]},{&l_361[0],&g_208}},{{&g_208,(void*)0},{&l_361[1],&l_361[0]},{&l_361[0],&g_208},{&l_361[1],&g_208},{&l_361[0],&l_361[0]},{&l_361[1],(void*)0},{&g_208,&g_208},{&l_361[0],&l_361[1]},{&g_276,&g_208}},{{&l_361[0],(void*)0},{(void*)0,&l_361[0]},{&g_276,&l_361[0]},{&g_276,&l_361[0]},{(void*)0,(void*)0},{&l_361[0],&g_208},{&g_276,&l_361[1]},{&l_361[0],&g_208},{&g_208,(void*)0}},{{&l_361[1],&l_361[0]},{&l_361[0],&g_208},{&l_361[1],&g_208},{&l_361[0],&l_361[0]},{&l_361[1],(void*)0},{&g_208,&g_208},{&l_361[0],&l_361[1]},{&g_276,&g_208},{&l_361[0],(void*)0}},{{(void*)0,&l_361[0]},{&g_276,&l_361[0]},{&g_276,&l_361[0]},{(void*)0,(void*)0},{&l_361[0],&g_208},{&g_276,&l_361[1]},{&l_361[0],&g_208},{&g_208,(void*)0},{&l_361[1],&l_361[0]}},{{&l_361[0],&g_208},{&l_361[1],&g_208},{&l_361[0],&l_361[0]},{&l_361[1],(void*)0},{&g_208,&g_208},{&l_361[0],&l_361[1]},{&g_276,&g_208},{&l_361[0],(void*)0},{(void*)0,&l_361[0]}},{{&g_276,&l_361[0]},{&g_276,&l_361[0]},{(void*)0,(void*)0},{&l_361[0],&g_208},{&g_276,&l_361[1]},{&l_361[0],&g_208},{&g_208,(void*)0},{&l_361[1],&l_361[0]},{&l_361[0],&g_208}},{{&l_361[1],&g_208},{&l_361[0],&l_361[0]},{&l_361[1],(void*)0},{&g_208,&g_208},{&l_361[0],&l_361[1]},{&g_276,&g_208},{&l_361[0],(void*)0},{(void*)0,&l_361[0]},{&g_276,&l_361[0]}},{{&g_276,&l_361[0]},{(void*)0,(void*)0},{&l_361[0],&g_208},{&g_276,&l_361[1]},{&l_361[0],&g_208},{&g_208,(void*)0},{&l_361[1],&l_361[0]},{&l_361[0],&g_208},{&l_361[1],&g_208}},{{&l_361[0],&l_361[0]},{&g_276,&l_361[0]},{&g_276,&g_276},{(void*)0,&l_361[1]},{&g_208,&g_208},{&g_208,&g_208},{&l_361[0],&g_208},{&l_361[1],(void*)0},{&l_361[1],&g_208}}};
int i, j, k;
(*l_543) ^= (safe_mul_func_uint16_t_u_u((safe_mod_func_uint64_t_u_u(((safe_div_func_int32_t_s_s((**g_445), (safe_unary_minus_func_int8_t_s((safe_mul_func_int8_t_s_s(0x9FL, 0xACL)))))) || (!((void*)0 != l_567))), (safe_add_func_uint8_t_u_u(((l_570 ^ 0x2B993456D0916189LL) < (l_402 = g_162.f4)), (l_573 == g_577))))), g_88.f1));
(*l_168) = g_579;
}
for (g_185.f0.f5 = 2; (g_185.f0.f5 >= 0); g_185.f0.f5 -= 1)
{ /* block id: 233 */
int32_t *l_580 = (void*)0;
int32_t *l_581 = (void*)0;
int32_t *l_582 = &l_313;
int32_t *l_583 = &l_313;
int32_t *l_584 = &l_313;
int32_t *l_585[9] = {&l_541,&g_267.f0.f1,&l_541,&l_541,&g_267.f0.f1,&l_541,&l_541,&g_267.f0.f1,&l_541};
int i;
--l_598;
if (g_107[g_185.f0.f5])
continue;
if (p_81)
continue;
(*l_574) = (*l_574);
}
(**l_539) = g_601;
return &g_38;
}
}
else
{ /* block id: 242 */
int64_t l_603 = 0x67E9A7AB968F1389LL;
int32_t l_604[1][9][5] = {{{0x26D370E5L,0x40475B19L,0x26D370E5L,0x26D370E5L,0x40475B19L},{0x40475B19L,0x26D370E5L,0x26D370E5L,0x40475B19L,0x26D370E5L},{0x40475B19L,0x40475B19L,0xAFB1A69BL,0x40475B19L,0x40475B19L},{0x26D370E5L,0x40475B19L,0x26D370E5L,0x26D370E5L,0x40475B19L},{0x40475B19L,0x26D370E5L,0x26D370E5L,0x40475B19L,0x26D370E5L},{0x40475B19L,0x40475B19L,0xAFB1A69BL,0x40475B19L,0x40475B19L},{0x26D370E5L,0x40475B19L,0x26D370E5L,0x26D370E5L,0x40475B19L},{0x40475B19L,0x26D370E5L,0x26D370E5L,0x40475B19L,0x26D370E5L},{0x40475B19L,0x40475B19L,0xAFB1A69BL,0x40475B19L,0x40475B19L}}};
uint32_t l_614 = 7UL;
uint8_t l_625 = 251UL;
uint8_t l_647 = 0x46L;
int16_t l_651 = 0xC71CL;
uint32_t *l_667 = (void*)0;
uint32_t *l_668 = (void*)0;
uint32_t *l_669[8] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
int8_t *l_679 = &g_312;
uint8_t *l_680[10][4][6] = {{{&g_185.f4,&g_188.f4,&l_647,(void*)0,(void*)0,&g_188.f4},{&g_185.f4,(void*)0,&l_237[2][1][0],(void*)0,&g_188.f4,&g_185.f4},{(void*)0,&l_625,&g_626,&l_247[1],&l_237[2][1][0],(void*)0},{(void*)0,&l_647,&g_188.f4,&l_237[3][0][8],&l_237[5][1][3],(void*)0}},{{(void*)0,&g_188.f4,&g_626,(void*)0,&g_188.f4,&g_185.f4},{&l_133,(void*)0,&l_237[2][1][0],&l_237[5][0][4],&l_647,&g_188.f4},{&l_247[1],&g_188.f4,&l_647,(void*)0,&g_188.f4,&g_185.f4},{&l_247[1],&l_247[0],&l_247[0],&l_237[5][0][4],&l_247[0],&l_247[0]}},{{&l_133,&l_647,&l_625,(void*)0,&l_247[0],&l_237[2][1][0]},{(void*)0,&l_625,(void*)0,&l_237[3][0][8],(void*)0,&l_247[0]},{(void*)0,&l_625,&l_647,&l_247[1],&l_247[0],&l_647},{(void*)0,&l_647,&l_625,(void*)0,&l_247[0],(void*)0}},{{&g_185.f4,&l_247[0],&g_185.f4,(void*)0,&g_188.f4,&l_625},{&g_185.f4,&g_188.f4,&g_185.f4,&l_247[1],&l_647,(void*)0},{(void*)0,(void*)0,&l_625,&l_133,&g_188.f4,&l_647},{&l_133,&g_188.f4,&l_647,&g_626,&l_237[5][1][3],&l_247[0]}},{{(void*)0,&l_647,(void*)0,&g_626,&l_237[2][1][0],&l_237[2][1][0]},{&l_133,&l_625,&l_625,&l_133,&g_188.f4,&l_247[0]},{(void*)0,(void*)0,&l_247[0],&l_247[1],(void*)0,(void*)0},{(void*)0,&l_237[2][0][4],&l_237[9][0][4],(void*)0,&g_188.f4,&g_185.f4}},{{(void*)0,&l_237[7][1][7],&l_625,&l_625,&g_188.f4,&l_647},{(void*)0,&l_625,&g_185.f4,&l_247[0],&l_625,&l_133},{&l_237[2][1][0],&g_185.f4,&g_188.f4,&l_647,&l_247[0],&l_133},{(void*)0,&g_185.f4,&g_185.f4,&l_237[2][1][0],&g_185.f4,&l_647}},{{&l_247[0],&l_237[2][1][0],&l_625,&g_626,&l_237[9][0][4],&g_185.f4},{&l_647,&g_188.f4,&l_237[9][0][4],&g_188.f4,&l_237[2][0][4],(void*)0},{&l_647,(void*)0,&l_237[7][0][8],&g_626,&l_237[7][0][8],(void*)0},{&l_247[0],&l_237[9][0][4],&l_625,&l_237[2][1][0],(void*)0,&l_625}},{{(void*)0,&g_188.f4,&g_188.f4,&l_647,&l_133,&l_237[7][0][8]},{&l_237[2][1][0],&g_188.f4,&g_185.f4,&l_247[0],(void*)0,&g_185.f4},{(void*)0,&l_237[9][0][4],&g_188.f4,&l_625,&l_237[7][0][8],&l_237[2][1][0]},{(void*)0,(void*)0,(void*)0,(void*)0,&l_237[2][0][4],&g_188.f4}},{{(void*)0,&g_188.f4,(void*)0,&l_647,&l_237[9][0][4],&l_237[2][1][0]},{&l_237[5][1][3],&l_237[2][1][0],&g_188.f4,&l_625,&g_185.f4,&g_185.f4},{&l_625,&g_185.f4,&g_185.f4,&g_185.f4,&l_247[0],&l_237[7][0][8]},{&l_625,&g_185.f4,&g_188.f4,&g_185.f4,&l_625,&l_625}},{{&l_625,&l_625,&l_625,&l_625,&g_188.f4,(void*)0},{&l_237[5][1][3],&l_237[7][1][7],&l_237[7][0][8],&l_647,&g_188.f4,(void*)0},{(void*)0,&l_237[2][0][4],&l_237[9][0][4],(void*)0,&g_188.f4,&g_185.f4},{(void*)0,&l_237[7][1][7],&l_625,&l_625,&g_188.f4,&l_647}}};
int32_t *l_681 = &g_267.f0.f1;
int i, j, k;
if ((7L || (g_602[0][0] , (1L <= l_603))))
{ /* block id: 243 */
int64_t l_607 = 0xC76516F5BABD9F51LL;
int32_t l_608 = 0x7B4181C5L;
int32_t l_609 = (-1L);
int32_t l_610[5][3][8] = {{{(-6L),(-6L),0x882ABB10L,1L,0x6EC9C705L,8L,(-1L),0x410D1626L},{0x5985E658L,(-1L),1L,(-6L),1L,(-1L),0x5985E658L,0x410D1626L},{(-1L),8L,0x6EC9C705L,1L,0x882ABB10L,(-6L),(-6L),0x882ABB10L}},{{0xD19D0CDDL,0x5985E658L,0x5985E658L,0xD19D0CDDL,0x882ABB10L,1L,0x410D1626L,(-6L)},{(-1L),(-6L),(-1L),0x882ABB10L,1L,0x882ABB10L,(-1L),(-6L)},{0x5985E658L,(-6L),(-6L),(-1L),0x6EC9C705L,1L,1L,1L}},{{(-6L),0x5985E658L,8L,8L,0x5985E658L,(-6L),1L,1L},{0x410D1626L,8L,(-6L),1L,(-1L),(-1L),(-1L),(-6L)},{8L,1L,8L,(-6L),0x882ABB10L,0x5985E658L,(-1L),0x410D1626L}},{{1L,0x882ABB10L,0xD19D0CDDL,0x5985E658L,0x5985E658L,0xD19D0CDDL,0x882ABB10L,1L},{1L,(-6L),1L,8L,0x882ABB10L,0x6EC9C705L,0xD19D0CDDL,0x6EC9C705L},{8L,(-1L),0x410D1626L,(-1L),8L,0x6EC9C705L,1L,0x882ABB10L}},{{(-1L),(-6L),(-1L),(-6L),0xD19D0CDDL,0xD19D0CDDL,(-6L),(-1L)},{0x882ABB10L,0x882ABB10L,(-1L),1L,1L,0x5985E658L,1L,(-1L)},{0xD19D0CDDL,1L,0x410D1626L,0x882ABB10L,0x410D1626L,1L,0xD19D0CDDL,(-1L)}}};
int i, j, k;
if ((0xF8L >= (g_310 = g_461.f4)))
{ /* block id: 245 */
return p_82;
}
else
{ /* block id: 247 */
int32_t *l_605 = &g_185.f0.f1;
int32_t *l_606[7];
int i;
for (i = 0; i < 7; i++)
l_606[i] = &g_28;
l_611--;
}
l_614++;
}
else
{ /* block id: 251 */
int8_t *l_648 = &l_371;
int16_t *l_649 = &g_650;
int32_t *l_652 = (void*)0;
int32_t *l_653 = &l_594;
int32_t *l_654 = (void*)0;
int32_t *l_655 = &l_158;
int32_t *l_656 = &g_267.f0.f1;
int32_t *l_657 = (void*)0;
int32_t *l_658 = &l_604[0][4][3];
int32_t *l_659[10] = {&g_165.f1,&l_402,&g_165.f1,&l_499,&l_499,&g_165.f1,&l_402,&g_165.f1,&l_499,&l_499};
int i;
l_617 = &g_71;
l_402 ^= (safe_rshift_func_int16_t_s_s(((((safe_lshift_func_uint16_t_u_s((l_334 != ((g_626 = (safe_div_func_int16_t_s_s((l_625 = ((*l_517) &= g_88.f5)), (g_115.f5.f0 ^ p_81)))) != (safe_lshift_func_uint16_t_u_u((safe_add_func_int64_t_s_s(((safe_unary_minus_func_int16_t_s(((safe_lshift_func_int8_t_s_u((((safe_add_func_uint64_t_u_u((safe_unary_minus_func_int16_t_s(((*l_649) = (g_449 = (((safe_lshift_func_uint8_t_u_u(((safe_rshift_func_int8_t_s_s(g_601.f0, 1)) == g_296.f0), 6)) || (safe_add_func_int16_t_s_s(l_604[0][0][1], ((g_291.f1 >= ((*l_648) = ((((safe_mod_func_uint16_t_u_u((g_38--), p_80)) ^ (*g_270)) == 0xF6L) , l_647))) , p_81)))) , 8L))))), (*l_170))) & 1UL) | g_295.f4), 0)) && l_651))) , 9L), p_83)), l_596[1])))), g_601.f3)) >= l_334) > p_80) & g_267.f0.f1), p_83));
++g_660[4];
for (p_83 = 0; (p_83 <= 2); p_83 += 1)
{ /* block id: 264 */
(**l_447) = l_653;
l_604[0][0][4] ^= (*g_270);
}
}
(*l_681) &= (safe_mul_func_int8_t_s_s(g_267.f0.f3, (safe_mul_func_uint8_t_u_u(((&g_459 == ((g_188.f3--) , l_672)) < ((*l_170) = (safe_rshift_func_int16_t_s_u((((p_83 <= p_80) > (g_165.f2 = g_185.f5.f1.f4)) , (safe_lshift_func_uint8_t_u_s((safe_sub_func_int8_t_s_s(((*l_679) = (*l_121)), p_80)), 6))), (p_80 >= p_81))))), (***l_447)))));
}
}
return p_82;
}
else
{ /* block id: 277 */
int32_t *l_682[9][10][2];
int i, j, k;
for (i = 0; i < 9; i++)
{
for (j = 0; j < 10; j++)
{
for (k = 0; k < 2; k++)
l_682[i][j][k] = &l_126[1][3][0];
}
}
l_683++;
(*g_456) = l_304;
}
if (p_83)
{ /* block id: 281 */
int8_t *l_696 = &g_312;
int8_t l_697 = 0xB9L;
int32_t *l_712 = &g_28;
uint32_t l_737 = 0xCBEA7051L;
struct S4 **l_756 = &g_316;
struct S4 ***l_755[5][8] = {{&l_756,(void*)0,(void*)0,&l_756,&l_756,&l_756,&l_756,&l_756},{&l_756,(void*)0,(void*)0,&l_756,&l_756,&l_756,&l_756,&l_756},{&l_756,(void*)0,(void*)0,&l_756,&l_756,&l_756,&l_756,&l_756},{&l_756,(void*)0,(void*)0,&l_756,&l_756,&l_756,&l_756,&l_756},{&l_756,(void*)0,(void*)0,&l_756,&l_756,&l_756,&l_756,&l_756}};
struct S0 * const ***l_777 = &g_742;
const struct S6 *** const *l_794 = (void*)0;
const struct S6 *** const **l_793 = &l_794;
int32_t l_811 = 1L;
uint8_t l_814 = 0x8FL;
uint32_t l_871 = 0UL;
uint32_t l_882 = 0xB7FB94E1L;
int32_t *l_959 = &g_267.f0.f1;
int32_t *l_960[10] = {&g_267.f0.f1,&g_267.f0.f1,&g_267.f0.f1,&g_267.f0.f1,&g_267.f0.f1,&g_267.f0.f1,&g_267.f0.f1,&g_267.f0.f1,&g_267.f0.f1,&g_267.f0.f1};
int16_t l_961 = 0x17B7L;
int i, j;
if ((1L <= p_80))
{ /* block id: 282 */
int8_t l_698 = 0xE8L;
uint32_t l_709 = 0xB9D456FEL;
struct S5 *l_733 = &g_188;
int64_t l_741 = 1L;
struct S0 ***l_776[9][2][4] = {{{&l_567,&l_567,&l_567,&l_567},{&l_567,&l_567,(void*)0,&l_567}},{{(void*)0,&l_567,(void*)0,&l_567},{&l_567,&l_567,&l_567,&l_567}},{{&l_567,(void*)0,(void*)0,&l_567},{&l_567,&l_567,&l_567,&l_567}},{{&l_567,(void*)0,(void*)0,&l_567},{&l_567,&l_567,&l_567,(void*)0}},{{&l_567,&l_567,(void*)0,&l_567},{(void*)0,&l_567,(void*)0,&l_567}},{{&l_567,&l_567,&l_567,(void*)0},{&l_567,&l_567,&l_567,&l_567}},{{(void*)0,(void*)0,&l_567,&l_567},{(void*)0,&l_567,&l_567,&l_567}},{{(void*)0,(void*)0,&l_567,&l_567},{&l_567,&l_567,&l_567,&l_567}},{{&l_567,&l_567,(void*)0,&l_567},{(void*)0,&l_567,(void*)0,&l_567}}};
struct S0 ****l_775 = &l_776[5][0][0];
int32_t l_781 = (-1L);
uint64_t l_785[8][10] = {{18446744073709551614UL,18446744073709551613UL,18446744073709551608UL,1UL,18446744073709551615UL,18446744073709551608UL,18446744073709551608UL,18446744073709551615UL,1UL,18446744073709551608UL},{2UL,2UL,18446744073709551608UL,18446744073709551615UL,18446744073709551613UL,18446744073709551615UL,18446744073709551608UL,2UL,2UL,18446744073709551608UL},{1UL,18446744073709551615UL,18446744073709551608UL,18446744073709551608UL,18446744073709551615UL,1UL,18446744073709551608UL,1UL,18446744073709551615UL,18446744073709551608UL},{18446744073709551614UL,2UL,18446744073709551614UL,18446744073709551608UL,18446744073709551608UL,18446744073709551608UL,18446744073709551608UL,18446744073709551614UL,2UL,18446744073709551614UL},{18446744073709551614UL,1UL,2UL,18446744073709551615UL,2UL,1UL,18446744073709551614UL,18446744073709551614UL,1UL,2UL},{1UL,18446744073709551614UL,18446744073709551614UL,1UL,2UL,18446744073709551615UL,2UL,1UL,18446744073709551614UL,18446744073709551614UL},{2UL,18446744073709551614UL,18446744073709551608UL,18446744073709551608UL,18446744073709551608UL,18446744073709551608UL,18446744073709551614UL,2UL,18446744073709551614UL,18446744073709551608UL},{18446744073709551615UL,1UL,18446744073709551608UL,1UL,18446744073709551615UL,18446744073709551608UL,18446744073709551608UL,18446744073709551615UL,1UL,18446744073709551608UL}};
const int64_t *l_787[2][8][8] = {{{&l_361[1],&g_276,&g_208,&l_361[1],&g_208,&g_276,&l_361[1],&l_361[0]},{&g_208,&g_276,&l_361[1],&l_361[0],&l_361[0],&l_361[0],&l_361[0],&l_361[1]},{&l_741,&l_741,&g_276,&l_361[0],&l_361[0],&l_361[1],(void*)0,&l_361[1]},{&g_208,&l_361[1],&l_361[0],&l_361[1],&g_208,&l_741,&l_741,&l_361[1]},{&l_361[1],&l_361[0],(void*)0,&l_361[0],&l_361[0],(void*)0,&l_361[0],&l_361[1]},{&g_276,&l_741,(void*)0,&l_361[0],&l_741,&g_208,&l_741,&l_361[0]},{&l_361[0],&g_276,&l_361[0],&l_361[1],&l_361[0],&g_208,(void*)0,(void*)0},{(void*)0,&l_741,&g_276,&g_276,&l_741,(void*)0,&l_361[0],&l_741}},{{(void*)0,&l_361[0],&l_361[1],&l_741,&l_361[0],&l_741,&l_361[1],&l_361[0]},{&l_361[0],&l_361[1],&g_208,&l_741,&l_741,&l_361[1],&l_361[1],&l_741},{&g_276,&l_741,&l_741,&g_276,&l_361[0],&l_361[0],&l_361[1],(void*)0},{&l_361[1],&g_276,&g_208,&l_361[1],&g_208,&g_276,&l_361[1],&l_361[0]},{&g_208,&g_276,&l_361[1],&l_361[0],&l_361[0],&l_361[0],&l_361[0],&l_361[1]},{&l_741,&l_741,&g_276,&l_361[0],&l_361[0],&l_361[1],(void*)0,&l_361[1]},{&g_208,&g_276,&l_741,&g_276,(void*)0,&g_276,&l_361[1],&l_361[1]},{&g_276,&g_208,&l_361[0],&l_741,&l_741,&l_361[0],&g_208,&g_276}}};
const int64_t **l_786 = &l_787[1][1][0];
struct S3 ****l_791 = &l_573;
uint32_t l_792 = 4294967295UL;
struct S6 *****l_799[10][8][3] = {{{&l_462,(void*)0,&l_462},{&l_462,&l_462,(void*)0},{(void*)0,&l_462,(void*)0},{&l_462,&l_462,(void*)0},{(void*)0,(void*)0,(void*)0},{&l_462,&l_462,&l_462},{&l_462,(void*)0,(void*)0},{&l_462,(void*)0,(void*)0}},{{(void*)0,&l_462,(void*)0},{(void*)0,(void*)0,(void*)0},{&l_462,&l_462,(void*)0},{(void*)0,(void*)0,(void*)0},{&l_462,&l_462,(void*)0},{&l_462,(void*)0,(void*)0},{&l_462,(void*)0,&l_462},{&l_462,&l_462,(void*)0}},{{(void*)0,(void*)0,(void*)0},{&l_462,(void*)0,(void*)0},{&l_462,&l_462,(void*)0},{&l_462,&l_462,&l_462},{(void*)0,&l_462,(void*)0},{&l_462,&l_462,(void*)0},{&l_462,&l_462,&l_462},{&l_462,&l_462,&l_462}},{{&l_462,&l_462,&l_462},{(void*)0,&l_462,&l_462},{&l_462,&l_462,(void*)0},{(void*)0,&l_462,(void*)0},{(void*)0,&l_462,&l_462},{&l_462,&l_462,&l_462},{&l_462,&l_462,&l_462},{&l_462,&l_462,&l_462}},{{(void*)0,&l_462,&l_462},{&l_462,&l_462,&l_462},{(void*)0,(void*)0,&l_462},{&l_462,(void*)0,&l_462},{&l_462,&l_462,&l_462},{&l_462,(void*)0,&l_462},{&l_462,(void*)0,&l_462},{&l_462,&l_462,(void*)0}},{{&l_462,(void*)0,(void*)0},{(void*)0,&l_462,&l_462},{(void*)0,(void*)0,&l_462},{&l_462,&l_462,&l_462},{&l_462,(void*)0,&l_462},{&l_462,(void*)0,(void*)0},{&l_462,&l_462,(void*)0},{&l_462,(void*)0,&l_462}},{{&l_462,&l_462,(void*)0},{(void*)0,&l_462,(void*)0},{&l_462,&l_462,(void*)0},{(void*)0,(void*)0,(void*)0},{&l_462,&l_462,&l_462},{&l_462,(void*)0,(void*)0},{&l_462,(void*)0,(void*)0},{(void*)0,&l_462,(void*)0}},{{(void*)0,(void*)0,(void*)0},{&l_462,&l_462,(void*)0},{(void*)0,&l_462,&l_462},{&l_462,&l_462,&l_462},{&l_462,&l_462,&l_462},{&l_462,&l_462,&l_462},{(void*)0,&l_462,&l_462},{&l_462,&l_462,(void*)0}},{{(void*)0,&l_462,&l_462},{&l_462,&l_462,&l_462},{(void*)0,&l_462,&l_462},{&l_462,&l_462,&l_462},{(void*)0,&l_462,(void*)0},{&l_462,(void*)0,(void*)0},{&l_462,&l_462,&l_462},{&l_462,(void*)0,&l_462}},{{&l_462,&l_462,(void*)0},{&l_462,&l_462,&l_462},{(void*)0,(void*)0,&l_462},{&l_462,&l_462,(void*)0},{(void*)0,(void*)0,&l_462},{&l_462,&l_462,(void*)0},{&l_462,&l_462,&l_462},{&l_462,&l_462,(void*)0}}};
struct S7 *l_825[5] = {&g_826,&g_826,&g_826,&g_826,&g_826};
int32_t **l_846 = &l_712;
int i, j, k;
for (p_81 = 1; (p_81 >= 0); p_81 -= 1)
{ /* block id: 285 */
int32_t l_700 = 0xDF0044B4L;
const int16_t l_728 = (-7L);
int32_t l_739 = 0L;
volatile uint64_t ** volatile l_753[5] = {&g_751,&g_751,&g_751,&g_751,&g_751};
struct S0 * const ****l_778 = &l_777;
int64_t *l_779 = &l_361[0];
int16_t *l_780[6] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
struct S5 * const l_782 = &g_188;
int i;
if ((safe_div_func_uint64_t_u_u(((((-1L) <= (safe_mul_func_int8_t_s_s((*l_121), ((safe_rshift_func_int16_t_s_u((((safe_rshift_func_int16_t_s_s((g_694 , ((void*)0 != (*l_463))), 15)) , (g_695 , (void*)0)) == l_696), 0)) > 1L)))) < l_697) | l_698), p_83)))
{ /* block id: 286 */
int i;
(*g_270) |= (~((((l_700 > (safe_mul_func_uint8_t_u_u((*l_121), (p_80 & ((+(&g_142 != (void*)0)) ^ (~g_162.f5.f1.f1)))))) > (p_83 , (safe_div_func_int16_t_s_s((safe_mul_func_uint8_t_u_u(((((((l_709 &= p_83) , &g_459) == &g_459) ^ 0x914B0F63L) , (*l_121)) < p_80), (-9L))), 3L)))) ^ (*l_121)) | 0x947EE784L));
if (p_80)
continue;
for (g_185.f0.f2 = 0; (g_185.f0.f2 <= 6); g_185.f0.f2 += 1)
{ /* block id: 292 */
(*g_270) ^= p_81;
return &g_38;
}
}
else
{ /* block id: 296 */
uint16_t l_740[1];
struct S0 * const **l_749[10][7] = {{&g_743,&g_743,(void*)0,&g_743,&g_743,(void*)0,&g_743},{&g_743,&g_743,&g_743,&g_743,&g_743,&g_743,&g_743},{&g_743,&g_743,&g_743,&g_743,&g_743,&g_743,&g_743},{&g_743,(void*)0,&g_743,&g_743,&g_743,&g_743,&g_743},{&g_743,&g_743,&g_743,&g_743,&g_743,&g_743,(void*)0},{&g_743,&g_743,&g_743,&g_743,&g_743,&g_743,&g_743},{&g_743,&g_743,&g_743,&g_743,&g_743,&g_743,&g_743},{&g_743,&g_743,&g_743,&g_743,&g_743,&g_743,&g_743},{&g_743,&g_743,&g_743,&g_743,&g_743,&g_743,&g_743},{&g_743,&g_743,&g_743,&g_743,&g_743,&g_743,&g_743}};
int i, j;
for (i = 0; i < 1; i++)
l_740[i] = 0UL;
if ((safe_sub_func_int8_t_s_s((((void*)0 != l_712) , (0x9D3B8A36L < (safe_add_func_uint64_t_u_u(p_80, l_700)))), g_86.f0)))
{ /* block id: 297 */
uint64_t *l_729 = &l_93;
int16_t *l_734[8][4] = {{(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,&g_6[6][2],&g_449,&g_449},{(void*)0,(void*)0,(void*)0,&g_650},{&g_650,&g_650,&g_650,&g_650},{(void*)0,(void*)0,(void*)0,&g_449},{&g_449,&g_6[6][2],(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,&g_650},{&g_449,&g_6[6][2],(void*)0,&g_6[6][2]}};
int64_t *l_738[9] = {&l_361[0],&l_361[0],&l_361[0],&l_361[0],&l_361[0],&l_361[0],&l_361[0],&l_361[0],&l_361[0]};
struct S0 * const ***l_744 = (void*)0;
struct S0 * const ***l_745 = (void*)0;
struct S0 * const ***l_746 = &g_742;
struct S0 * const **l_748 = &g_743;
struct S0 * const ***l_747[3][6][4] = {{{&l_748,&l_748,&l_748,&l_748},{&l_748,&l_748,&l_748,&l_748},{&l_748,(void*)0,&l_748,&l_748},{&l_748,&l_748,&l_748,(void*)0},{(void*)0,&l_748,&l_748,(void*)0},{&l_748,&l_748,&l_748,&l_748}},{{&l_748,&l_748,&l_748,(void*)0},{&l_748,(void*)0,&l_748,(void*)0},{&l_748,&l_748,&l_748,&l_748},{&l_748,&l_748,(void*)0,(void*)0},{&l_748,&l_748,(void*)0,(void*)0},{&l_748,&l_748,(void*)0,&l_748}},{{&l_748,(void*)0,&l_748,&l_748},{&l_748,&l_748,&l_748,&l_748},{&l_748,&l_748,&l_748,&l_748},{&l_748,(void*)0,&l_748,&l_748},{&l_748,&l_748,&l_748,(void*)0},{(void*)0,&l_748,&l_748,(void*)0}}};
int i, j, k;
(*g_270) = (safe_div_func_int8_t_s_s((((g_717 = g_717) != (void*)0) & (((*l_712) = (((18446744073709551613UL | 0x41D01299774314A0LL) == g_238.f5) >= ((*l_729) = (safe_mod_func_int32_t_s_s((g_721 , (safe_div_func_uint8_t_u_u((safe_div_func_uint64_t_u_u(((*l_121) || ((safe_mod_func_int8_t_s_s(l_728, l_709)) , 18446744073709551607UL)), 0x45C803C385291259LL)), l_728))), g_291.f3))))) != (**g_445))), 0xFDL));
l_739 = (safe_mod_func_int16_t_s_s(((g_449 = ((g_369.f0 , g_732) , (l_733 != (**g_324)))) > ((~4294967295UL) , (~(((*l_121) || p_80) , (((l_700 = (l_737 & p_83)) , l_709) == 0xFD2848D8L))))), (*p_82)));
l_749[4][0] = (((0x6BL == ((*l_696) |= (l_740[0] | (*p_82)))) > l_741) , ((*l_746) = ((*l_575) , g_742)));
l_753[3] = g_750;
}
else
{ /* block id: 309 */
if (g_28)
goto lbl_754;
}
}
(*g_758) = l_755[0][6];
(*g_39) = ((&g_449 != &g_6[1][2]) || ((safe_mul_func_uint8_t_u_u((safe_rshift_func_int8_t_s_s(((*l_696) = ((safe_add_func_uint32_t_u_u((((safe_mul_func_uint8_t_u_u(0x9EL, (safe_rshift_func_int16_t_s_u(((l_781 = ((-2L) <= ((*l_712) = (g_322.f3 < (+(((safe_mod_func_int64_t_s_s(((*l_779) = ((((*l_121) , (((g_305.f0 | (((l_775 = g_774) == ((*l_778) = l_777)) ^ 0x80L)) != (-1L)) ^ l_741)) | g_188.f1) >= 0xFAL)), 0xF04853F4E2C7F53BLL)) & g_267.f0.f5) , (*l_121))))))) , p_83), 6)))) >= (*g_446)) || 9L), 0x6793BBC5L)) <= (*l_121))), p_83)), p_80)) , (*p_82)));
for (l_114 = 6; (l_114 >= 0); l_114 -= 1)
{ /* block id: 323 */
struct S5 **l_783[10][1][10] = {{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}},{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}},{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}},{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}},{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}},{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}},{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}},{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}},{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}},{{&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0,&l_733,(void*)0}}};
int i, j, k;
l_183 = l_782;
}
for (l_114 = 0; (l_114 <= 1); l_114 += 1)
{ /* block id: 328 */
(*g_39) &= (&g_626 == (void*)0);
if (l_785[3][9])
break;
l_786 = (void*)0;
for (g_650 = 1; (g_650 >= 0); g_650 -= 1)
{ /* block id: 334 */
(*l_121) ^= (-9L);
if (p_81)
continue;
if (p_83)
continue;
}
}
}
(*g_39) ^= ((((*l_791) = (g_225 , g_788)) == &l_574) < (l_792 != (l_793 != (((((p_80 , (safe_lshift_func_int16_t_s_u((g_296.f0 , (safe_mul_func_uint8_t_u_u(p_80, ((*l_696) ^= (p_81 || p_81))))), 11))) & p_81) | (*l_712)) == l_698) , l_799[1][7][1]))));
for (g_312 = 18; (g_312 != 4); g_312 = safe_sub_func_uint16_t_u_u(g_312, 2))
{ /* block id: 346 */
int32_t *l_807 = &g_188.f0.f1;
int32_t *l_808 = &l_403[1];
int32_t *l_809 = &l_126[0][7][0];
int32_t *l_810 = &g_188.f0.f1;
int32_t *l_812 = &g_721.f0.f1;
int32_t *l_813[8][10] = {{(void*)0,&l_114,&l_811,(void*)0,&g_185.f0.f1,&g_185.f0.f1,(void*)0,&l_811,&l_114,(void*)0},{&l_811,&g_602[0][0].f1,&l_114,&g_185.f0.f1,&g_602[0][0].f1,&g_185.f0.f1,&l_114,&l_811,&g_28,&g_28},{&g_185.f0.f1,&l_114,&g_602[0][0].f1,&l_811,&l_811,&g_602[0][0].f1,&l_114,&g_185.f0.f1,&g_602[0][0].f1,&g_185.f0.f1},{&l_811,&l_126[0][2][0],&g_40,&l_811,&g_40,&l_126[0][2][0],&l_811,&g_28,&g_28,&l_811},{&g_28,&g_185.f0.f1,&g_40,&g_40,&g_185.f0.f1,&g_28,&l_126[0][2][0],&g_185.f0.f1,&l_126[0][2][0],&g_28},{&l_114,&g_185.f0.f1,&g_602[0][0].f1,&g_185.f0.f1,&l_114,&g_602[0][0].f1,&l_811,&l_811,&g_602[0][0].f1,&l_114},{&l_114,&l_126[0][2][0],&l_126[0][2][0],&l_114,&g_40,&g_28,&l_114,&g_28,&g_40,&l_114},{&g_28,&l_114,&g_28,&g_40,&l_114,&l_126[0][2][0],&l_126[0][2][0],&l_114,&g_40,&g_28}};
struct S0 **l_852 = &g_459;
struct S6 *l_870[5];
int i, j;
for (i = 0; i < 5; i++)
l_870[i] = &g_295;
g_804 = l_802;
l_814--;
for (l_570 = (-17); (l_570 <= 33); l_570++)
{ /* block id: 351 */
(*l_712) = (*l_121);
for (l_697 = 1; (l_697 >= 0); l_697 -= 1)
{ /* block id: 355 */
struct S7 *l_824[7];
struct S7 **l_823[7][8] = {{&l_824[6],&l_824[6],&l_824[4],&l_824[2],(void*)0,&l_824[6],&l_824[6],&l_824[6]},{&l_824[4],&l_824[6],(void*)0,&l_824[6],&l_824[2],&l_824[6],(void*)0,&l_824[6]},{&l_824[6],&l_824[6],&l_824[6],&l_824[1],&l_824[6],&l_824[6],&l_824[6],&l_824[6]},{&l_824[6],&l_824[4],&l_824[1],&l_824[0],(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_824[0],&l_824[6],(void*)0,&l_824[6],&l_824[1],&l_824[1]},{&l_824[6],&l_824[6],(void*)0,(void*)0,&l_824[6],&l_824[6],(void*)0,(void*)0},{&l_824[6],&l_824[1],(void*)0,&l_824[6],&l_824[2],&l_824[5],(void*)0,&l_824[6]}};
int32_t *l_831 = &l_126[1][3][0];
uint32_t *l_848 = (void*)0;
int i, j;
for (i = 0; i < 7; i++)
l_824[i] = (void*)0;
g_829 = (g_827[4] = (((*p_82) = (safe_mod_func_uint16_t_u_u(l_247[l_697], (safe_rshift_func_int16_t_s_u(0xDD99L, 13))))) , (l_825[3] = &g_369)));
(*g_445) = l_831;
(*l_121) = (safe_div_func_uint8_t_u_u(l_785[3][9], ((safe_add_func_int8_t_s_s(p_83, 0x3CL)) , 0x61L)));
(*l_168) = (((((l_785[4][3] == (g_836 , g_837)) >= (safe_mul_func_int8_t_s_s((((safe_div_func_uint64_t_u_u(p_83, ((*g_270) | (safe_lshift_func_uint16_t_u_u((((safe_rshift_func_uint8_t_u_s(((void*)0 == l_846), 1)) < p_81) , (+(g_721.f0.f2 = p_80))), 7))))) >= 0xD8C8BC25CE51257ALL) >= p_80), g_267.f0.f5))) == g_295.f5) >= 4294967295UL) , g_849);
}
for (l_698 = 0; (l_698 <= (-1)); l_698 = safe_sub_func_int64_t_s_s(l_698, 9))
{ /* block id: 367 */
(*l_808) |= ((*p_82) | (((void*)0 == l_852) >= (safe_mod_func_int16_t_s_s((safe_div_func_int8_t_s_s((safe_sub_func_uint8_t_u_u(((safe_add_func_uint8_t_u_u(0x0FL, (*l_712))) & (*l_712)), (((**l_852) , (((safe_add_func_int8_t_s_s((safe_mul_func_uint8_t_u_u((safe_div_func_int64_t_s_s((safe_mul_func_int8_t_s_s(p_83, 0x9FL)), (*l_712))), 1UL)), p_81)) == g_869) || 1UL)) && 18446744073709551610UL))), g_602[0][0].f4)), p_81))));
(*g_289) = (((**l_846) = p_80) , l_870[0]);
}
}
}
l_871--;
}
else
{ /* block id: 375 */
uint16_t l_887 = 65533UL;
struct S6 ****l_894 = &l_463;
int8_t **l_909[9] = {(void*)0,&l_696,(void*)0,(void*)0,&l_696,(void*)0,(void*)0,&l_696,(void*)0};
int i;
if (p_81)
{ /* block id: 376 */
int16_t l_879 = 0x6DB5L;
int32_t l_880 = 0x51EC856DL;
int32_t l_881 = 4L;
struct S6 ****l_898 = &l_463;
int8_t **l_907 = (void*)0;
lbl_920:
for (g_38 = (-23); (g_38 != 54); ++g_38)
{ /* block id: 379 */
int32_t *l_876 = &g_40;
int32_t *l_877 = &l_403[1];
int32_t *l_878[10][10][2] = {{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}},{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}},{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}},{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}},{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}},{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}},{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}},{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}},{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}},{{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1},{&g_721.f0.f1,&g_721.f0.f1},{&g_721.f0.f1,&g_165.f1}}};
int i, j, k;
l_882--;
}
for (l_114 = 0; (l_114 <= 9); ++l_114)
{ /* block id: 384 */
struct S6 *****l_892 = (void*)0;
struct S6 *****l_893 = &g_891;
struct S6 *****l_895 = &l_462;
struct S6 ****l_897 = &l_463;
struct S6 *****l_896[3];
struct S5 *l_911 = &g_188;
struct S1 ***l_918[1][5][6] = {{{&l_803[0][1][0],(void*)0,&g_805,(void*)0,&l_803[0][1][0],&l_803[0][3][1]},{(void*)0,&l_803[0][1][0],&l_803[0][3][1],&l_803[0][3][1],&l_803[0][1][0],(void*)0},{&l_803[0][3][1],(void*)0,&g_805,&l_803[0][1][0],&g_805,(void*)0},{&g_805,&l_803[0][3][1],&l_803[0][3][1],&g_805,&g_805,&l_803[0][3][1]},{&g_805,&g_805,&g_805,&l_803[0][1][0],(void*)0,&l_803[0][1][0]}}};
int i, j, k;
for (i = 0; i < 3; i++)
l_896[i] = &l_897;
l_887++;
if ((6UL == ((l_898 = ((*l_895) = (l_894 = ((*l_893) = ((g_890 , 1UL) , g_891))))) == g_899)))
{ /* block id: 390 */
struct S3 *l_906 = &g_86;
(**g_788) = l_906;
return p_82;
}
else
{ /* block id: 393 */
int8_t ***l_908 = (void*)0;
struct S5 *l_910 = &g_185;
int32_t l_919 = 0x531DA797L;
l_909[4] = l_907;
(*l_712) = ((l_910 != l_911) && (safe_lshift_func_uint16_t_u_s((safe_sub_func_int64_t_s_s(((safe_add_func_uint8_t_u_u(((((void*)0 != l_918[0][0][4]) == 65535UL) < (l_919 = ((((*l_121) ^= (*l_712)) != p_83) == 0xD647L))), p_81)) > 1UL), 0x856FB010073ABEA4LL)), g_752[2])));
}
if (g_890.f3)
goto lbl_920;
(*g_445) = (void*)0;
}
}
else
{ /* block id: 402 */
(*g_270) ^= 4L;
}
for (l_529 = 0; (l_529 <= 3); l_529 += 1)
{ /* block id: 407 */
uint8_t l_921[4][7][9] = {{{0UL,0xE1L,9UL,0x41L,0xB7L,0x74L,255UL,0UL,0xBEL},{0x9FL,255UL,0UL,0xD8L,0x54L,0x16L,0xEBL,0x4BL,0xEBL},{247UL,0x62L,255UL,255UL,0x62L,247UL,0x70L,9UL,1UL},{1UL,255UL,247UL,1UL,253UL,1UL,252UL,1UL,0UL},{0x85L,0xCFL,0xE1L,0x41L,247UL,0x0DL,0x70L,254UL,0x85L},{9UL,1UL,1UL,0x16L,1UL,1UL,9UL,0x00L,0xEBL},{0x41L,0x0EL,0x70L,255UL,1UL,255UL,0UL,0x0DL,0x0EL}},{{0UL,251UL,247UL,0x5DL,0x77L,0x37L,0xE2L,0x00L,253UL},{254UL,248UL,0x74L,249UL,249UL,0x74L,248UL,254UL,255UL},{0xEBL,0x16L,0x54L,0xD8L,0UL,255UL,0x9FL,1UL,0UL},{0UL,0x62L,248UL,255UL,0x85L,1UL,0xBAL,9UL,255UL},{253UL,0x08L,253UL,1UL,0xFAL,1UL,253UL,0x08L,253UL},{0x62L,255UL,0xCFL,0x41L,254UL,9UL,253UL,255UL,0x0EL},{0UL,1UL,0x9FL,255UL,0UL,0xD8L,0x54L,0x16L,0xEBL}},{{0x62L,0x85L,253UL,0UL,0xBEL,0xBEL,0UL,253UL,0x85L},{253UL,0x00L,0xE2L,0x37L,0x77L,0x5DL,247UL,251UL,0UL},{0UL,255UL,0x74L,0xB7L,0x41L,9UL,0xE1L,0UL,1UL},{0xEBL,0x00L,9UL,1UL,1UL,0x16L,1UL,1UL,9UL},{254UL,0x85L,0xE1L,255UL,0xD9L,1UL,0x70L,0xBAL,254UL},{0UL,1UL,252UL,1UL,253UL,1UL,247UL,255UL,1UL},{0x41L,255UL,0xE1L,0x0EL,1UL,0x74L,0x74L,1UL,0x0EL}},{{9UL,0x08L,9UL,0x5DL,0x9FL,0x4BL,0x54L,0x00L,1UL},{0x85L,0x62L,0x74L,0xE1L,0xBEL,255UL,248UL,0xBAL,0x62L},{1UL,0x16L,0xE2L,0x5DL,247UL,255UL,253UL,0x00L,255UL},{255UL,255UL,0x0DL,0x62L,0xD9L,0x74L,0UL,255UL,1UL},{0x71L,0xEFL,1UL,0xD8L,0xEBL,0x5DL,1UL,253UL,0x71L},{1UL,0x62L,0UL,0UL,0xD9L,255UL,0x0DL,0x0DL,255UL},{255UL,255UL,252UL,255UL,255UL,0x4BL,253UL,0xD8L,0UL}}};
int32_t l_922 = 0x11885665L;
struct S2 **l_927 = (void*)0;
int i, j, k;
(*g_445) = &l_114;
l_922 &= l_921[3][0][4];
(**g_289) = (*l_168);
if (p_83)
break;
for (p_83 = 1; (p_83 <= 8); p_83 += 1)
{ /* block id: 414 */
uint32_t l_924 = 3UL;
for (g_626 = 0; (g_626 <= 5); g_626 += 1)
{ /* block id: 417 */
int16_t l_923 = 0L;
l_924++;
(*g_928) = l_927;
}
for (g_836.f2 = 0; (g_836.f2 <= 3); g_836.f2 += 1)
{ /* block id: 423 */
int i, j, k;
if (p_80)
break;
if (p_81)
break;
return g_718[(l_529 + 1)][(g_836.f2 + 1)][g_836.f2];
}
}
}
}
for (g_40 = 0; (g_40 <= (-18)); --g_40)
{ /* block id: 433 */
const struct S0 *l_934 = &g_935[0];
const struct S0 **l_933 = &l_934;
uint64_t *l_940 = (void*)0;
uint64_t *l_941 = &l_570;
int16_t *l_948[5][10][5] = {{{&g_6[6][2],&g_449,&g_6[3][2],&g_449,&g_650},{(void*)0,&g_449,&g_650,&g_6[6][2],&g_650},{&g_6[6][2],&g_6[6][2],&g_6[0][0],&g_449,&g_6[6][2]},{&g_6[4][2],&g_6[6][2],&g_650,&g_6[6][2],&g_6[4][2]},{&g_650,&g_6[3][2],&g_6[6][0],&g_449,&g_449},{&g_650,&g_6[6][2],&g_650,&g_449,(void*)0},{&g_6[6][2],&g_6[6][2],&g_449,&g_6[3][2],&g_449},{&g_6[4][2],&g_449,&g_650,&g_6[5][0],&g_6[4][2]},{&g_449,&g_449,&g_449,&g_449,&g_6[6][2]},{(void*)0,&g_6[5][0],&g_650,&g_650,&g_650}},{{&g_449,&g_6[6][2],&g_6[6][0],&g_449,&g_650},{&g_6[4][2],&g_650,&g_650,&g_650,&g_6[4][2]},{&g_6[6][2],&g_6[3][2],&g_6[0][0],&g_449,&g_6[6][2]},{&g_650,&g_650,&g_650,&g_6[5][0],(void*)0},{&g_650,&g_6[6][2],&g_6[3][2],&g_6[3][2],&g_6[6][2]},{&g_6[4][2],&g_6[5][0],&g_650,&g_449,&g_6[4][2]},{&g_6[6][2],&g_449,&g_6[3][2],&g_449,&g_650},{(void*)0,&g_449,&g_650,&g_6[6][2],&g_650},{&g_6[6][2],&g_6[6][2],&g_6[0][0],&g_449,&g_6[6][2]},{&g_6[4][2],&g_6[6][2],&g_650,&g_6[6][2],&g_6[4][2]}},{{&g_650,&g_6[3][2],&g_6[6][0],&g_449,&g_449},{&g_650,&g_6[6][2],&g_650,&g_449,(void*)0},{&g_6[6][2],&g_6[6][2],&g_449,&g_6[3][2],&g_449},{&g_6[4][2],&g_449,&g_650,&g_6[5][0],&g_6[4][2]},{&g_449,&g_449,&g_449,&g_449,&g_6[6][2]},{(void*)0,&g_6[5][0],&g_650,&g_650,&g_650},{&g_449,&g_6[6][2],&g_6[6][0],&g_449,&g_650},{&g_6[4][2],&g_650,&g_650,&g_650,&g_6[4][2]},{&g_6[6][2],&g_6[3][2],&g_6[0][0],&g_449,&g_6[6][2]},{&g_650,&g_650,&g_650,&g_6[5][0],(void*)0}},{{&g_650,&g_6[6][2],&g_6[3][2],&g_6[3][2],&g_6[6][2]},{&g_6[4][2],&g_6[5][0],&g_650,&g_449,&g_6[4][2]},{&g_6[6][2],&g_449,&g_6[3][2],&g_449,&g_650},{(void*)0,&g_449,&g_650,&g_6[6][2],&g_650},{&g_6[6][2],&g_6[6][2],&g_6[0][0],&g_449,&g_6[6][2]},{&g_6[4][2],&g_6[6][2],&g_650,&g_6[6][2],&g_6[4][2]},{&g_650,&g_6[3][2],&g_6[6][0],&g_449,&g_449},{&g_650,&g_6[6][2],&g_650,&g_449,(void*)0},{&g_6[6][2],&g_6[6][2],&g_449,&g_6[3][2],&g_449},{&g_6[4][2],&g_449,&g_650,&g_6[5][0],&g_6[4][2]}},{{&g_449,&g_449,&g_449,&g_449,&g_6[6][2]},{(void*)0,&g_6[5][0],&g_650,&g_650,&g_650},{&g_449,&g_6[6][2],&g_6[6][0],&g_449,&g_650},{&g_6[4][2],&g_650,&g_650,&g_650,&g_6[4][2]},{&g_6[6][2],&g_6[3][2],&g_6[0][0],&g_449,&g_6[6][2]},{&g_650,&g_650,&g_650,&g_6[5][0],(void*)0},{&g_650,&g_6[6][2],&g_6[3][2],&g_6[3][2],&g_6[6][2]},{&g_6[4][2],&g_6[5][0],&g_650,&g_449,&g_6[4][2]},{&g_6[6][2],&g_449,&g_6[3][2],&g_449,&g_650},{(void*)0,&g_449,&g_650,&g_6[6][2],&g_650}}};
struct S4 **** const l_956 = (void*)0;
int32_t l_958[2][4][8] = {{{0L,0L,4L,0xF77287CAL,4L,0L,0L,4L},{0x4378DA23L,4L,4L,0x4378DA23L,1L,0x4378DA23L,4L,4L},{4L,1L,0xF77287CAL,0xF77287CAL,1L,4L,1L,0xF77287CAL},{0x4378DA23L,1L,0x4378DA23L,4L,4L,0x4378DA23L,1L,0x4378DA23L}},{{0L,4L,0xF77287CAL,4L,0L,0L,4L,0xF77287CAL},{0L,0L,4L,0xF77287CAL,4L,0L,0L,4L},{0x4378DA23L,4L,4L,0x4378DA23L,1L,0x4378DA23L,4L,4L},{4L,1L,0xF77287CAL,0xF77287CAL,1L,4L,1L,0xF77287CAL}}};
int i, j, k;
(*g_289) = l_168;
(*g_270) |= (((*l_933) = (*l_567)) != (*g_743));
for (g_188.f0.f1 = 0; g_188.f0.f1 < 4; g_188.f0.f1 += 1)
{
g_784[g_188.f0.f1] = &l_183;
}
(*g_270) = ((((safe_rshift_func_uint16_t_u_s(9UL, 10)) , (safe_add_func_uint64_t_u_u((((*l_941)++) && (((*l_121) ^ (safe_div_func_int32_t_s_s((((((safe_mod_func_uint16_t_u_u(65534UL, (g_650 = p_80))) & 0x0BL) && g_461.f2) != ((!(safe_sub_func_int32_t_s_s((safe_mod_func_int16_t_s_s(g_836.f1, (safe_mul_func_uint16_t_u_u((((*l_696) ^= (((*p_82) ^= (*l_712)) > ((void*)0 != l_956))) ^ l_957[2][2][0]), (*l_712))))), 0x5B39F00AL))) , p_83)) <= g_188.f0.f1), p_81))) ^ p_80)), g_40))) != l_958[0][2][2]) != 9L);
}
--g_962[4];
}
else
{ /* block id: 445 */
int8_t l_978 = (-1L);
uint32_t *l_982 = &g_185.f3;
int32_t l_1015[8][8][4] = {{{0x4D8DC7DAL,1L,(-5L),7L},{0x730B8683L,(-1L),0xA267B340L,0xBBC09C8BL},{8L,0xA267B340L,(-1L),(-3L)},{7L,(-5L),0x9C90AD60L,(-1L)},{0xDFFE0667L,0xB074B25BL,(-1L),(-2L)},{(-9L),0xAD5935DFL,0x9EAC3C81L,0x1944EFFFL},{(-1L),0x46C7CE9FL,(-1L),(-9L)},{1L,0L,(-1L),(-1L)}},{{0xFCE00E0FL,8L,(-7L),(-7L)},{0x1944EFFFL,0x1944EFFFL,0x4D8DC7DAL,(-5L)},{(-1L),0x35E4A847L,(-2L),0x7B591F0BL},{0x149470E4L,0x730B8683L,(-8L),(-2L)},{(-1L),0x730B8683L,1L,0x7B591F0BL},{0x730B8683L,0x35E4A847L,0x7847BE73L,(-5L)},{0L,0x1944EFFFL,(-1L),(-7L)},{0xA1D7CBACL,8L,0x149470E4L,(-1L)}},{{9L,0x7B591F0BL,0x9EAC3C81L,(-5L)},{7L,(-5L),1L,0x4D8DC7DAL},{0xBBC09C8BL,0xDFFE0667L,0L,(-1L)},{(-3L),0x4AF4171FL,0xFCE00E0FL,1L},{(-1L),0xB074B25BL,0x92E24C3CL,(-1L)},{(-2L),(-1L),(-1L),(-1L)},{0x1944EFFFL,0xFCE00E0FL,(-1L),6L},{(-9L),0x35E4A847L,0xAD5935DFL,(-1L)}},{{(-3L),7L,(-8L),0xAD5935DFL},{(-5L),0xB7960E17L,(-5L),0x7B591F0BL},{0L,(-1L),0x9EAC3C81L,9L},{0L,0xFCE00E0FL,0xE716594EL,(-1L)},{(-1L),8L,0xE716594EL,0x78C32E6EL},{0L,0x46C7CE9FL,0x9EAC3C81L,1L},{0L,0L,(-5L),0x4D8DC7DAL},{(-5L),0x4D8DC7DAL,(-8L),0x92E24C3CL}},{{(-3L),(-5L),0xAD5935DFL,0xBBC09C8BL},{(-9L),0xB074B25BL,(-1L),0x78C32E6EL},{0x1944EFFFL,(-3L),(-1L),(-7L)},{(-2L),0xD49023C2L,0x92E24C3CL,6L},{(-1L),(-1L),0xFCE00E0FL,0xC624E627L},{(-3L),0x730B8683L,0L,0xFCE00E0FL},{0xBBC09C8BL,0xB7960E17L,1L,(-1L)},{7L,0xA267B340L,0x9EAC3C81L,(-5L)}},{{9L,0xD49023C2L,0x149470E4L,(-1L)},{0xA1D7CBACL,(-1L),(-1L),0xA1D7CBACL},{0L,0x7B591F0BL,0x7847BE73L,0xBBC09C8BL},{0x730B8683L,0L,1L,(-1L)},{(-1L),1L,(-8L),(-1L)},{0x149470E4L,0L,(-2L),0xBBC09C8BL},{(-1L),0x7B591F0BL,0x4D8DC7DAL,0xA1D7CBACL},{0x1944EFFFL,(-1L),(-7L),(-1L)}},{{0xFCE00E0FL,0xD49023C2L,(-1L),(-5L)},{(-1L),0xA267B340L,0xFCE00E0FL,(-1L)},{0x149470E4L,0xB7960E17L,0xBB2A43CBL,0xFCE00E0FL},{(-5L),0x730B8683L,0xBBC09C8BL,0xC624E627L},{7L,(-1L),0x7847BE73L,6L},{6L,0xD49023C2L,0xE716594EL,(-7L)},{(-1L),(-3L),(-1L),0x78C32E6EL},{(-1L),0x4AF4171FL,0L,(-1L)}},{{(-5L),0xA06002BCL,(-1L),0x40B8A5FFL},{(-1L),0L,1L,0L},{0xA1D7CBACL,0x14035EAEL,0xDFFE0667L,0x35E4A847L},{0xBBC09C8BL,(-5L),0L,0xD49023C2L},{(-1L),(-1L),0xE716594EL,0x149470E4L},{(-1L),0x92E24C3CL,0L,(-1L)},{0xBBC09C8BL,0x149470E4L,0xDFFE0667L,0x9C90AD60L},{0xA1D7CBACL,0L,1L,0xDFFE0667L}}};
struct S5 **l_1017 = (void*)0;
struct S5 ***l_1016 = &l_1017;
int32_t l_1019 = 3L;
struct S6 *l_1035 = &g_1036;
int32_t **l_1046 = &g_39;
struct S6 *****l_1107 = &g_891;
const struct S2 *l_1136 = &g_369.f0;
const struct S2 **l_1135 = &l_1136;
int64_t *l_1181 = &g_276;
int32_t l_1200 = 0xB00DE4BCL;
uint16_t l_1203 = 0x94BCL;
struct S7 **l_1232 = &g_829;
uint32_t l_1319 = 0xA96A208FL;
int i, j, k;
if (p_83)
{ /* block id: 446 */
uint8_t l_979 = 0xB9L;
uint16_t *l_986 = &g_107[0];
struct S6 *l_988 = (void*)0;
struct S0 **l_1049 = &g_459;
int32_t l_1056 = 0xC55DCA42L;
int32_t l_1057 = 0xF00A9555L;
int32_t l_1058[10][9] = {{(-3L),(-9L),(-3L),0x1B4350EDL,1L,0x348AE4D8L,(-7L),0x0A16FF27L,0x0A16FF27L},{0x216993D3L,(-9L),0x0A16FF27L,1L,0x0A16FF27L,(-9L),0x216993D3L,(-7L),0x69A84A63L},{(-7L),0x348AE4D8L,1L,0x1B4350EDL,(-3L),(-9L),(-3L),0x1B4350EDL,1L},{1L,1L,0xE0BA37B9L,(-9L),0x69A84A63L,0x348AE4D8L,(-9L),(-7L),(-9L)},{1L,0x216993D3L,0x348AE4D8L,0x348AE4D8L,0x216993D3L,1L,(-9L),0x0A16FF27L,0xC632C24CL},{(-7L),0x1B4350EDL,0xE0BA37B9L,0xC632C24CL,0x216993D3L,0x216993D3L,0xC632C24CL,0xE0BA37B9L,0x1B4350EDL},{0x216993D3L,0x6BEA8864L,1L,(-3L),0x69A84A63L,0x1B4350EDL,(-9L),(-9L),0x1B4350EDL},{(-3L),0xE0BA37B9L,0x0A16FF27L,0xE0BA37B9L,(-3L),0x6BEA8864L,(-9L),1L,0xC632C24CL},{(-9L),0x6BEA8864L,(-3L),0xE0BA37B9L,0x0A16FF27L,0xE0BA37B9L,(-3L),0x6BEA8864L,(-9L)},{(-9L),0x1B4350EDL,0x69A84A63L,(-3L),1L,0x6BEA8864L,0x216993D3L,0x6BEA8864L,1L}};
int8_t l_1094 = 0L;
uint64_t l_1104[1][4][8] = {{{8UL,0x24853C268103C5E8LL,0x24853C268103C5E8LL,8UL,1UL,18446744073709551607UL,18446744073709551615UL,0x03911E8B0EECC9F2LL},{0x3CF259D7CA23D9E1LL,18446744073709551606UL,18446744073709551613UL,1UL,18446744073709551606UL,1UL,18446744073709551613UL,18446744073709551606UL},{0x24853C268103C5E8LL,18446744073709551606UL,0x03911E8B0EECC9F2LL,18446744073709551613UL,18446744073709551615UL,18446744073709551607UL,1UL,1UL},{0x03911E8B0EECC9F2LL,0x24853C268103C5E8LL,0UL,0UL,0x24853C268103C5E8LL,0x03911E8B0EECC9F2LL,1UL,18446744073709551606UL}}};
uint32_t l_1160 = 8UL;
int32_t *l_1164[7][4][7] = {{{&l_1015[1][1][3],(void*)0,&l_126[1][0][0],(void*)0,&g_28,&l_403[1],&g_267.f0.f1},{&l_1015[1][1][3],&l_403[1],&l_1011,&g_267.f0.f1,&g_40,&l_1057,&g_40},{&g_836.f1,&l_403[1],&g_836.f1,&g_836.f1,&l_403[1],&g_836.f1,&g_40},{&l_403[1],&l_126[1][3][0],&l_114,&g_721.f0.f1,&g_185.f0.f1,&l_114,&g_28}},{{&g_721.f0.f1,&g_836.f1,&g_890.f0.f1,&g_267.f0.f1,&l_403[1],&l_403[1],(void*)0},{&l_1057,&l_403[1],&g_721.f0.f1,&g_188.f0.f1,&g_602[0][0].f1,(void*)0,&l_126[1][3][0]},{&g_267.f0.f1,&g_40,&l_403[1],&l_403[1],(void*)0,(void*)0,&l_1057},{&g_602[0][0].f1,&g_991.f0.f1,(void*)0,&l_1011,&l_126[1][0][0],&l_1057,&g_267.f0.f1}},{{&g_836.f1,&l_1058[5][6],(void*)0,&l_403[1],&l_1011,&g_40,&l_1015[1][7][0]},{&g_40,&g_836.f1,&l_403[1],&g_836.f1,&g_836.f1,&l_403[1],&g_836.f1},{&g_165.f1,&l_403[1],&g_721.f0.f1,&g_267.f0.f1,&l_114,&g_188.f0.f1,&l_403[1]},{&l_126[1][0][0],&g_1139.f0.f1,&l_126[1][3][0],(void*)0,&g_890.f0.f1,&g_40,&g_40}},{{&g_267.f0.f1,&g_890.f0.f1,&g_28,&g_267.f0.f1,&l_1057,&g_721.f0.f1,&g_836.f1},{&l_403[1],&g_40,&l_126[1][0][0],&g_836.f1,&g_836.f1,&g_836.f1,&l_1011},{(void*)0,&g_1139.f0.f1,&l_1057,&l_403[1],&l_403[1],(void*)0,(void*)0},{&g_40,&g_40,&g_28,&l_1011,&l_403[1],&g_40,&g_890.f0.f1}},{{&l_403[1],&l_403[1],&g_40,&l_403[1],&g_836.f1,&g_836.f1,&l_403[1]},{(void*)0,&l_1058[5][6],(void*)0,&g_188.f0.f1,&l_1057,&l_1015[1][7][0],&l_403[1]},{&g_1139.f0.f1,&l_1011,&g_721.f0.f1,&g_836.f1,&g_890.f0.f1,&g_267.f0.f1,&l_403[1]},{&l_403[1],&l_114,&l_126[1][0][0],&g_602[0][0].f1,&l_114,&l_1015[1][7][0],&g_267.f0.f1}},{{&l_114,&l_403[1],&g_40,&l_126[1][0][0],&g_836.f1,&g_836.f1,&g_836.f1},{&g_836.f1,&l_403[1],&g_185.f0.f1,&g_836.f1,&l_1011,&g_40,(void*)0},{&l_403[1],&l_1057,&g_721.f0.f1,&g_721.f0.f1,&l_126[1][0][0],(void*)0,(void*)0},{&l_114,&g_40,&g_188.f0.f1,&l_1057,(void*)0,&g_836.f1,&g_836.f1}},{{&g_602[0][0].f1,&l_1011,(void*)0,&l_1011,&g_602[0][0].f1,&g_721.f0.f1,&g_267.f0.f1},{&g_165.f1,&g_721.f0.f1,(void*)0,&g_40,&g_991.f0.f1,&g_40,&l_403[1]},{&l_403[1],&g_836.f1,&g_188.f0.f1,&g_40,&g_836.f1,&g_188.f0.f1,&l_403[1]},{&g_165.f1,&g_40,&g_267.f0.f1,&g_267.f0.f1,&g_40,&l_403[1],&l_403[1]}}};
struct S3 *l_1178 = &g_576;
int i, j, k;
if (p_81)
{ /* block id: 447 */
struct S4 *l_989 = &g_267;
int32_t l_1009 = 0xB97B139DL;
int16_t l_1018 = 0xA7ACL;
int64_t l_1051 = 0x8E778D85B1E0490DLL;
int32_t l_1052 = 0x3DF9C78BL;
int32_t l_1054[9] = {2L,2L,2L,2L,2L,2L,2L,2L,2L};
int16_t *l_1133 = (void*)0;
int16_t *l_1134[4] = {&l_1018,&l_1018,&l_1018,&l_1018};
int32_t *l_1151 = &g_188.f0.f1;
int32_t *l_1152 = &g_188.f0.f1;
int32_t *l_1153 = &g_40;
int32_t *l_1154 = &l_1009;
int32_t *l_1155 = &l_126[1][3][0];
int32_t *l_1156 = &g_721.f0.f1;
int32_t *l_1157 = (void*)0;
int32_t *l_1158 = (void*)0;
int32_t *l_1159[1];
int i;
for (i = 0; i < 1; i++)
l_1159[i] = &l_1015[3][6][3];
if ((((!(*l_121)) ^ (-8L)) | p_83))
{ /* block id: 448 */
const uint32_t *l_981 = &g_185.f3;
struct S1 *l_983 = &g_87[2];
struct S0 *****l_984 = &g_774;
uint16_t *l_985 = &l_683;
struct S4 *l_990 = &g_991;
int32_t l_996[10][8] = {{0x1CBB8F7FL,0L,0L,0x1CBB8F7FL,0x19BD218DL,0x879A852DL,0x415A4E79L,0x6D6863FCL},{0xD21167F3L,(-1L),1L,0L,0xACFBB190L,0x8415F0C3L,0x5661223DL,2L},{0x5661223DL,0xBEA73D1EL,0xD21167F3L,(-5L),0L,0xB89EDB16L,1L,0xACFBB190L},{0x6D6863FCL,0L,0x1CBB8F7FL,0L,6L,0x879A852DL,0x3FAD4FB0L,0xD21167F3L},{0x1CBB8F7FL,(-1L),0xB89EDB16L,9L,0xDAE8FE24L,9L,0xB89EDB16L,(-1L)},{7L,0x1CBB8F7FL,0L,(-1L),0x8415F0C3L,0x4298E453L,0L,9L},{0xB89EDB16L,0xF8409202L,(-1L),0xDAE8FE24L,7L,1L,0L,1L},{0x19BD218DL,0xDAE8FE24L,0L,0x4298E453L,0x879A852DL,0L,0xB89EDB16L,6L},{0x879A852DL,0L,0xB89EDB16L,6L,9L,1L,0x3FAD4FB0L,0x3FAD4FB0L},{(-1L),0xD21167F3L,0x1CBB8F7FL,0x1CBB8F7FL,0xD21167F3L,(-1L),1L,(-5L)}};
int8_t *l_1012[4] = {&g_312,&g_312,&g_312,&g_312};
int32_t l_1013 = 0x64AD1A4FL;
uint8_t *l_1014[6];
int32_t l_1053 = 0x6774D5D0L;
uint8_t l_1059[10];
int i, j;
for (i = 0; i < 6; i++)
l_1014[i] = &g_185.f4;
for (i = 0; i < 10; i++)
l_1059[i] = 250UL;
if (((safe_add_func_uint64_t_u_u((safe_rshift_func_int16_t_s_u(((g_970 , ((((*l_121) , (l_971 == l_971)) , (&g_805 == &l_803[0][7][2])) && ((((*l_984) = ((((((p_80 > ((*l_982) ^= (safe_div_func_int64_t_s_s((((*g_805) = ((safe_mod_func_int8_t_s_s((0x1B37B892C9ACB3CELL ^ (((((safe_mod_func_uint16_t_u_u((l_978 = ((*p_82) = 0xFA2EL)), l_979)) | 0x7F850D52E1E0C23DLL) , g_980) , l_981) != l_982)), p_80)) , l_983)) != l_983), g_292.f5)))) | p_81) >= 0xBDF2016FL) , (*g_904)) , g_890.f5.f1.f0) , (void*)0)) != &g_742) & 0x48L))) >= g_185.f1), 0)), p_80)) < p_80))
{ /* block id: 454 */
return l_986;
}
else
{ /* block id: 456 */
uint32_t l_987 = 0xDA67836AL;
l_987 = p_83;
(*g_289) = l_988;
(*g_39) ^= (**g_445);
l_990 = l_989;
}
l_1019 |= ((((((p_80 , &g_784[3]) != ((l_1015[0][5][3] = ((safe_mod_func_int64_t_s_s(p_80, (l_996[4][3] = 0xF2850C2F68490940LL))) ^ (safe_mul_func_int8_t_s_s((l_1013 = (((safe_add_func_uint32_t_u_u(4294967295UL, ((safe_mul_func_uint16_t_u_u(((*l_106) = (safe_lshift_func_uint16_t_u_s(((safe_mul_func_uint8_t_u_u(((safe_div_func_uint32_t_u_u((l_1009 , ((*g_928) != (g_1010 = &g_930))), 7L)) < 0x5973L), p_80)) || p_83), 12))), g_185.f5.f1.f0)) >= l_1011))) , 0xCFD0B1DBL) >= (*l_121))), 0L)))) , l_1016)) < p_80) >= l_1018) ^ 9UL) >= 0x29D1L);
for (g_721.f0.f2 = 1; (g_721.f0.f2 <= 5); g_721.f0.f2 += 1)
{ /* block id: 470 */
int32_t **l_1034[7];
int32_t ***l_1033 = &l_1034[6];
int16_t *l_1043 = &l_1018;
struct S6 * const l_1044 = &g_1045[5][1][3];
int32_t *l_1047 = &l_957[4][2][0];
uint32_t l_1048 = 0xCE22E61EL;
int64_t *l_1050 = &l_361[0];
int i;
for (i = 0; i < 7; i++)
l_1034[i] = &l_121;
g_292.f1 &= (g_660[g_721.f0.f2] >= (((*l_1050) = (((g_626 = (safe_mul_func_int8_t_s_s((((safe_div_func_uint32_t_u_u((safe_sub_func_int16_t_s_s((~((safe_mul_func_int8_t_s_s(((((*l_1047) |= (safe_div_func_uint8_t_u_u((safe_add_func_uint16_t_u_u((((g_208 ^= (((*l_1033) = &l_121) == ((((((l_1035 = ((*g_289) = l_988)) == (((safe_div_func_int64_t_s_s((safe_add_func_int16_t_s_s((((safe_lshift_func_uint16_t_u_u(((((void*)0 == l_988) < ((*p_82) && (((*l_1043) = p_83) == l_996[4][3]))) || (*g_39)), 5)) ^ 0x5742034FL) , g_721.f0.f2), g_107[0])), g_890.f5.f1.f4)) != p_80) , l_1044)) && g_601.f1) | p_81) , g_935[0].f1) , l_1046))) > p_81) ^ g_291.f4), 0x022EL)), p_81))) , p_83) & p_81), l_1048)) ^ (*g_270))), 65531UL)), g_267.f0.f5)) , (void*)0) != l_1049), p_81))) != (-1L)) || l_996[4][3])) >= p_81));
l_1059[3]--;
}
}
else
{ /* block id: 482 */
int8_t *l_1090[4][7] = {{(void*)0,&g_310,&g_310,(void*)0,(void*)0,&g_310,&l_978},{&l_978,&g_310,(void*)0,(void*)0,&g_310,&g_310,(void*)0},{(void*)0,(void*)0,(void*)0,&g_310,&g_310,&g_310,&l_978},{(void*)0,&l_978,(void*)0,(void*)0,&g_310,(void*)0,(void*)0}};
int8_t **l_1089 = &l_1090[2][6];
int8_t ***l_1088 = &l_1089;
int32_t l_1091 = 0xEBA6411BL;
int32_t *l_1092[10] = {&g_188.f0.f1,&g_185.f0.f1,&g_188.f0.f1,&g_185.f0.f1,&g_188.f0.f1,&g_185.f0.f1,&g_188.f0.f1,&g_185.f0.f1,&g_188.f0.f1,&g_185.f0.f1};
int32_t l_1093 = 0x1BDBFB53L;
int16_t *l_1108 = &l_1018;
int16_t **l_1113 = &l_1108;
uint32_t *l_1117 = (void*)0;
uint32_t *l_1118 = &g_869;
int16_t *l_1119 = &g_449;
int i, j;
if ((g_1062 , (*g_39)))
{ /* block id: 483 */
if (g_295.f4)
goto lbl_754;
}
else
{ /* block id: 485 */
uint8_t *l_1083 = &g_188.f4;
int32_t l_1084 = 0L;
int8_t **l_1087[1];
int8_t ***l_1086[5] = {&l_1087[0],&l_1087[0],&l_1087[0],&l_1087[0],&l_1087[0]};
int i;
for (i = 0; i < 1; i++)
l_1087[i] = (void*)0;
l_1054[8] ^= (safe_sub_func_int64_t_s_s((&g_784[0] != (void*)0), (((safe_rshift_func_int16_t_s_s((safe_sub_func_int16_t_s_s(p_81, ((safe_mod_func_uint16_t_u_u((((safe_lshift_func_uint16_t_u_s((((safe_div_func_uint8_t_u_u(246UL, ((g_292.f4 <= (safe_lshift_func_int16_t_s_u(p_83, (*p_82)))) , ((*l_1083) &= (safe_lshift_func_int8_t_s_s((p_81 >= (safe_mod_func_int32_t_s_s((safe_rshift_func_uint8_t_u_u(((((*p_82) == 65535UL) <= g_267.f0.f4) ^ (**l_1046)), g_452.f1)), l_1058[6][2]))), p_81)))))) || g_721.f0.f2) < 1L), g_188.f0.f2)) == 0xBFB277CBL) , l_1084), 0x8DAAL)) <= g_296.f1))), 5)) <= 0L) || (*g_751))));
(*g_270) |= (+(l_1086[4] == ((l_1056 , 18446744073709551606UL) , l_1088)));
}
l_1096++;
l_1058[0][4] ^= (((((!0xD3AD2BA8L) | 0x04012CC7L) & (**g_445)) | g_238.f0) , ((safe_add_func_int8_t_s_s(0x0DL, (safe_lshift_func_int8_t_s_u(p_81, 6)))) <= (((*l_1108) = (l_1104[0][3][7] || ((((*l_121) = (safe_add_func_int8_t_s_s(((&g_660[4] != (((&l_462 != l_1107) , 0L) , &l_500[3][2])) > 1UL), 0x9DL))) && (-2L)) && (**g_750)))) > 0UL)));
g_601.f4 &= (safe_div_func_uint8_t_u_u((safe_sub_func_uint32_t_u_u(g_579.f2, p_81)), ((((((*l_1113) = &g_449) != &p_81) > ((l_1052 &= ((safe_mul_func_uint16_t_u_u(((g_188.f0.f4 | l_1054[1]) < 0xB567L), (((((safe_unary_minus_func_int16_t_s(((*l_1119) |= (((((*l_1118) = 18446744073709551612UL) , ((0xC900L && 9L) && (*g_270))) <= l_1018) >= (*g_446))))) , (*l_121)) | 4294967288UL) <= l_1058[6][2]) , (*l_121)))) && (*l_121))) || 0x38L)) < g_1045[5][1][3].f3) , g_295.f0)));
}
(*g_270) = (g_1120 , (safe_div_func_uint64_t_u_u(p_81, (safe_div_func_int16_t_s_s((((*l_982) = ((safe_mul_func_int8_t_s_s(0x28L, (safe_add_func_int32_t_s_s((safe_add_func_uint32_t_u_u(((void*)0 == l_1049), (safe_add_func_uint16_t_u_u(((((l_1054[1] ^= p_81) || ((((l_1135 != (((*g_160) , (((safe_div_func_uint64_t_u_u(9UL, l_1051)) != 0L) | g_540)) , (*g_928))) != 0x43F9L) & 0x98L) , 0x5381L)) , p_80) & g_292.f0), 5UL)))), p_81)))) > (*l_121))) || 1L), g_1036.f1)))));
for (g_185.f0.f2 = 0; (g_185.f0.f2 <= 1); g_185.f0.f2 += 1)
{ /* block id: 505 */
uint64_t *l_1142[4][6] = {{&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7]},{&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7]},{&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7]},{&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7],&l_1104[0][3][7]}};
int i, j;
l_1058[6][2] ^= (g_1139 , (safe_mul_func_uint16_t_u_u(0UL, ((((--p_83) >= l_361[g_185.f0.f2]) > ((safe_div_func_int8_t_s_s((-10L), (l_361[g_185.f0.f2] | ((safe_mod_func_int8_t_s_s((safe_mod_func_uint8_t_u_u((((void*)0 == (*g_262)) <= 0x67L), l_361[g_185.f0.f2])), l_361[g_185.f0.f2])) | 0xD0C2L)))) >= g_292.f4)) , 0x3720L))));
(*g_270) &= ((**l_1046) = p_83);
}
--l_1160;
}
else
{ /* block id: 512 */
int32_t *l_1163 = &l_1015[2][3][2];
int64_t *l_1180 = &g_208;
int64_t **l_1179[10][5] = {{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180},{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180},{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180},{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180},{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180},{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180},{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180},{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180},{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180},{&l_1180,&l_1180,&l_1180,&l_1180,&l_1180}};
struct S6 ***l_1187 = &g_289;
struct S5 ****l_1192 = &g_1190;
int i, j;
(*l_1135) = (*l_1135);
l_1164[4][1][1] = l_1163;
(*g_270) &= (((p_83 && 247UL) >= ((g_1165 = &g_891) == (void*)0)) , ((safe_div_func_uint64_t_u_u((safe_mod_func_int64_t_s_s((safe_rshift_func_uint8_t_u_u((safe_mul_func_uint16_t_u_u((*p_82), (safe_sub_func_uint8_t_u_u((safe_div_func_uint16_t_u_u((((l_1178 == (void*)0) | (*g_39)) < p_81), g_162.f3)), g_836.f4)))), 7)), (*l_121))), 0xA87B35EAE585D91BLL)) | (-1L)));
(**l_1046) = ((**g_264) && (((((l_1181 = &g_276) == &l_361[0]) & ((safe_add_func_uint8_t_u_u((((safe_sub_func_int32_t_s_s((g_1139.f0.f1 < 0xF5L), ((l_1186 , (*g_899)) != l_1187))) == (safe_rshift_func_int16_t_s_u(((g_1193 = ((*l_1192) = g_1190)) != l_1194), 15))) , 0x3DL), p_83)) != (*l_1163))) < p_80) & (*g_39)));
}
(*l_168) = g_1197;
}
else
{ /* block id: 523 */
(*g_270) = ((*g_39) &= (((0x82242517C089B1ADLL != p_83) >= (~(**g_750))) > g_291.f5));
}
(*g_445) = &l_114;
for (g_1139.f3 = 0; (g_1139.f3 <= 2); g_1139.f3 += 1)
{ /* block id: 530 */
uint32_t l_1199 = 0x2EC14040L;
struct S4 **l_1239 = &l_1237;
int32_t l_1255 = 1L;
uint32_t l_1279 = 4294967295UL;
int32_t l_1292 = 0x98C4C2B8L;
int32_t l_1293 = 0L;
int32_t l_1294 = 7L;
int32_t l_1295[8] = {(-4L),0x165BE146L,(-4L),(-4L),(-4L),0x5C8B24E5L,0x5C8B24E5L,(-4L)};
int32_t l_1296 = 7L;
int8_t l_1297 = 0L;
int64_t l_1315 = 0xA85CAC8FA028F458LL;
uint8_t l_1378 = 0x73L;
uint16_t *l_1380 = &g_107[0];
int i;
if (l_1199)
break;
(**l_1046) = l_1200;
for (g_1139.f0.f2 = 0; (g_1139.f0.f2 <= 2); g_1139.f0.f2 += 1)
{ /* block id: 535 */
uint32_t l_1202 = 1UL;
struct S6 *l_1236 = &g_294;
for (g_869 = 0; (g_869 <= 2); g_869 += 1)
{ /* block id: 538 */
int16_t *l_1201[10][9][2] = {{{(void*)0,&g_6[6][1]},{(void*)0,&g_6[6][2]},{&g_6[4][1],&g_6[4][1]},{&g_449,&g_650},{&g_6[6][1],(void*)0},{&g_449,&g_6[6][2]},{&g_6[4][1],&g_449},{(void*)0,&g_449},{(void*)0,&g_449}},{{&g_6[4][1],&g_6[6][2]},{&g_449,(void*)0},{&g_6[6][1],&g_650},{&g_449,&g_6[4][1]},{&g_6[4][1],&g_6[6][2]},{(void*)0,&g_6[6][1]},{(void*)0,&g_6[6][2]},{&g_6[4][1],&g_6[4][1]},{&g_449,&g_650}},{{&g_6[6][1],(void*)0},{&g_449,&g_6[6][2]},{&g_6[4][1],&g_449},{(void*)0,&g_449},{(void*)0,&g_449},{&g_6[4][1],&g_6[6][2]},{&g_449,(void*)0},{&g_6[6][1],&g_650},{&g_449,&g_6[4][1]}},{{&g_6[4][1],&g_6[6][2]},{(void*)0,&g_6[6][1]},{(void*)0,&g_6[6][2]},{&g_6[4][1],&g_6[4][1]},{&g_449,&g_650},{&g_6[6][1],(void*)0},{&g_449,&g_6[6][2]},{&g_6[4][1],&g_449},{(void*)0,&g_449}},{{(void*)0,&g_449},{&g_6[4][1],&g_6[6][2]},{&g_449,(void*)0},{&g_6[6][1],&g_650},{&g_449,&g_6[4][1]},{&g_6[4][1],&g_6[6][2]},{(void*)0,&g_6[6][1]},{(void*)0,&g_6[6][2]},{&g_6[4][1],&g_6[4][1]}},{{&g_449,&g_650},{&g_6[6][1],(void*)0},{&g_449,&g_6[6][2]},{&g_6[4][1],&g_449},{(void*)0,&g_449},{(void*)0,&g_449},{&g_6[4][1],&g_6[6][2]},{&g_449,(void*)0},{&g_6[6][1],&g_650}},{{&g_449,&g_6[4][1]},{&g_6[4][1],&g_6[6][2]},{(void*)0,&g_6[6][1]},{(void*)0,&g_6[6][2]},{&g_6[4][1],&g_6[4][1]},{&g_449,&g_650},{&g_6[6][1],(void*)0},{&g_449,&g_6[6][2]},{&g_6[4][1],&g_449}},{{(void*)0,&g_449},{(void*)0,&g_449},{&g_6[4][1],&g_6[6][2]},{&g_449,(void*)0},{&g_6[6][1],&g_650},{&g_449,&g_6[4][1]},{&g_6[4][1],&g_6[6][2]},{(void*)0,&g_6[6][1]},{(void*)0,&g_6[6][2]}},{{&g_6[4][1],&g_6[4][1]},{&g_449,&g_650},{&g_6[6][1],(void*)0},{&g_449,&g_6[6][2]},{&g_6[4][1],&g_449},{(void*)0,&g_449},{(void*)0,&g_449},{&g_6[4][1],&g_6[6][2]},{&g_449,(void*)0}},{{&g_6[6][1],&g_650},{&g_449,&g_6[4][1]},{&g_6[4][1],&g_6[6][2]},{(void*)0,&g_6[6][1]},{(void*)0,&g_6[6][2]},{&g_6[4][1],&g_6[4][1]},{&g_449,&g_650},{&g_6[6][1],(void*)0},{&g_449,&g_6[6][2]}}};
int i, j, k;
if (((65529UL || (l_1202 = (l_500[(g_1139.f3 + 1)][g_869] && p_81))) <= l_1203))
{ /* block id: 540 */
int32_t l_1225 = 2L;
int8_t l_1233 = 0L;
uint8_t *l_1234 = &g_1139.f4;
uint16_t *l_1235 = &g_1139.f1;
(*g_270) ^= (safe_add_func_int8_t_s_s(((safe_mod_func_uint16_t_u_u(((((**g_750) | ((safe_sub_func_int32_t_s_s((**g_445), ((safe_add_func_uint8_t_u_u(p_83, ((*l_1234) = (safe_add_func_int64_t_s_s((safe_mul_func_int16_t_s_s(((safe_add_func_int8_t_s_s((((safe_mul_func_int16_t_s_s((~(((safe_div_func_uint8_t_u_u(((safe_div_func_int32_t_s_s(0xD39A0D86L, g_88.f0)) , l_1225), ((safe_add_func_int8_t_s_s((g_1139.f0.f5 || (safe_mod_func_uint64_t_u_u(((++(*l_106)) | (((void*)0 != l_1232) , 65528UL)), l_500[(g_1139.f3 + 1)][g_869]))), g_310)) , g_1139.f5.f1.f0))) & g_461.f5) & 0xE4BEA60EE83BA155LL)), 0xF654L)) > (*g_39)) , l_1233), 0xFEL)) || p_83), (*l_121))), p_83))))) != 0xFB13386FL))) , g_305.f3)) <= p_81) == 0x58E5L), p_81)) <= g_296.f5), g_292.f4));
return l_1235;
}
else
{ /* block id: 545 */
(**l_1046) = p_81;
(*g_289) = l_1236;
if ((*g_270))
continue;
}
}
}
(*l_1239) = l_1237;
for (g_991.f0.f1 = 2; (g_991.f0.f1 >= 0); g_991.f0.f1 -= 1)
{ /* block id: 555 */
int8_t *l_1248 = &g_310;
struct S4 **l_1249[5][3][9] = {{{&g_316,&g_316,&g_316,&g_316,&g_316,&g_316,&l_1237,&l_1237,&g_316},{&g_316,&g_316,(void*)0,&g_316,&g_316,(void*)0,&l_1237,&l_1237,&g_316},{&l_1237,&g_316,&g_316,&g_316,&g_316,&g_316,&g_316,&l_1237,(void*)0}},{{&g_316,&g_316,&g_316,&g_316,(void*)0,&g_316,(void*)0,&l_1237,(void*)0},{&g_316,&g_316,&l_1237,&g_316,(void*)0,&l_1237,&g_316,&l_1237,(void*)0},{&g_316,&l_1237,&l_1237,&g_316,&g_316,&g_316,&l_1237,&g_316,&g_316}},{{&g_316,&l_1237,&g_316,&g_316,(void*)0,&g_316,&l_1237,(void*)0,&g_316},{&g_316,&g_316,&g_316,&g_316,&g_316,&g_316,&g_316,&g_316,&g_316},{&g_316,&g_316,&g_316,&l_1237,(void*)0,&g_316,(void*)0,(void*)0,&g_316}},{{&g_316,(void*)0,&g_316,&g_316,(void*)0,(void*)0,&g_316,&g_316,(void*)0},{&g_316,(void*)0,(void*)0,(void*)0,&g_316,&l_1237,&l_1237,&l_1237,&l_1237},{&g_316,(void*)0,&l_1237,&l_1237,&g_316,&l_1237,&g_316,&g_316,(void*)0}},{{&g_316,&l_1237,&g_316,&g_316,&l_1237,&l_1237,&g_316,&g_316,&l_1237},{&g_316,&l_1237,&g_316,(void*)0,(void*)0,(void*)0,&g_316,(void*)0,&l_1237},{&g_316,&g_316,&l_1237,(void*)0,&l_1237,&g_316,&l_1237,&g_316,&l_1237}}};
int32_t l_1260 = 1L;
int32_t l_1261[9][3][9] = {{{0x8AE91B0BL,1L,0x79EF3394L,0x79EF3394L,1L,0x8AE91B0BL,1L,0x8AE91B0BL,1L},{0xC031FA16L,4L,4L,0xC031FA16L,1L,0L,1L,0xC031FA16L,4L},{(-7L),(-7L),1L,1L,0x0F73EC64L,1L,1L,(-7L),(-7L)}},{{4L,0xC031FA16L,1L,0L,1L,0xC031FA16L,4L,4L,0xC031FA16L},{1L,0x8AE91B0BL,1L,0x8AE91B0BL,1L,0x79EF3394L,0x79EF3394L,1L,0x8AE91B0BL},{4L,1L,4L,(-1L),(-10L),(-10L),(-1L),4L,1L}},{{(-7L),4L,0x79EF3394L,1L,1L,0x79EF3394L,4L,(-7L),1L},{4L,(-1L),(-10L),(-10L),(-1L),4L,1L,4L,(-1L)},{4L,1L,1L,4L,0x0F73EC64L,0x79EF3394L,0x0F73EC64L,4L,1L}},{{0xD367E4EEL,0xD367E4EEL,1L,(-1L),0xC031FA16L,(-1L),1L,0xD367E4EEL,0xD367E4EEL},{1L,4L,0x0F73EC64L,0x79EF3394L,0x0F73EC64L,4L,1L,1L,4L},{(-1L),4L,1L,4L,(-1L),(-10L),(-10L),(-1L),4L}},{{1L,0x0F73EC64L,1L,1L,(-7L),(-7L),1L,1L,0x0F73EC64L},{0xD367E4EEL,0L,(-10L),1L,1L,(-10L),0L,0xD367E4EEL,0L},{4L,0x79EF3394L,1L,1L,0x79EF3394L,4L,(-7L),4L,0x79EF3394L}},{{4L,0L,0L,4L,0xD367E4EEL,(-1L),0xD367E4EEL,4L,0L},{0x0F73EC64L,0x0F73EC64L,(-7L),0x79EF3394L,0x8AE91B0BL,0x79EF3394L,(-7L),0x0F73EC64L,0x0F73EC64L},{0L,4L,0xD367E4EEL,(-1L),0xD367E4EEL,4L,0L,0L,4L}},{{0x79EF3394L,4L,(-7L),4L,0x79EF3394L,1L,1L,0x79EF3394L,4L},{0L,0xD367E4EEL,0L,(-10L),1L,1L,(-10L),0L,0xD367E4EEL},{0x0F73EC64L,1L,1L,(-7L),(-7L),1L,1L,0x0F73EC64L,1L}},{{4L,(-1L),(-10L),(-10L),(-1L),4L,1L,4L,(-1L)},{4L,1L,1L,4L,0x0F73EC64L,0x79EF3394L,0x0F73EC64L,4L,1L},{0xD367E4EEL,0xD367E4EEL,1L,(-1L),0xC031FA16L,(-1L),1L,0xD367E4EEL,0xD367E4EEL}},{{1L,4L,0x0F73EC64L,0x79EF3394L,0x0F73EC64L,4L,1L,1L,4L},{(-1L),4L,1L,4L,(-1L),(-10L),(-10L),(-1L),4L},{1L,0x0F73EC64L,1L,1L,(-7L),(-7L),1L,1L,0x0F73EC64L}}};
int8_t l_1289 = 0x6CL;
int32_t l_1308 = 0xF71DF053L;
int32_t l_1345[3];
int64_t *l_1406 = &l_1315;
int64_t **l_1407 = &l_1181;
uint64_t *l_1408 = &l_93;
int i, j, k;
for (i = 0; i < 3; i++)
l_1345[i] = 0x75153D63L;
}
}
}
return p_82;
}
/* ---------------------------------------- */
int main (int argc, char* argv[])
{
int i, j, k;
int print_hash_value = 0;
if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
platform_main_begin();
crc32_gentab();
func_1();
for (i = 0; i < 7; i++)
{
for (j = 0; j < 3; j++)
{
transparent_crc(g_6[i][j], "g_6[i][j]", print_hash_value);
if (print_hash_value) printf("index = [%d][%d]\n", i, j);
}
}
transparent_crc(g_9, "g_9", print_hash_value);
transparent_crc(g_26.f0, "g_26.f0", print_hash_value);
transparent_crc(g_26.f1, "g_26.f1", print_hash_value);
transparent_crc(g_26.f2, "g_26.f2", print_hash_value);
transparent_crc(g_26.f3, "g_26.f3", print_hash_value);
transparent_crc(g_26.f4, "g_26.f4", print_hash_value);
transparent_crc(g_28, "g_28", print_hash_value);
transparent_crc(g_38, "g_38", print_hash_value);
transparent_crc(g_40, "g_40", print_hash_value);
transparent_crc(g_71.f0, "g_71.f0", print_hash_value);
transparent_crc(g_86.f0, "g_86.f0", print_hash_value);
transparent_crc(g_86.f1.f0, "g_86.f1.f0", print_hash_value);
transparent_crc(g_86.f1.f1, "g_86.f1.f1", print_hash_value);
transparent_crc(g_86.f1.f2, "g_86.f1.f2", print_hash_value);
transparent_crc(g_86.f1.f3, "g_86.f1.f3", print_hash_value);
transparent_crc(g_86.f1.f4, "g_86.f1.f4", print_hash_value);
transparent_crc(g_86.f2, "g_86.f2", print_hash_value);
transparent_crc(g_86.f3, "g_86.f3", print_hash_value);
transparent_crc(g_86.f4, "g_86.f4", print_hash_value);
for (i = 0; i < 6; i++)
{
transparent_crc(g_87[i].f0, "g_87[i].f0", print_hash_value);
transparent_crc(g_87[i].f1, "g_87[i].f1", print_hash_value);
transparent_crc(g_87[i].f2, "g_87[i].f2", print_hash_value);
transparent_crc(g_87[i].f3, "g_87[i].f3", print_hash_value);
transparent_crc(g_87[i].f4, "g_87[i].f4", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_88.f0, "g_88.f0", print_hash_value);
transparent_crc(g_88.f1, "g_88.f1", print_hash_value);
transparent_crc(g_88.f2, "g_88.f2", print_hash_value);
transparent_crc(g_88.f3, "g_88.f3", print_hash_value);
transparent_crc(g_88.f4, "g_88.f4", print_hash_value);
transparent_crc(g_88.f5, "g_88.f5", print_hash_value);
for (i = 0; i < 3; i++)
{
transparent_crc(g_107[i], "g_107[i]", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_115.f0.f0, "g_115.f0.f0", print_hash_value);
transparent_crc(g_115.f0.f1, "g_115.f0.f1", print_hash_value);
transparent_crc(g_115.f0.f2, "g_115.f0.f2", print_hash_value);
transparent_crc(g_115.f0.f3, "g_115.f0.f3", print_hash_value);
transparent_crc(g_115.f0.f4, "g_115.f0.f4", print_hash_value);
transparent_crc(g_115.f0.f5, "g_115.f0.f5", print_hash_value);
transparent_crc(g_115.f1, "g_115.f1", print_hash_value);
transparent_crc(g_115.f2, "g_115.f2", print_hash_value);
transparent_crc(g_115.f3, "g_115.f3", print_hash_value);
transparent_crc(g_115.f4, "g_115.f4", print_hash_value);
transparent_crc(g_115.f5.f0, "g_115.f5.f0", print_hash_value);
transparent_crc(g_115.f5.f1.f0, "g_115.f5.f1.f0", print_hash_value);
transparent_crc(g_115.f5.f1.f1, "g_115.f5.f1.f1", print_hash_value);
transparent_crc(g_115.f5.f1.f2, "g_115.f5.f1.f2", print_hash_value);
transparent_crc(g_115.f5.f1.f3, "g_115.f5.f1.f3", print_hash_value);
transparent_crc(g_115.f5.f1.f4, "g_115.f5.f1.f4", print_hash_value);
transparent_crc(g_115.f5.f2, "g_115.f5.f2", print_hash_value);
transparent_crc(g_115.f5.f3, "g_115.f5.f3", print_hash_value);
transparent_crc(g_115.f5.f4, "g_115.f5.f4", print_hash_value);
transparent_crc(g_142.f0.f0, "g_142.f0.f0", print_hash_value);
transparent_crc(g_142.f0.f1, "g_142.f0.f1", print_hash_value);
transparent_crc(g_142.f0.f2, "g_142.f0.f2", print_hash_value);
transparent_crc(g_142.f0.f3, "g_142.f0.f3", print_hash_value);
transparent_crc(g_142.f0.f4, "g_142.f0.f4", print_hash_value);
transparent_crc(g_142.f0.f5, "g_142.f0.f5", print_hash_value);
transparent_crc(g_162.f0.f0, "g_162.f0.f0", print_hash_value);
transparent_crc(g_162.f0.f1, "g_162.f0.f1", print_hash_value);
transparent_crc(g_162.f0.f2, "g_162.f0.f2", print_hash_value);
transparent_crc(g_162.f0.f3, "g_162.f0.f3", print_hash_value);
transparent_crc(g_162.f0.f4, "g_162.f0.f4", print_hash_value);
transparent_crc(g_162.f0.f5, "g_162.f0.f5", print_hash_value);
transparent_crc(g_162.f1, "g_162.f1", print_hash_value);
transparent_crc(g_162.f2, "g_162.f2", print_hash_value);
transparent_crc(g_162.f3, "g_162.f3", print_hash_value);
transparent_crc(g_162.f4, "g_162.f4", print_hash_value);
transparent_crc(g_162.f5.f0, "g_162.f5.f0", print_hash_value);
transparent_crc(g_162.f5.f1.f0, "g_162.f5.f1.f0", print_hash_value);
transparent_crc(g_162.f5.f1.f1, "g_162.f5.f1.f1", print_hash_value);
transparent_crc(g_162.f5.f1.f2, "g_162.f5.f1.f2", print_hash_value);
transparent_crc(g_162.f5.f1.f3, "g_162.f5.f1.f3", print_hash_value);
transparent_crc(g_162.f5.f1.f4, "g_162.f5.f1.f4", print_hash_value);
transparent_crc(g_162.f5.f2, "g_162.f5.f2", print_hash_value);
transparent_crc(g_162.f5.f3, "g_162.f5.f3", print_hash_value);
transparent_crc(g_162.f5.f4, "g_162.f5.f4", print_hash_value);
transparent_crc(g_165.f0, "g_165.f0", print_hash_value);
transparent_crc(g_165.f1, "g_165.f1", print_hash_value);
transparent_crc(g_165.f2, "g_165.f2", print_hash_value);
transparent_crc(g_165.f3, "g_165.f3", print_hash_value);
transparent_crc(g_165.f4, "g_165.f4", print_hash_value);
transparent_crc(g_165.f5, "g_165.f5", print_hash_value);
transparent_crc(g_185.f0.f0, "g_185.f0.f0", print_hash_value);
transparent_crc(g_185.f0.f1, "g_185.f0.f1", print_hash_value);
transparent_crc(g_185.f0.f2, "g_185.f0.f2", print_hash_value);
transparent_crc(g_185.f0.f3, "g_185.f0.f3", print_hash_value);
transparent_crc(g_185.f0.f4, "g_185.f0.f4", print_hash_value);
transparent_crc(g_185.f0.f5, "g_185.f0.f5", print_hash_value);
transparent_crc(g_185.f1, "g_185.f1", print_hash_value);
transparent_crc(g_185.f2, "g_185.f2", print_hash_value);
transparent_crc(g_185.f3, "g_185.f3", print_hash_value);
transparent_crc(g_185.f4, "g_185.f4", print_hash_value);
transparent_crc(g_185.f5.f0, "g_185.f5.f0", print_hash_value);
transparent_crc(g_185.f5.f1.f0, "g_185.f5.f1.f0", print_hash_value);
transparent_crc(g_185.f5.f1.f1, "g_185.f5.f1.f1", print_hash_value);
transparent_crc(g_185.f5.f1.f2, "g_185.f5.f1.f2", print_hash_value);
transparent_crc(g_185.f5.f1.f3, "g_185.f5.f1.f3", print_hash_value);
transparent_crc(g_185.f5.f1.f4, "g_185.f5.f1.f4", print_hash_value);
transparent_crc(g_185.f5.f2, "g_185.f5.f2", print_hash_value);
transparent_crc(g_185.f5.f3, "g_185.f5.f3", print_hash_value);
transparent_crc(g_185.f5.f4, "g_185.f5.f4", print_hash_value);
transparent_crc(g_188.f0.f0, "g_188.f0.f0", print_hash_value);
transparent_crc(g_188.f0.f1, "g_188.f0.f1", print_hash_value);
transparent_crc(g_188.f0.f2, "g_188.f0.f2", print_hash_value);
transparent_crc(g_188.f0.f3, "g_188.f0.f3", print_hash_value);
transparent_crc(g_188.f0.f4, "g_188.f0.f4", print_hash_value);
transparent_crc(g_188.f0.f5, "g_188.f0.f5", print_hash_value);
transparent_crc(g_188.f1, "g_188.f1", print_hash_value);
transparent_crc(g_188.f2, "g_188.f2", print_hash_value);
transparent_crc(g_188.f3, "g_188.f3", print_hash_value);
transparent_crc(g_188.f4, "g_188.f4", print_hash_value);
transparent_crc(g_188.f5.f0, "g_188.f5.f0", print_hash_value);
transparent_crc(g_188.f5.f1.f0, "g_188.f5.f1.f0", print_hash_value);
transparent_crc(g_188.f5.f1.f1, "g_188.f5.f1.f1", print_hash_value);
transparent_crc(g_188.f5.f1.f2, "g_188.f5.f1.f2", print_hash_value);
transparent_crc(g_188.f5.f1.f3, "g_188.f5.f1.f3", print_hash_value);
transparent_crc(g_188.f5.f1.f4, "g_188.f5.f1.f4", print_hash_value);
transparent_crc(g_188.f5.f2, "g_188.f5.f2", print_hash_value);
transparent_crc(g_188.f5.f3, "g_188.f5.f3", print_hash_value);
transparent_crc(g_188.f5.f4, "g_188.f5.f4", print_hash_value);
transparent_crc(g_208, "g_208", print_hash_value);
transparent_crc(g_225.f0, "g_225.f0", print_hash_value);
transparent_crc(g_238.f0, "g_238.f0", print_hash_value);
transparent_crc(g_238.f1, "g_238.f1", print_hash_value);
transparent_crc(g_238.f2, "g_238.f2", print_hash_value);
transparent_crc(g_238.f3, "g_238.f3", print_hash_value);
transparent_crc(g_238.f4, "g_238.f4", print_hash_value);
transparent_crc(g_238.f5, "g_238.f5", print_hash_value);
transparent_crc(g_267.f0.f0, "g_267.f0.f0", print_hash_value);
transparent_crc(g_267.f0.f1, "g_267.f0.f1", print_hash_value);
transparent_crc(g_267.f0.f2, "g_267.f0.f2", print_hash_value);
transparent_crc(g_267.f0.f3, "g_267.f0.f3", print_hash_value);
transparent_crc(g_267.f0.f4, "g_267.f0.f4", print_hash_value);
transparent_crc(g_267.f0.f5, "g_267.f0.f5", print_hash_value);
transparent_crc(g_276, "g_276", print_hash_value);
transparent_crc(g_291.f0, "g_291.f0", print_hash_value);
transparent_crc(g_291.f1, "g_291.f1", print_hash_value);
transparent_crc(g_291.f2, "g_291.f2", print_hash_value);
transparent_crc(g_291.f3, "g_291.f3", print_hash_value);
transparent_crc(g_291.f4, "g_291.f4", print_hash_value);
transparent_crc(g_291.f5, "g_291.f5", print_hash_value);
transparent_crc(g_292.f0, "g_292.f0", print_hash_value);
transparent_crc(g_292.f1, "g_292.f1", print_hash_value);
transparent_crc(g_292.f2, "g_292.f2", print_hash_value);
transparent_crc(g_292.f3, "g_292.f3", print_hash_value);
transparent_crc(g_292.f4, "g_292.f4", print_hash_value);
transparent_crc(g_292.f5, "g_292.f5", print_hash_value);
transparent_crc(g_293.f0, "g_293.f0", print_hash_value);
transparent_crc(g_293.f1, "g_293.f1", print_hash_value);
transparent_crc(g_293.f2, "g_293.f2", print_hash_value);
transparent_crc(g_293.f3, "g_293.f3", print_hash_value);
transparent_crc(g_293.f4, "g_293.f4", print_hash_value);
transparent_crc(g_293.f5, "g_293.f5", print_hash_value);
transparent_crc(g_294.f0, "g_294.f0", print_hash_value);
transparent_crc(g_294.f1, "g_294.f1", print_hash_value);
transparent_crc(g_294.f2, "g_294.f2", print_hash_value);
transparent_crc(g_294.f3, "g_294.f3", print_hash_value);
transparent_crc(g_294.f4, "g_294.f4", print_hash_value);
transparent_crc(g_294.f5, "g_294.f5", print_hash_value);
transparent_crc(g_295.f0, "g_295.f0", print_hash_value);
transparent_crc(g_295.f1, "g_295.f1", print_hash_value);
transparent_crc(g_295.f2, "g_295.f2", print_hash_value);
transparent_crc(g_295.f3, "g_295.f3", print_hash_value);
transparent_crc(g_295.f4, "g_295.f4", print_hash_value);
transparent_crc(g_295.f5, "g_295.f5", print_hash_value);
transparent_crc(g_296.f0, "g_296.f0", print_hash_value);
transparent_crc(g_296.f1, "g_296.f1", print_hash_value);
transparent_crc(g_296.f2, "g_296.f2", print_hash_value);
transparent_crc(g_296.f3, "g_296.f3", print_hash_value);
transparent_crc(g_296.f4, "g_296.f4", print_hash_value);
transparent_crc(g_296.f5, "g_296.f5", print_hash_value);
transparent_crc(g_305.f0, "g_305.f0", print_hash_value);
transparent_crc(g_305.f1, "g_305.f1", print_hash_value);
transparent_crc(g_305.f2, "g_305.f2", print_hash_value);
transparent_crc(g_305.f3, "g_305.f3", print_hash_value);
transparent_crc(g_305.f4, "g_305.f4", print_hash_value);
transparent_crc(g_310, "g_310", print_hash_value);
transparent_crc(g_312, "g_312", print_hash_value);
transparent_crc(g_318, "g_318", print_hash_value);
transparent_crc(g_322.f0, "g_322.f0", print_hash_value);
transparent_crc(g_322.f1, "g_322.f1", print_hash_value);
transparent_crc(g_322.f2, "g_322.f2", print_hash_value);
transparent_crc(g_322.f3, "g_322.f3", print_hash_value);
transparent_crc(g_322.f4, "g_322.f4", print_hash_value);
transparent_crc(g_322.f5, "g_322.f5", print_hash_value);
transparent_crc(g_323.f0, "g_323.f0", print_hash_value);
transparent_crc(g_323.f1, "g_323.f1", print_hash_value);
transparent_crc(g_323.f2, "g_323.f2", print_hash_value);
transparent_crc(g_323.f3, "g_323.f3", print_hash_value);
transparent_crc(g_323.f4, "g_323.f4", print_hash_value);
transparent_crc(g_323.f5, "g_323.f5", print_hash_value);
transparent_crc(g_341.f0.f0, "g_341.f0.f0", print_hash_value);
transparent_crc(g_369.f0.f0, "g_369.f0.f0", print_hash_value);
transparent_crc(g_449, "g_449", print_hash_value);
transparent_crc(g_452.f0, "g_452.f0", print_hash_value);
transparent_crc(g_452.f1, "g_452.f1", print_hash_value);
transparent_crc(g_452.f2, "g_452.f2", print_hash_value);
transparent_crc(g_452.f3, "g_452.f3", print_hash_value);
transparent_crc(g_452.f4, "g_452.f4", print_hash_value);
transparent_crc(g_452.f5, "g_452.f5", print_hash_value);
transparent_crc(g_460, "g_460", print_hash_value);
transparent_crc(g_461.f0, "g_461.f0", print_hash_value);
transparent_crc(g_461.f1, "g_461.f1", print_hash_value);
transparent_crc(g_461.f2, "g_461.f2", print_hash_value);
transparent_crc(g_461.f3, "g_461.f3", print_hash_value);
transparent_crc(g_461.f4, "g_461.f4", print_hash_value);
transparent_crc(g_461.f5, "g_461.f5", print_hash_value);
transparent_crc(g_473.f0.f0, "g_473.f0.f0", print_hash_value);
transparent_crc(g_540, "g_540", print_hash_value);
transparent_crc(g_576.f0, "g_576.f0", print_hash_value);
transparent_crc(g_576.f1.f0, "g_576.f1.f0", print_hash_value);
transparent_crc(g_576.f1.f1, "g_576.f1.f1", print_hash_value);
transparent_crc(g_576.f1.f2, "g_576.f1.f2", print_hash_value);
transparent_crc(g_576.f1.f3, "g_576.f1.f3", print_hash_value);
transparent_crc(g_576.f1.f4, "g_576.f1.f4", print_hash_value);
transparent_crc(g_576.f2, "g_576.f2", print_hash_value);
transparent_crc(g_576.f3, "g_576.f3", print_hash_value);
transparent_crc(g_576.f4, "g_576.f4", print_hash_value);
transparent_crc(g_579.f0, "g_579.f0", print_hash_value);
transparent_crc(g_579.f1, "g_579.f1", print_hash_value);
transparent_crc(g_579.f2, "g_579.f2", print_hash_value);
transparent_crc(g_579.f3, "g_579.f3", print_hash_value);
transparent_crc(g_579.f4, "g_579.f4", print_hash_value);
transparent_crc(g_579.f5, "g_579.f5", print_hash_value);
transparent_crc(g_601.f0, "g_601.f0", print_hash_value);
transparent_crc(g_601.f1, "g_601.f1", print_hash_value);
transparent_crc(g_601.f2, "g_601.f2", print_hash_value);
transparent_crc(g_601.f3, "g_601.f3", print_hash_value);
transparent_crc(g_601.f4, "g_601.f4", print_hash_value);
transparent_crc(g_601.f5, "g_601.f5", print_hash_value);
for (i = 0; i < 2; i++)
{
for (j = 0; j < 5; j++)
{
transparent_crc(g_602[i][j].f0, "g_602[i][j].f0", print_hash_value);
transparent_crc(g_602[i][j].f1, "g_602[i][j].f1", print_hash_value);
transparent_crc(g_602[i][j].f2, "g_602[i][j].f2", print_hash_value);
transparent_crc(g_602[i][j].f3, "g_602[i][j].f3", print_hash_value);
transparent_crc(g_602[i][j].f4, "g_602[i][j].f4", print_hash_value);
transparent_crc(g_602[i][j].f5, "g_602[i][j].f5", print_hash_value);
if (print_hash_value) printf("index = [%d][%d]\n", i, j);
}
}
transparent_crc(g_618.f0, "g_618.f0", print_hash_value);
transparent_crc(g_626, "g_626", print_hash_value);
transparent_crc(g_650, "g_650", print_hash_value);
for (i = 0; i < 6; i++)
{
transparent_crc(g_660[i], "g_660[i]", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_694.f0.f0, "g_694.f0.f0", print_hash_value);
transparent_crc(g_695.f0, "g_695.f0", print_hash_value);
transparent_crc(g_695.f1.f0, "g_695.f1.f0", print_hash_value);
transparent_crc(g_695.f1.f1, "g_695.f1.f1", print_hash_value);
transparent_crc(g_695.f1.f2, "g_695.f1.f2", print_hash_value);
transparent_crc(g_695.f1.f3, "g_695.f1.f3", print_hash_value);
transparent_crc(g_695.f1.f4, "g_695.f1.f4", print_hash_value);
transparent_crc(g_695.f2, "g_695.f2", print_hash_value);
transparent_crc(g_695.f3, "g_695.f3", print_hash_value);
transparent_crc(g_695.f4, "g_695.f4", print_hash_value);
transparent_crc(g_721.f0.f0, "g_721.f0.f0", print_hash_value);
transparent_crc(g_721.f0.f1, "g_721.f0.f1", print_hash_value);
transparent_crc(g_721.f0.f2, "g_721.f0.f2", print_hash_value);
transparent_crc(g_721.f0.f3, "g_721.f0.f3", print_hash_value);
transparent_crc(g_721.f0.f4, "g_721.f0.f4", print_hash_value);
transparent_crc(g_721.f0.f5, "g_721.f0.f5", print_hash_value);
transparent_crc(g_732.f0.f0, "g_732.f0.f0", print_hash_value);
transparent_crc(g_732.f0.f1, "g_732.f0.f1", print_hash_value);
transparent_crc(g_732.f0.f2, "g_732.f0.f2", print_hash_value);
transparent_crc(g_732.f0.f3, "g_732.f0.f3", print_hash_value);
transparent_crc(g_732.f0.f4, "g_732.f0.f4", print_hash_value);
transparent_crc(g_732.f0.f5, "g_732.f0.f5", print_hash_value);
for (i = 0; i < 3; i++)
{
transparent_crc(g_752[i], "g_752[i]", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_826.f0.f0, "g_826.f0.f0", print_hash_value);
transparent_crc(g_828.f0.f0, "g_828.f0.f0", print_hash_value);
transparent_crc(g_830.f0.f0, "g_830.f0.f0", print_hash_value);
transparent_crc(g_836.f0, "g_836.f0", print_hash_value);
transparent_crc(g_836.f1, "g_836.f1", print_hash_value);
transparent_crc(g_836.f2, "g_836.f2", print_hash_value);
transparent_crc(g_836.f3, "g_836.f3", print_hash_value);
transparent_crc(g_836.f4, "g_836.f4", print_hash_value);
transparent_crc(g_836.f5, "g_836.f5", print_hash_value);
transparent_crc(g_837, "g_837", print_hash_value);
transparent_crc(g_849.f0, "g_849.f0", print_hash_value);
transparent_crc(g_849.f1, "g_849.f1", print_hash_value);
transparent_crc(g_849.f2, "g_849.f2", print_hash_value);
transparent_crc(g_849.f3, "g_849.f3", print_hash_value);
transparent_crc(g_849.f4, "g_849.f4", print_hash_value);
transparent_crc(g_849.f5, "g_849.f5", print_hash_value);
transparent_crc(g_869, "g_869", print_hash_value);
transparent_crc(g_890.f0.f0, "g_890.f0.f0", print_hash_value);
transparent_crc(g_890.f0.f1, "g_890.f0.f1", print_hash_value);
transparent_crc(g_890.f0.f2, "g_890.f0.f2", print_hash_value);
transparent_crc(g_890.f0.f3, "g_890.f0.f3", print_hash_value);
transparent_crc(g_890.f0.f4, "g_890.f0.f4", print_hash_value);
transparent_crc(g_890.f0.f5, "g_890.f0.f5", print_hash_value);
transparent_crc(g_890.f1, "g_890.f1", print_hash_value);
transparent_crc(g_890.f2, "g_890.f2", print_hash_value);
transparent_crc(g_890.f3, "g_890.f3", print_hash_value);
transparent_crc(g_890.f4, "g_890.f4", print_hash_value);
transparent_crc(g_890.f5.f0, "g_890.f5.f0", print_hash_value);
transparent_crc(g_890.f5.f1.f0, "g_890.f5.f1.f0", print_hash_value);
transparent_crc(g_890.f5.f1.f1, "g_890.f5.f1.f1", print_hash_value);
transparent_crc(g_890.f5.f1.f2, "g_890.f5.f1.f2", print_hash_value);
transparent_crc(g_890.f5.f1.f3, "g_890.f5.f1.f3", print_hash_value);
transparent_crc(g_890.f5.f1.f4, "g_890.f5.f1.f4", print_hash_value);
transparent_crc(g_890.f5.f2, "g_890.f5.f2", print_hash_value);
transparent_crc(g_890.f5.f3, "g_890.f5.f3", print_hash_value);
transparent_crc(g_890.f5.f4, "g_890.f5.f4", print_hash_value);
transparent_crc(g_903.f0, "g_903.f0", print_hash_value);
transparent_crc(g_903.f1, "g_903.f1", print_hash_value);
transparent_crc(g_903.f2, "g_903.f2", print_hash_value);
transparent_crc(g_903.f3, "g_903.f3", print_hash_value);
transparent_crc(g_903.f4, "g_903.f4", print_hash_value);
transparent_crc(g_903.f5, "g_903.f5", print_hash_value);
transparent_crc(g_905.f0, "g_905.f0", print_hash_value);
transparent_crc(g_905.f1, "g_905.f1", print_hash_value);
transparent_crc(g_905.f2, "g_905.f2", print_hash_value);
transparent_crc(g_905.f3, "g_905.f3", print_hash_value);
transparent_crc(g_905.f4, "g_905.f4", print_hash_value);
transparent_crc(g_905.f5, "g_905.f5", print_hash_value);
for (i = 0; i < 8; i++)
{
transparent_crc(g_935[i].f0, "g_935[i].f0", print_hash_value);
transparent_crc(g_935[i].f1, "g_935[i].f1", print_hash_value);
transparent_crc(g_935[i].f2, "g_935[i].f2", print_hash_value);
transparent_crc(g_935[i].f3, "g_935[i].f3", print_hash_value);
transparent_crc(g_935[i].f4, "g_935[i].f4", print_hash_value);
transparent_crc(g_935[i].f5, "g_935[i].f5", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
for (i = 0; i < 10; i++)
{
transparent_crc(g_962[i], "g_962[i]", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_970.f0, "g_970.f0", print_hash_value);
transparent_crc(g_970.f1, "g_970.f1", print_hash_value);
transparent_crc(g_970.f2, "g_970.f2", print_hash_value);
transparent_crc(g_970.f3, "g_970.f3", print_hash_value);
transparent_crc(g_970.f4, "g_970.f4", print_hash_value);
transparent_crc(g_980.f0, "g_980.f0", print_hash_value);
transparent_crc(g_980.f1.f0, "g_980.f1.f0", print_hash_value);
transparent_crc(g_980.f1.f1, "g_980.f1.f1", print_hash_value);
transparent_crc(g_980.f1.f2, "g_980.f1.f2", print_hash_value);
transparent_crc(g_980.f1.f3, "g_980.f1.f3", print_hash_value);
transparent_crc(g_980.f1.f4, "g_980.f1.f4", print_hash_value);
transparent_crc(g_980.f2, "g_980.f2", print_hash_value);
transparent_crc(g_980.f3, "g_980.f3", print_hash_value);
transparent_crc(g_980.f4, "g_980.f4", print_hash_value);
transparent_crc(g_991.f0.f0, "g_991.f0.f0", print_hash_value);
transparent_crc(g_991.f0.f1, "g_991.f0.f1", print_hash_value);
transparent_crc(g_991.f0.f2, "g_991.f0.f2", print_hash_value);
transparent_crc(g_991.f0.f3, "g_991.f0.f3", print_hash_value);
transparent_crc(g_991.f0.f4, "g_991.f0.f4", print_hash_value);
transparent_crc(g_991.f0.f5, "g_991.f0.f5", print_hash_value);
transparent_crc(g_1036.f0, "g_1036.f0", print_hash_value);
transparent_crc(g_1036.f1, "g_1036.f1", print_hash_value);
transparent_crc(g_1036.f2, "g_1036.f2", print_hash_value);
transparent_crc(g_1036.f3, "g_1036.f3", print_hash_value);
transparent_crc(g_1036.f4, "g_1036.f4", print_hash_value);
transparent_crc(g_1036.f5, "g_1036.f5", print_hash_value);
for (i = 0; i < 7; i++)
{
for (j = 0; j < 9; j++)
{
for (k = 0; k < 4; k++)
{
transparent_crc(g_1045[i][j][k].f0, "g_1045[i][j][k].f0", print_hash_value);
transparent_crc(g_1045[i][j][k].f1, "g_1045[i][j][k].f1", print_hash_value);
transparent_crc(g_1045[i][j][k].f2, "g_1045[i][j][k].f2", print_hash_value);
transparent_crc(g_1045[i][j][k].f3, "g_1045[i][j][k].f3", print_hash_value);
transparent_crc(g_1045[i][j][k].f4, "g_1045[i][j][k].f4", print_hash_value);
transparent_crc(g_1045[i][j][k].f5, "g_1045[i][j][k].f5", print_hash_value);
if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
}
}
}
transparent_crc(g_1055, "g_1055", print_hash_value);
transparent_crc(g_1062.f0, "g_1062.f0", print_hash_value);
transparent_crc(g_1062.f1, "g_1062.f1", print_hash_value);
transparent_crc(g_1062.f2, "g_1062.f2", print_hash_value);
transparent_crc(g_1062.f3, "g_1062.f3", print_hash_value);
transparent_crc(g_1062.f4, "g_1062.f4", print_hash_value);
transparent_crc(g_1062.f5, "g_1062.f5", print_hash_value);
transparent_crc(g_1095, "g_1095", print_hash_value);
transparent_crc(g_1120.f0, "g_1120.f0", print_hash_value);
transparent_crc(g_1139.f0.f0, "g_1139.f0.f0", print_hash_value);
transparent_crc(g_1139.f0.f1, "g_1139.f0.f1", print_hash_value);
transparent_crc(g_1139.f0.f2, "g_1139.f0.f2", print_hash_value);
transparent_crc(g_1139.f0.f3, "g_1139.f0.f3", print_hash_value);
transparent_crc(g_1139.f0.f4, "g_1139.f0.f4", print_hash_value);
transparent_crc(g_1139.f0.f5, "g_1139.f0.f5", print_hash_value);
transparent_crc(g_1139.f1, "g_1139.f1", print_hash_value);
transparent_crc(g_1139.f2, "g_1139.f2", print_hash_value);
transparent_crc(g_1139.f3, "g_1139.f3", print_hash_value);
transparent_crc(g_1139.f4, "g_1139.f4", print_hash_value);
transparent_crc(g_1139.f5.f0, "g_1139.f5.f0", print_hash_value);
transparent_crc(g_1139.f5.f1.f0, "g_1139.f5.f1.f0", print_hash_value);
transparent_crc(g_1139.f5.f1.f1, "g_1139.f5.f1.f1", print_hash_value);
transparent_crc(g_1139.f5.f1.f2, "g_1139.f5.f1.f2", print_hash_value);
transparent_crc(g_1139.f5.f1.f3, "g_1139.f5.f1.f3", print_hash_value);
transparent_crc(g_1139.f5.f1.f4, "g_1139.f5.f1.f4", print_hash_value);
transparent_crc(g_1139.f5.f2, "g_1139.f5.f2", print_hash_value);
transparent_crc(g_1139.f5.f3, "g_1139.f5.f3", print_hash_value);
transparent_crc(g_1139.f5.f4, "g_1139.f5.f4", print_hash_value);
transparent_crc(g_1197.f0, "g_1197.f0", print_hash_value);
transparent_crc(g_1197.f1, "g_1197.f1", print_hash_value);
transparent_crc(g_1197.f2, "g_1197.f2", print_hash_value);
transparent_crc(g_1197.f3, "g_1197.f3", print_hash_value);
transparent_crc(g_1197.f4, "g_1197.f4", print_hash_value);
transparent_crc(g_1197.f5, "g_1197.f5", print_hash_value);
transparent_crc(g_1288, "g_1288", print_hash_value);
transparent_crc(g_1298, "g_1298", print_hash_value);
for (i = 0; i < 9; i++)
{
transparent_crc(g_1318[i], "g_1318[i]", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_1410, "g_1410", print_hash_value);
for (i = 0; i < 7; i++)
{
for (j = 0; j < 3; j++)
{
for (k = 0; k < 6; k++)
{
transparent_crc(g_1431[i][j][k].f0, "g_1431[i][j][k].f0", print_hash_value);
transparent_crc(g_1431[i][j][k].f1, "g_1431[i][j][k].f1", print_hash_value);
transparent_crc(g_1431[i][j][k].f2, "g_1431[i][j][k].f2", print_hash_value);
transparent_crc(g_1431[i][j][k].f3, "g_1431[i][j][k].f3", print_hash_value);
transparent_crc(g_1431[i][j][k].f4, "g_1431[i][j][k].f4", print_hash_value);
transparent_crc(g_1431[i][j][k].f5, "g_1431[i][j][k].f5", print_hash_value);
if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
}
}
}
transparent_crc(g_1439.f0, "g_1439.f0", print_hash_value);
transparent_crc(g_1439.f1, "g_1439.f1", print_hash_value);
transparent_crc(g_1439.f2, "g_1439.f2", print_hash_value);
transparent_crc(g_1439.f3, "g_1439.f3", print_hash_value);
transparent_crc(g_1439.f4, "g_1439.f4", print_hash_value);
transparent_crc(g_1439.f5, "g_1439.f5", print_hash_value);
transparent_crc(g_1458.f0, "g_1458.f0", print_hash_value);
transparent_crc(g_1468, "g_1468", print_hash_value);
transparent_crc(g_1471.f0, "g_1471.f0", print_hash_value);
transparent_crc(g_1502.f0, "g_1502.f0", print_hash_value);
transparent_crc(g_1502.f1, "g_1502.f1", print_hash_value);
transparent_crc(g_1502.f2, "g_1502.f2", print_hash_value);
transparent_crc(g_1502.f3, "g_1502.f3", print_hash_value);
transparent_crc(g_1502.f4, "g_1502.f4", print_hash_value);
transparent_crc(g_1502.f5, "g_1502.f5", print_hash_value);
transparent_crc(g_1503.f0, "g_1503.f0", print_hash_value);
transparent_crc(g_1503.f1, "g_1503.f1", print_hash_value);
transparent_crc(g_1503.f2, "g_1503.f2", print_hash_value);
transparent_crc(g_1503.f3, "g_1503.f3", print_hash_value);
transparent_crc(g_1503.f4, "g_1503.f4", print_hash_value);
transparent_crc(g_1503.f5, "g_1503.f5", print_hash_value);
transparent_crc(g_1527.f0, "g_1527.f0", print_hash_value);
transparent_crc(g_1527.f1, "g_1527.f1", print_hash_value);
transparent_crc(g_1527.f2, "g_1527.f2", print_hash_value);
transparent_crc(g_1527.f3, "g_1527.f3", print_hash_value);
transparent_crc(g_1527.f4, "g_1527.f4", print_hash_value);
transparent_crc(g_1527.f5, "g_1527.f5", print_hash_value);
transparent_crc(g_1551.f0, "g_1551.f0", print_hash_value);
transparent_crc(g_1551.f1, "g_1551.f1", print_hash_value);
transparent_crc(g_1551.f2, "g_1551.f2", print_hash_value);
transparent_crc(g_1551.f3, "g_1551.f3", print_hash_value);
transparent_crc(g_1551.f4, "g_1551.f4", print_hash_value);
transparent_crc(g_1551.f5, "g_1551.f5", print_hash_value);
transparent_crc(g_1561.f0, "g_1561.f0", print_hash_value);
transparent_crc(g_1561.f1, "g_1561.f1", print_hash_value);
transparent_crc(g_1561.f2, "g_1561.f2", print_hash_value);
transparent_crc(g_1561.f3, "g_1561.f3", print_hash_value);
transparent_crc(g_1561.f4, "g_1561.f4", print_hash_value);
transparent_crc(g_1561.f5, "g_1561.f5", print_hash_value);
transparent_crc(g_1564.f0.f0, "g_1564.f0.f0", print_hash_value);
transparent_crc(g_1567.f0.f0, "g_1567.f0.f0", print_hash_value);
transparent_crc(g_1575.f0.f0, "g_1575.f0.f0", print_hash_value);
transparent_crc(g_1575.f0.f1, "g_1575.f0.f1", print_hash_value);
transparent_crc(g_1575.f0.f2, "g_1575.f0.f2", print_hash_value);
transparent_crc(g_1575.f0.f3, "g_1575.f0.f3", print_hash_value);
transparent_crc(g_1575.f0.f4, "g_1575.f0.f4", print_hash_value);
transparent_crc(g_1575.f0.f5, "g_1575.f0.f5", print_hash_value);
transparent_crc(g_1575.f1, "g_1575.f1", print_hash_value);
transparent_crc(g_1575.f2, "g_1575.f2", print_hash_value);
transparent_crc(g_1575.f3, "g_1575.f3", print_hash_value);
transparent_crc(g_1575.f4, "g_1575.f4", print_hash_value);
transparent_crc(g_1575.f5.f0, "g_1575.f5.f0", print_hash_value);
transparent_crc(g_1575.f5.f1.f0, "g_1575.f5.f1.f0", print_hash_value);
transparent_crc(g_1575.f5.f1.f1, "g_1575.f5.f1.f1", print_hash_value);
transparent_crc(g_1575.f5.f1.f2, "g_1575.f5.f1.f2", print_hash_value);
transparent_crc(g_1575.f5.f1.f3, "g_1575.f5.f1.f3", print_hash_value);
transparent_crc(g_1575.f5.f1.f4, "g_1575.f5.f1.f4", print_hash_value);
transparent_crc(g_1575.f5.f2, "g_1575.f5.f2", print_hash_value);
transparent_crc(g_1575.f5.f3, "g_1575.f5.f3", print_hash_value);
transparent_crc(g_1575.f5.f4, "g_1575.f5.f4", print_hash_value);
transparent_crc(g_1582.f0.f0, "g_1582.f0.f0", print_hash_value);
transparent_crc(g_1598.f0.f0, "g_1598.f0.f0", print_hash_value);
for (i = 0; i < 10; i++)
{
for (j = 0; j < 9; j++)
{
transparent_crc(g_1608[i][j].f0, "g_1608[i][j].f0", print_hash_value);
transparent_crc(g_1608[i][j].f1, "g_1608[i][j].f1", print_hash_value);
transparent_crc(g_1608[i][j].f2, "g_1608[i][j].f2", print_hash_value);
transparent_crc(g_1608[i][j].f3, "g_1608[i][j].f3", print_hash_value);
transparent_crc(g_1608[i][j].f4, "g_1608[i][j].f4", print_hash_value);
if (print_hash_value) printf("index = [%d][%d]\n", i, j);
}
}
for (i = 0; i < 6; i++)
{
for (j = 0; j < 7; j++)
{
for (k = 0; k < 5; k++)
{
transparent_crc(g_1617[i][j][k].f0, "g_1617[i][j][k].f0", print_hash_value);
transparent_crc(g_1617[i][j][k].f1, "g_1617[i][j][k].f1", print_hash_value);
transparent_crc(g_1617[i][j][k].f2, "g_1617[i][j][k].f2", print_hash_value);
transparent_crc(g_1617[i][j][k].f3, "g_1617[i][j][k].f3", print_hash_value);
transparent_crc(g_1617[i][j][k].f4, "g_1617[i][j][k].f4", print_hash_value);
if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
}
}
}
transparent_crc(g_1666.f0, "g_1666.f0", print_hash_value);
transparent_crc(g_1666.f1, "g_1666.f1", print_hash_value);
transparent_crc(g_1666.f2, "g_1666.f2", print_hash_value);
transparent_crc(g_1666.f3, "g_1666.f3", print_hash_value);
transparent_crc(g_1666.f4, "g_1666.f4", print_hash_value);
transparent_crc(g_1666.f5, "g_1666.f5", print_hash_value);
transparent_crc(g_1686.f0.f0, "g_1686.f0.f0", print_hash_value);
transparent_crc(g_1686.f0.f1, "g_1686.f0.f1", print_hash_value);
transparent_crc(g_1686.f0.f2, "g_1686.f0.f2", print_hash_value);
transparent_crc(g_1686.f0.f3, "g_1686.f0.f3", print_hash_value);
transparent_crc(g_1686.f0.f4, "g_1686.f0.f4", print_hash_value);
transparent_crc(g_1686.f0.f5, "g_1686.f0.f5", print_hash_value);
for (i = 0; i < 5; i++)
{
for (j = 0; j < 9; j++)
{
transparent_crc(g_1713[i][j].f0.f0, "g_1713[i][j].f0.f0", print_hash_value);
transparent_crc(g_1713[i][j].f0.f1, "g_1713[i][j].f0.f1", print_hash_value);
transparent_crc(g_1713[i][j].f0.f2, "g_1713[i][j].f0.f2", print_hash_value);
transparent_crc(g_1713[i][j].f0.f3, "g_1713[i][j].f0.f3", print_hash_value);
transparent_crc(g_1713[i][j].f0.f4, "g_1713[i][j].f0.f4", print_hash_value);
transparent_crc(g_1713[i][j].f0.f5, "g_1713[i][j].f0.f5", print_hash_value);
transparent_crc(g_1713[i][j].f1, "g_1713[i][j].f1", print_hash_value);
transparent_crc(g_1713[i][j].f2, "g_1713[i][j].f2", print_hash_value);
transparent_crc(g_1713[i][j].f3, "g_1713[i][j].f3", print_hash_value);
transparent_crc(g_1713[i][j].f4, "g_1713[i][j].f4", print_hash_value);
transparent_crc(g_1713[i][j].f5.f0, "g_1713[i][j].f5.f0", print_hash_value);
transparent_crc(g_1713[i][j].f5.f1.f0, "g_1713[i][j].f5.f1.f0", print_hash_value);
transparent_crc(g_1713[i][j].f5.f1.f1, "g_1713[i][j].f5.f1.f1", print_hash_value);
transparent_crc(g_1713[i][j].f5.f1.f2, "g_1713[i][j].f5.f1.f2", print_hash_value);
transparent_crc(g_1713[i][j].f5.f1.f3, "g_1713[i][j].f5.f1.f3", print_hash_value);
transparent_crc(g_1713[i][j].f5.f1.f4, "g_1713[i][j].f5.f1.f4", print_hash_value);
transparent_crc(g_1713[i][j].f5.f2, "g_1713[i][j].f5.f2", print_hash_value);
transparent_crc(g_1713[i][j].f5.f3, "g_1713[i][j].f5.f3", print_hash_value);
transparent_crc(g_1713[i][j].f5.f4, "g_1713[i][j].f5.f4", print_hash_value);
if (print_hash_value) printf("index = [%d][%d]\n", i, j);
}
}
transparent_crc(g_1717.f0.f0, "g_1717.f0.f0", print_hash_value);
transparent_crc(g_1717.f0.f1, "g_1717.f0.f1", print_hash_value);
transparent_crc(g_1717.f0.f2, "g_1717.f0.f2", print_hash_value);
transparent_crc(g_1717.f0.f3, "g_1717.f0.f3", print_hash_value);
transparent_crc(g_1717.f0.f4, "g_1717.f0.f4", print_hash_value);
transparent_crc(g_1717.f0.f5, "g_1717.f0.f5", print_hash_value);
transparent_crc(g_1717.f1, "g_1717.f1", print_hash_value);
transparent_crc(g_1717.f2, "g_1717.f2", print_hash_value);
transparent_crc(g_1717.f3, "g_1717.f3", print_hash_value);
transparent_crc(g_1717.f4, "g_1717.f4", print_hash_value);
transparent_crc(g_1717.f5.f0, "g_1717.f5.f0", print_hash_value);
transparent_crc(g_1717.f5.f1.f0, "g_1717.f5.f1.f0", print_hash_value);
transparent_crc(g_1717.f5.f1.f1, "g_1717.f5.f1.f1", print_hash_value);
transparent_crc(g_1717.f5.f1.f2, "g_1717.f5.f1.f2", print_hash_value);
transparent_crc(g_1717.f5.f1.f3, "g_1717.f5.f1.f3", print_hash_value);
transparent_crc(g_1717.f5.f1.f4, "g_1717.f5.f1.f4", print_hash_value);
transparent_crc(g_1717.f5.f2, "g_1717.f5.f2", print_hash_value);
transparent_crc(g_1717.f5.f3, "g_1717.f5.f3", print_hash_value);
transparent_crc(g_1717.f5.f4, "g_1717.f5.f4", print_hash_value);
transparent_crc(g_1721.f0.f0, "g_1721.f0.f0", print_hash_value);
transparent_crc(g_1721.f0.f1, "g_1721.f0.f1", print_hash_value);
transparent_crc(g_1721.f0.f2, "g_1721.f0.f2", print_hash_value);
transparent_crc(g_1721.f0.f3, "g_1721.f0.f3", print_hash_value);
transparent_crc(g_1721.f0.f4, "g_1721.f0.f4", print_hash_value);
transparent_crc(g_1721.f0.f5, "g_1721.f0.f5", print_hash_value);
transparent_crc(g_1721.f1, "g_1721.f1", print_hash_value);
transparent_crc(g_1721.f2, "g_1721.f2", print_hash_value);
transparent_crc(g_1721.f3, "g_1721.f3", print_hash_value);
transparent_crc(g_1721.f4, "g_1721.f4", print_hash_value);
transparent_crc(g_1721.f5.f0, "g_1721.f5.f0", print_hash_value);
transparent_crc(g_1721.f5.f1.f0, "g_1721.f5.f1.f0", print_hash_value);
transparent_crc(g_1721.f5.f1.f1, "g_1721.f5.f1.f1", print_hash_value);
transparent_crc(g_1721.f5.f1.f2, "g_1721.f5.f1.f2", print_hash_value);
transparent_crc(g_1721.f5.f1.f3, "g_1721.f5.f1.f3", print_hash_value);
transparent_crc(g_1721.f5.f1.f4, "g_1721.f5.f1.f4", print_hash_value);
transparent_crc(g_1721.f5.f2, "g_1721.f5.f2", print_hash_value);
transparent_crc(g_1721.f5.f3, "g_1721.f5.f3", print_hash_value);
transparent_crc(g_1721.f5.f4, "g_1721.f5.f4", print_hash_value);
transparent_crc(g_1737.f0, "g_1737.f0", print_hash_value);
transparent_crc(g_1737.f1, "g_1737.f1", print_hash_value);
transparent_crc(g_1737.f2, "g_1737.f2", print_hash_value);
transparent_crc(g_1737.f3, "g_1737.f3", print_hash_value);
transparent_crc(g_1737.f4, "g_1737.f4", print_hash_value);
transparent_crc(g_1737.f5, "g_1737.f5", print_hash_value);
transparent_crc(g_1738.f0, "g_1738.f0", print_hash_value);
transparent_crc(g_1738.f1, "g_1738.f1", print_hash_value);
transparent_crc(g_1738.f2, "g_1738.f2", print_hash_value);
transparent_crc(g_1738.f3, "g_1738.f3", print_hash_value);
transparent_crc(g_1738.f4, "g_1738.f4", print_hash_value);
transparent_crc(g_1738.f5, "g_1738.f5", print_hash_value);
transparent_crc(g_1740.f0, "g_1740.f0", print_hash_value);
transparent_crc(g_1780.f0, "g_1780.f0", print_hash_value);
transparent_crc(g_1780.f1, "g_1780.f1", print_hash_value);
transparent_crc(g_1780.f2, "g_1780.f2", print_hash_value);
transparent_crc(g_1780.f3, "g_1780.f3", print_hash_value);
transparent_crc(g_1780.f4, "g_1780.f4", print_hash_value);
transparent_crc(g_1780.f5, "g_1780.f5", print_hash_value);
transparent_crc(g_1781.f0, "g_1781.f0", print_hash_value);
transparent_crc(g_1781.f1, "g_1781.f1", print_hash_value);
transparent_crc(g_1781.f2, "g_1781.f2", print_hash_value);
transparent_crc(g_1781.f3, "g_1781.f3", print_hash_value);
transparent_crc(g_1781.f4, "g_1781.f4", print_hash_value);
transparent_crc(g_1781.f5, "g_1781.f5", print_hash_value);
transparent_crc(g_1782.f0, "g_1782.f0", print_hash_value);
transparent_crc(g_1782.f1, "g_1782.f1", print_hash_value);
transparent_crc(g_1782.f2, "g_1782.f2", print_hash_value);
transparent_crc(g_1782.f3, "g_1782.f3", print_hash_value);
transparent_crc(g_1782.f4, "g_1782.f4", print_hash_value);
transparent_crc(g_1782.f5, "g_1782.f5", print_hash_value);
transparent_crc(g_1783.f0, "g_1783.f0", print_hash_value);
transparent_crc(g_1783.f1, "g_1783.f1", print_hash_value);
transparent_crc(g_1783.f2, "g_1783.f2", print_hash_value);
transparent_crc(g_1783.f3, "g_1783.f3", print_hash_value);
transparent_crc(g_1783.f4, "g_1783.f4", print_hash_value);
transparent_crc(g_1783.f5, "g_1783.f5", print_hash_value);
transparent_crc(g_1784.f0, "g_1784.f0", print_hash_value);
transparent_crc(g_1784.f1, "g_1784.f1", print_hash_value);
transparent_crc(g_1784.f2, "g_1784.f2", print_hash_value);
transparent_crc(g_1784.f3, "g_1784.f3", print_hash_value);
transparent_crc(g_1784.f4, "g_1784.f4", print_hash_value);
transparent_crc(g_1784.f5, "g_1784.f5", print_hash_value);
transparent_crc(g_1786.f0, "g_1786.f0", print_hash_value);
transparent_crc(g_1786.f1, "g_1786.f1", print_hash_value);
transparent_crc(g_1786.f2, "g_1786.f2", print_hash_value);
transparent_crc(g_1786.f3, "g_1786.f3", print_hash_value);
transparent_crc(g_1786.f4, "g_1786.f4", print_hash_value);
transparent_crc(g_1786.f5, "g_1786.f5", print_hash_value);
transparent_crc(g_1808, "g_1808", print_hash_value);
transparent_crc(g_1838.f0, "g_1838.f0", print_hash_value);
transparent_crc(g_1838.f1, "g_1838.f1", print_hash_value);
transparent_crc(g_1838.f2, "g_1838.f2", print_hash_value);
transparent_crc(g_1838.f3, "g_1838.f3", print_hash_value);
transparent_crc(g_1838.f4, "g_1838.f4", print_hash_value);
transparent_crc(g_1865.f0.f0, "g_1865.f0.f0", print_hash_value);
transparent_crc(g_1873.f0.f0, "g_1873.f0.f0", print_hash_value);
transparent_crc(g_1887, "g_1887", print_hash_value);
for (i = 0; i < 4; i++)
{
transparent_crc(g_1909[i].f0, "g_1909[i].f0", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_1945.f0.f0, "g_1945.f0.f0", print_hash_value);
transparent_crc(g_1982.f0, "g_1982.f0", print_hash_value);
transparent_crc(g_1982.f1, "g_1982.f1", print_hash_value);
transparent_crc(g_1982.f2, "g_1982.f2", print_hash_value);
transparent_crc(g_1982.f3, "g_1982.f3", print_hash_value);
transparent_crc(g_1982.f4, "g_1982.f4", print_hash_value);
transparent_crc(g_1982.f5, "g_1982.f5", print_hash_value);
transparent_crc(g_1983.f0, "g_1983.f0", print_hash_value);
transparent_crc(g_1983.f1, "g_1983.f1", print_hash_value);
transparent_crc(g_1983.f2, "g_1983.f2", print_hash_value);
transparent_crc(g_1983.f3, "g_1983.f3", print_hash_value);
transparent_crc(g_1983.f4, "g_1983.f4", print_hash_value);
transparent_crc(g_1983.f5, "g_1983.f5", print_hash_value);
transparent_crc(g_2003.f0.f0, "g_2003.f0.f0", print_hash_value);
transparent_crc(g_2021.f0, "g_2021.f0", print_hash_value);
transparent_crc(g_2021.f1, "g_2021.f1", print_hash_value);
transparent_crc(g_2021.f2, "g_2021.f2", print_hash_value);
transparent_crc(g_2021.f3, "g_2021.f3", print_hash_value);
transparent_crc(g_2021.f4, "g_2021.f4", print_hash_value);
transparent_crc(g_2021.f5, "g_2021.f5", print_hash_value);
transparent_crc(g_2025.f0.f0, "g_2025.f0.f0", print_hash_value);
transparent_crc(g_2025.f0.f1, "g_2025.f0.f1", print_hash_value);
transparent_crc(g_2025.f0.f2, "g_2025.f0.f2", print_hash_value);
transparent_crc(g_2025.f0.f3, "g_2025.f0.f3", print_hash_value);
transparent_crc(g_2025.f0.f4, "g_2025.f0.f4", print_hash_value);
transparent_crc(g_2025.f0.f5, "g_2025.f0.f5", print_hash_value);
transparent_crc(g_2034.f0, "g_2034.f0", print_hash_value);
transparent_crc(g_2034.f1, "g_2034.f1", print_hash_value);
transparent_crc(g_2034.f2, "g_2034.f2", print_hash_value);
transparent_crc(g_2034.f3, "g_2034.f3", print_hash_value);
transparent_crc(g_2034.f4, "g_2034.f4", print_hash_value);
for (i = 0; i < 5; i++)
{
transparent_crc(g_2051[i].f0.f0, "g_2051[i].f0.f0", print_hash_value);
transparent_crc(g_2051[i].f0.f1, "g_2051[i].f0.f1", print_hash_value);
transparent_crc(g_2051[i].f0.f2, "g_2051[i].f0.f2", print_hash_value);
transparent_crc(g_2051[i].f0.f3, "g_2051[i].f0.f3", print_hash_value);
transparent_crc(g_2051[i].f0.f4, "g_2051[i].f0.f4", print_hash_value);
transparent_crc(g_2051[i].f0.f5, "g_2051[i].f0.f5", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_2056.f0, "g_2056.f0", print_hash_value);
transparent_crc(g_2056.f1.f0, "g_2056.f1.f0", print_hash_value);
transparent_crc(g_2056.f1.f1, "g_2056.f1.f1", print_hash_value);
transparent_crc(g_2056.f1.f2, "g_2056.f1.f2", print_hash_value);
transparent_crc(g_2056.f1.f3, "g_2056.f1.f3", print_hash_value);
transparent_crc(g_2056.f1.f4, "g_2056.f1.f4", print_hash_value);
transparent_crc(g_2056.f2, "g_2056.f2", print_hash_value);
transparent_crc(g_2056.f3, "g_2056.f3", print_hash_value);
transparent_crc(g_2056.f4, "g_2056.f4", print_hash_value);
transparent_crc(g_2058.f0.f0, "g_2058.f0.f0", print_hash_value);
transparent_crc(g_2059.f0, "g_2059.f0", print_hash_value);
transparent_crc(g_2059.f1, "g_2059.f1", print_hash_value);
transparent_crc(g_2059.f2, "g_2059.f2", print_hash_value);
transparent_crc(g_2059.f3, "g_2059.f3", print_hash_value);
transparent_crc(g_2059.f4, "g_2059.f4", print_hash_value);
transparent_crc(g_2060.f0, "g_2060.f0", print_hash_value);
transparent_crc(g_2060.f1, "g_2060.f1", print_hash_value);
transparent_crc(g_2060.f2, "g_2060.f2", print_hash_value);
transparent_crc(g_2060.f3, "g_2060.f3", print_hash_value);
transparent_crc(g_2060.f4, "g_2060.f4", print_hash_value);
transparent_crc(g_2060.f5, "g_2060.f5", print_hash_value);
transparent_crc(g_2078.f0.f0, "g_2078.f0.f0", print_hash_value);
transparent_crc(g_2078.f0.f1, "g_2078.f0.f1", print_hash_value);
transparent_crc(g_2078.f0.f2, "g_2078.f0.f2", print_hash_value);
transparent_crc(g_2078.f0.f3, "g_2078.f0.f3", print_hash_value);
transparent_crc(g_2078.f0.f4, "g_2078.f0.f4", print_hash_value);
transparent_crc(g_2078.f0.f5, "g_2078.f0.f5", print_hash_value);
for (i = 0; i < 4; i++)
{
for (j = 0; j < 6; j++)
{
transparent_crc(g_2085[i][j].f0, "g_2085[i][j].f0", print_hash_value);
transparent_crc(g_2085[i][j].f1, "g_2085[i][j].f1", print_hash_value);
transparent_crc(g_2085[i][j].f2, "g_2085[i][j].f2", print_hash_value);
transparent_crc(g_2085[i][j].f3, "g_2085[i][j].f3", print_hash_value);
transparent_crc(g_2085[i][j].f4, "g_2085[i][j].f4", print_hash_value);
transparent_crc(g_2085[i][j].f5, "g_2085[i][j].f5", print_hash_value);
if (print_hash_value) printf("index = [%d][%d]\n", i, j);
}
}
transparent_crc(g_2093, "g_2093", print_hash_value);
transparent_crc(g_2111.f0, "g_2111.f0", print_hash_value);
transparent_crc(g_2111.f1, "g_2111.f1", print_hash_value);
transparent_crc(g_2111.f2, "g_2111.f2", print_hash_value);
transparent_crc(g_2111.f3, "g_2111.f3", print_hash_value);
transparent_crc(g_2111.f4, "g_2111.f4", print_hash_value);
transparent_crc(g_2114.f0, "g_2114.f0", print_hash_value);
transparent_crc(g_2114.f1, "g_2114.f1", print_hash_value);
transparent_crc(g_2114.f2, "g_2114.f2", print_hash_value);
transparent_crc(g_2114.f3, "g_2114.f3", print_hash_value);
transparent_crc(g_2114.f4, "g_2114.f4", print_hash_value);
transparent_crc(g_2114.f5, "g_2114.f5", print_hash_value);
transparent_crc(g_2123, "g_2123", print_hash_value);
transparent_crc(g_2130.f0, "g_2130.f0", print_hash_value);
transparent_crc(g_2130.f1, "g_2130.f1", print_hash_value);
transparent_crc(g_2130.f2, "g_2130.f2", print_hash_value);
transparent_crc(g_2130.f3, "g_2130.f3", print_hash_value);
transparent_crc(g_2130.f4, "g_2130.f4", print_hash_value);
transparent_crc(g_2130.f5, "g_2130.f5", print_hash_value);
transparent_crc(g_2139.f0.f0, "g_2139.f0.f0", print_hash_value);
transparent_crc(g_2139.f0.f1, "g_2139.f0.f1", print_hash_value);
transparent_crc(g_2139.f0.f2, "g_2139.f0.f2", print_hash_value);
transparent_crc(g_2139.f0.f3, "g_2139.f0.f3", print_hash_value);
transparent_crc(g_2139.f0.f4, "g_2139.f0.f4", print_hash_value);
transparent_crc(g_2139.f0.f5, "g_2139.f0.f5", print_hash_value);
transparent_crc(g_2140.f0, "g_2140.f0", print_hash_value);
transparent_crc(g_2140.f1, "g_2140.f1", print_hash_value);
transparent_crc(g_2140.f2, "g_2140.f2", print_hash_value);
transparent_crc(g_2140.f3, "g_2140.f3", print_hash_value);
transparent_crc(g_2140.f4, "g_2140.f4", print_hash_value);
transparent_crc(g_2140.f5, "g_2140.f5", print_hash_value);
transparent_crc(g_2144, "g_2144", print_hash_value);
transparent_crc(g_2145.f0, "g_2145.f0", print_hash_value);
transparent_crc(g_2157.f0.f0, "g_2157.f0.f0", print_hash_value);
transparent_crc(g_2157.f0.f1, "g_2157.f0.f1", print_hash_value);
transparent_crc(g_2157.f0.f2, "g_2157.f0.f2", print_hash_value);
transparent_crc(g_2157.f0.f3, "g_2157.f0.f3", print_hash_value);
transparent_crc(g_2157.f0.f4, "g_2157.f0.f4", print_hash_value);
transparent_crc(g_2157.f0.f5, "g_2157.f0.f5", print_hash_value);
transparent_crc(g_2157.f1, "g_2157.f1", print_hash_value);
transparent_crc(g_2157.f2, "g_2157.f2", print_hash_value);
transparent_crc(g_2157.f3, "g_2157.f3", print_hash_value);
transparent_crc(g_2157.f4, "g_2157.f4", print_hash_value);
transparent_crc(g_2157.f5.f0, "g_2157.f5.f0", print_hash_value);
transparent_crc(g_2157.f5.f1.f0, "g_2157.f5.f1.f0", print_hash_value);
transparent_crc(g_2157.f5.f1.f1, "g_2157.f5.f1.f1", print_hash_value);
transparent_crc(g_2157.f5.f1.f2, "g_2157.f5.f1.f2", print_hash_value);
transparent_crc(g_2157.f5.f1.f3, "g_2157.f5.f1.f3", print_hash_value);
transparent_crc(g_2157.f5.f1.f4, "g_2157.f5.f1.f4", print_hash_value);
transparent_crc(g_2157.f5.f2, "g_2157.f5.f2", print_hash_value);
transparent_crc(g_2157.f5.f3, "g_2157.f5.f3", print_hash_value);
transparent_crc(g_2157.f5.f4, "g_2157.f5.f4", print_hash_value);
transparent_crc(g_2164, "g_2164", print_hash_value);
transparent_crc(g_2175.f0, "g_2175.f0", print_hash_value);
transparent_crc(g_2175.f1, "g_2175.f1", print_hash_value);
transparent_crc(g_2175.f2, "g_2175.f2", print_hash_value);
transparent_crc(g_2175.f3, "g_2175.f3", print_hash_value);
transparent_crc(g_2175.f4, "g_2175.f4", print_hash_value);
transparent_crc(g_2175.f5, "g_2175.f5", print_hash_value);
transparent_crc(g_2176.f0, "g_2176.f0", print_hash_value);
transparent_crc(g_2176.f1, "g_2176.f1", print_hash_value);
transparent_crc(g_2176.f2, "g_2176.f2", print_hash_value);
transparent_crc(g_2176.f3, "g_2176.f3", print_hash_value);
transparent_crc(g_2176.f4, "g_2176.f4", print_hash_value);
transparent_crc(g_2176.f5, "g_2176.f5", print_hash_value);
transparent_crc(g_2197, "g_2197", print_hash_value);
for (i = 0; i < 1; i++)
{
transparent_crc(g_2214[i].f0, "g_2214[i].f0", print_hash_value);
transparent_crc(g_2214[i].f1, "g_2214[i].f1", print_hash_value);
transparent_crc(g_2214[i].f2, "g_2214[i].f2", print_hash_value);
transparent_crc(g_2214[i].f3, "g_2214[i].f3", print_hash_value);
transparent_crc(g_2214[i].f4, "g_2214[i].f4", print_hash_value);
transparent_crc(g_2214[i].f5, "g_2214[i].f5", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_2215.f0, "g_2215.f0", print_hash_value);
transparent_crc(g_2215.f1, "g_2215.f1", print_hash_value);
transparent_crc(g_2215.f2, "g_2215.f2", print_hash_value);
transparent_crc(g_2215.f3, "g_2215.f3", print_hash_value);
transparent_crc(g_2215.f4, "g_2215.f4", print_hash_value);
transparent_crc(g_2215.f5, "g_2215.f5", print_hash_value);
transparent_crc(g_2216.f0.f0, "g_2216.f0.f0", print_hash_value);
transparent_crc(g_2216.f0.f1, "g_2216.f0.f1", print_hash_value);
transparent_crc(g_2216.f0.f2, "g_2216.f0.f2", print_hash_value);
transparent_crc(g_2216.f0.f3, "g_2216.f0.f3", print_hash_value);
transparent_crc(g_2216.f0.f4, "g_2216.f0.f4", print_hash_value);
transparent_crc(g_2216.f0.f5, "g_2216.f0.f5", print_hash_value);
transparent_crc(g_2216.f1, "g_2216.f1", print_hash_value);
transparent_crc(g_2216.f2, "g_2216.f2", print_hash_value);
transparent_crc(g_2216.f3, "g_2216.f3", print_hash_value);
transparent_crc(g_2216.f4, "g_2216.f4", print_hash_value);
transparent_crc(g_2216.f5.f0, "g_2216.f5.f0", print_hash_value);
transparent_crc(g_2216.f5.f1.f0, "g_2216.f5.f1.f0", print_hash_value);
transparent_crc(g_2216.f5.f1.f1, "g_2216.f5.f1.f1", print_hash_value);
transparent_crc(g_2216.f5.f1.f2, "g_2216.f5.f1.f2", print_hash_value);
transparent_crc(g_2216.f5.f1.f3, "g_2216.f5.f1.f3", print_hash_value);
transparent_crc(g_2216.f5.f1.f4, "g_2216.f5.f1.f4", print_hash_value);
transparent_crc(g_2216.f5.f2, "g_2216.f5.f2", print_hash_value);
transparent_crc(g_2216.f5.f3, "g_2216.f5.f3", print_hash_value);
transparent_crc(g_2216.f5.f4, "g_2216.f5.f4", print_hash_value);
transparent_crc(g_2222.f0, "g_2222.f0", print_hash_value);
transparent_crc(g_2222.f1, "g_2222.f1", print_hash_value);
transparent_crc(g_2222.f2, "g_2222.f2", print_hash_value);
transparent_crc(g_2222.f3, "g_2222.f3", print_hash_value);
transparent_crc(g_2222.f4, "g_2222.f4", print_hash_value);
transparent_crc(g_2222.f5, "g_2222.f5", print_hash_value);
transparent_crc(g_2228.f0.f0, "g_2228.f0.f0", print_hash_value);
transparent_crc(g_2228.f0.f1, "g_2228.f0.f1", print_hash_value);
transparent_crc(g_2228.f0.f2, "g_2228.f0.f2", print_hash_value);
transparent_crc(g_2228.f0.f3, "g_2228.f0.f3", print_hash_value);
transparent_crc(g_2228.f0.f4, "g_2228.f0.f4", print_hash_value);
transparent_crc(g_2228.f0.f5, "g_2228.f0.f5", print_hash_value);
transparent_crc(g_2283.f0.f0, "g_2283.f0.f0", print_hash_value);
transparent_crc(g_2283.f0.f1, "g_2283.f0.f1", print_hash_value);
transparent_crc(g_2283.f0.f2, "g_2283.f0.f2", print_hash_value);
transparent_crc(g_2283.f0.f3, "g_2283.f0.f3", print_hash_value);
transparent_crc(g_2283.f0.f4, "g_2283.f0.f4", print_hash_value);
transparent_crc(g_2283.f0.f5, "g_2283.f0.f5", print_hash_value);
transparent_crc(g_2283.f1, "g_2283.f1", print_hash_value);
transparent_crc(g_2283.f2, "g_2283.f2", print_hash_value);
transparent_crc(g_2283.f3, "g_2283.f3", print_hash_value);
transparent_crc(g_2283.f4, "g_2283.f4", print_hash_value);
transparent_crc(g_2283.f5.f0, "g_2283.f5.f0", print_hash_value);
transparent_crc(g_2283.f5.f1.f0, "g_2283.f5.f1.f0", print_hash_value);
transparent_crc(g_2283.f5.f1.f1, "g_2283.f5.f1.f1", print_hash_value);
transparent_crc(g_2283.f5.f1.f2, "g_2283.f5.f1.f2", print_hash_value);
transparent_crc(g_2283.f5.f1.f3, "g_2283.f5.f1.f3", print_hash_value);
transparent_crc(g_2283.f5.f1.f4, "g_2283.f5.f1.f4", print_hash_value);
transparent_crc(g_2283.f5.f2, "g_2283.f5.f2", print_hash_value);
transparent_crc(g_2283.f5.f3, "g_2283.f5.f3", print_hash_value);
transparent_crc(g_2283.f5.f4, "g_2283.f5.f4", print_hash_value);
transparent_crc(g_2290.f0, "g_2290.f0", print_hash_value);
transparent_crc(g_2290.f1, "g_2290.f1", print_hash_value);
transparent_crc(g_2290.f2, "g_2290.f2", print_hash_value);
transparent_crc(g_2290.f3, "g_2290.f3", print_hash_value);
transparent_crc(g_2290.f4, "g_2290.f4", print_hash_value);
transparent_crc(g_2290.f5, "g_2290.f5", print_hash_value);
transparent_crc(g_2291.f0, "g_2291.f0", print_hash_value);
transparent_crc(g_2291.f1, "g_2291.f1", print_hash_value);
transparent_crc(g_2291.f2, "g_2291.f2", print_hash_value);
transparent_crc(g_2291.f3, "g_2291.f3", print_hash_value);
transparent_crc(g_2291.f4, "g_2291.f4", print_hash_value);
transparent_crc(g_2291.f5, "g_2291.f5", print_hash_value);
transparent_crc(g_2300, "g_2300", print_hash_value);
transparent_crc(g_2303.f0.f0, "g_2303.f0.f0", print_hash_value);
transparent_crc(g_2303.f0.f1, "g_2303.f0.f1", print_hash_value);
transparent_crc(g_2303.f0.f2, "g_2303.f0.f2", print_hash_value);
transparent_crc(g_2303.f0.f3, "g_2303.f0.f3", print_hash_value);
transparent_crc(g_2303.f0.f4, "g_2303.f0.f4", print_hash_value);
transparent_crc(g_2303.f0.f5, "g_2303.f0.f5", print_hash_value);
transparent_crc(g_2316.f0, "g_2316.f0", print_hash_value);
transparent_crc(g_2316.f1, "g_2316.f1", print_hash_value);
transparent_crc(g_2316.f2, "g_2316.f2", print_hash_value);
transparent_crc(g_2316.f3, "g_2316.f3", print_hash_value);
transparent_crc(g_2316.f4, "g_2316.f4", print_hash_value);
transparent_crc(g_2316.f5, "g_2316.f5", print_hash_value);
for (i = 0; i < 8; i++)
{
transparent_crc(g_2317[i].f0, "g_2317[i].f0", print_hash_value);
transparent_crc(g_2317[i].f1, "g_2317[i].f1", print_hash_value);
transparent_crc(g_2317[i].f2, "g_2317[i].f2", print_hash_value);
transparent_crc(g_2317[i].f3, "g_2317[i].f3", print_hash_value);
transparent_crc(g_2317[i].f4, "g_2317[i].f4", print_hash_value);
transparent_crc(g_2317[i].f5, "g_2317[i].f5", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_2331.f0.f0, "g_2331.f0.f0", print_hash_value);
transparent_crc(g_2331.f0.f1, "g_2331.f0.f1", print_hash_value);
transparent_crc(g_2331.f0.f2, "g_2331.f0.f2", print_hash_value);
transparent_crc(g_2331.f0.f3, "g_2331.f0.f3", print_hash_value);
transparent_crc(g_2331.f0.f4, "g_2331.f0.f4", print_hash_value);
transparent_crc(g_2331.f0.f5, "g_2331.f0.f5", print_hash_value);
transparent_crc(g_2333.f0, "g_2333.f0", print_hash_value);
transparent_crc(g_2333.f1, "g_2333.f1", print_hash_value);
transparent_crc(g_2333.f2, "g_2333.f2", print_hash_value);
transparent_crc(g_2333.f3, "g_2333.f3", print_hash_value);
transparent_crc(g_2333.f4, "g_2333.f4", print_hash_value);
transparent_crc(g_2333.f5, "g_2333.f5", print_hash_value);
transparent_crc(g_2365.f0, "g_2365.f0", print_hash_value);
transparent_crc(g_2365.f1, "g_2365.f1", print_hash_value);
transparent_crc(g_2365.f2, "g_2365.f2", print_hash_value);
transparent_crc(g_2365.f3, "g_2365.f3", print_hash_value);
transparent_crc(g_2365.f4, "g_2365.f4", print_hash_value);
transparent_crc(g_2365.f5, "g_2365.f5", print_hash_value);
transparent_crc(g_2368.f0, "g_2368.f0", print_hash_value);
transparent_crc(g_2368.f1, "g_2368.f1", print_hash_value);
transparent_crc(g_2368.f2, "g_2368.f2", print_hash_value);
transparent_crc(g_2368.f3, "g_2368.f3", print_hash_value);
transparent_crc(g_2368.f4, "g_2368.f4", print_hash_value);
transparent_crc(g_2378.f0, "g_2378.f0", print_hash_value);
for (i = 0; i < 5; i++)
{
for (j = 0; j < 1; j++)
{
transparent_crc(g_2381[i][j].f0, "g_2381[i][j].f0", print_hash_value);
transparent_crc(g_2381[i][j].f1, "g_2381[i][j].f1", print_hash_value);
transparent_crc(g_2381[i][j].f2, "g_2381[i][j].f2", print_hash_value);
transparent_crc(g_2381[i][j].f3, "g_2381[i][j].f3", print_hash_value);
transparent_crc(g_2381[i][j].f4, "g_2381[i][j].f4", print_hash_value);
transparent_crc(g_2381[i][j].f5, "g_2381[i][j].f5", print_hash_value);
if (print_hash_value) printf("index = [%d][%d]\n", i, j);
}
}
transparent_crc(g_2382.f0, "g_2382.f0", print_hash_value);
transparent_crc(g_2382.f1, "g_2382.f1", print_hash_value);
transparent_crc(g_2382.f2, "g_2382.f2", print_hash_value);
transparent_crc(g_2382.f3, "g_2382.f3", print_hash_value);
transparent_crc(g_2382.f4, "g_2382.f4", print_hash_value);
transparent_crc(g_2382.f5, "g_2382.f5", print_hash_value);
transparent_crc(g_2383.f0, "g_2383.f0", print_hash_value);
transparent_crc(g_2383.f1, "g_2383.f1", print_hash_value);
transparent_crc(g_2383.f2, "g_2383.f2", print_hash_value);
transparent_crc(g_2383.f3, "g_2383.f3", print_hash_value);
transparent_crc(g_2383.f4, "g_2383.f4", print_hash_value);
transparent_crc(g_2383.f5, "g_2383.f5", print_hash_value);
for (i = 0; i < 9; i++)
{
transparent_crc(g_2389[i].f0, "g_2389[i].f0", print_hash_value);
transparent_crc(g_2389[i].f1, "g_2389[i].f1", print_hash_value);
transparent_crc(g_2389[i].f2, "g_2389[i].f2", print_hash_value);
transparent_crc(g_2389[i].f3, "g_2389[i].f3", print_hash_value);
transparent_crc(g_2389[i].f4, "g_2389[i].f4", print_hash_value);
transparent_crc(g_2389[i].f5, "g_2389[i].f5", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_2390.f0, "g_2390.f0", print_hash_value);
transparent_crc(g_2390.f1, "g_2390.f1", print_hash_value);
transparent_crc(g_2390.f2, "g_2390.f2", print_hash_value);
transparent_crc(g_2390.f3, "g_2390.f3", print_hash_value);
transparent_crc(g_2390.f4, "g_2390.f4", print_hash_value);
transparent_crc(g_2390.f5, "g_2390.f5", print_hash_value);
transparent_crc(g_2391.f0, "g_2391.f0", print_hash_value);
transparent_crc(g_2391.f1, "g_2391.f1", print_hash_value);
transparent_crc(g_2391.f2, "g_2391.f2", print_hash_value);
transparent_crc(g_2391.f3, "g_2391.f3", print_hash_value);
transparent_crc(g_2391.f4, "g_2391.f4", print_hash_value);
transparent_crc(g_2391.f5, "g_2391.f5", print_hash_value);
transparent_crc(g_2392.f0.f0, "g_2392.f0.f0", print_hash_value);
transparent_crc(g_2392.f0.f1, "g_2392.f0.f1", print_hash_value);
transparent_crc(g_2392.f0.f2, "g_2392.f0.f2", print_hash_value);
transparent_crc(g_2392.f0.f3, "g_2392.f0.f3", print_hash_value);
transparent_crc(g_2392.f0.f4, "g_2392.f0.f4", print_hash_value);
transparent_crc(g_2392.f0.f5, "g_2392.f0.f5", print_hash_value);
platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
return 0;
}
/************************ statistics *************************
XXX max struct depth: 3
breakdown:
depth: 0, occurrence: 552
depth: 1, occurrence: 62
depth: 2, occurrence: 26
depth: 3, occurrence: 8
XXX total union variables: 0
XXX non-zero bitfields defined in structs: 12
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 2
XXX volatile bitfields defined in structs: 4
XXX structs with bitfields in the program: 180
breakdown:
indirect level: 0, occurrence: 75
indirect level: 1, occurrence: 54
indirect level: 2, occurrence: 16
indirect level: 3, occurrence: 20
indirect level: 4, occurrence: 11
indirect level: 5, occurrence: 4
XXX full-bitfields structs in the program: 54
breakdown:
indirect level: 0, occurrence: 54
XXX times a bitfields struct's address is taken: 71
XXX times a bitfields struct on LHS: 8
XXX times a bitfields struct on RHS: 77
XXX times a single bitfield on LHS: 4
XXX times a single bitfield on RHS: 144
XXX max expression depth: 44
breakdown:
depth: 1, occurrence: 362
depth: 2, occurrence: 65
depth: 3, occurrence: 10
depth: 4, occurrence: 6
depth: 5, occurrence: 3
depth: 6, occurrence: 3
depth: 7, occurrence: 2
depth: 8, occurrence: 2
depth: 9, occurrence: 1
depth: 11, occurrence: 1
depth: 12, occurrence: 1
depth: 14, occurrence: 6
depth: 15, occurrence: 2
depth: 16, occurrence: 1
depth: 17, occurrence: 4
depth: 18, occurrence: 7
depth: 19, occurrence: 4
depth: 20, occurrence: 4
depth: 21, occurrence: 2
depth: 22, occurrence: 3
depth: 24, occurrence: 2
depth: 25, occurrence: 3
depth: 26, occurrence: 3
depth: 27, occurrence: 2
depth: 28, occurrence: 3
depth: 31, occurrence: 1
depth: 32, occurrence: 2
depth: 34, occurrence: 1
depth: 35, occurrence: 1
depth: 37, occurrence: 2
depth: 40, occurrence: 1
depth: 44, occurrence: 1
XXX total number of pointers: 568
XXX times a variable address is taken: 1609
XXX times a pointer is dereferenced on RHS: 223
breakdown:
depth: 1, occurrence: 168
depth: 2, occurrence: 47
depth: 3, occurrence: 8
XXX times a pointer is dereferenced on LHS: 329
breakdown:
depth: 1, occurrence: 311
depth: 2, occurrence: 16
depth: 3, occurrence: 2
XXX times a pointer is compared with null: 42
XXX times a pointer is compared with address of another variable: 8
XXX times a pointer is compared with another pointer: 7
XXX times a pointer is qualified to be dereferenced: 7162
XXX max dereference level: 5
breakdown:
level: 0, occurrence: 0
level: 1, occurrence: 1564
level: 2, occurrence: 220
level: 3, occurrence: 42
level: 4, occurrence: 13
level: 5, occurrence: 2
XXX number of pointers point to pointers: 209
XXX number of pointers point to scalars: 271
XXX number of pointers point to structs: 88
XXX percent of pointers has null in alias set: 31.2
XXX average alias set size: 1.61
XXX times a non-volatile is read: 1694
XXX times a non-volatile is write: 994
XXX times a volatile is read: 148
XXX times read thru a pointer: 22
XXX times a volatile is write: 28
XXX times written thru a pointer: 5
XXX times a volatile is available for access: 5.83e+03
XXX percentage of non-volatile access: 93.9
XXX forward jumps: 2
XXX backward jumps: 11
XXX stmts: 333
XXX max block depth: 5
breakdown:
depth: 0, occurrence: 22
depth: 1, occurrence: 16
depth: 2, occurrence: 31
depth: 3, occurrence: 55
depth: 4, occurrence: 91
depth: 5, occurrence: 118
XXX percentage a fresh-made variable is used: 20.9
XXX percentage an existing variable is used: 79.1
FYI: the random generator makes assumptions about the integer size. See platform.info for more details.
********************* end of statistics **********************/
|
e7bfa465e1ef2729e5ad614a6a1eed8954bff6d3
|
9653e3bf48f3b70ba18b80c8abb5dd691f41757d
|
/old/src/pinteract_all/pinteract_alert.c
|
7cfe045f6724ef6d4e0bd6b26c6fdc6ff6f2a26f
|
[] |
no_license
|
avibagla/pebblewatch
|
16d1b8546c90984a3ee494fc771114d059163c1d
|
8b37e948b281ea4b2a59334251c56d1b7737c1dc
|
refs/heads/master
| 2021-01-18T03:49:14.724785 | 2016-03-13T00:05:09 | 2016-03-13T00:05:09 | 52,567,369 | 0 | 0 | null | 2016-02-26T00:37:58 | 2016-02-26T00:37:58 | null |
UTF-8
|
C
| false | false | 727 |
c
|
pinteract_alert.c
|
#include "pinteract_func.h"
uint16_t pinteract_alert(struct pinteract_func_ll_el* pif_ll_el ){
uint8_t *tmp = pif_ll_el->buf;
APP_LOG(APP_LOG_LEVEL_ERROR, "GOT TO PINTERACT ALERT");
APP_LOG(APP_LOG_LEVEL_ERROR, "sample: %u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u,%u",
tmp[0],tmp[1],tmp[2],tmp[3],tmp[4],tmp[5],tmp[6],tmp[7],tmp[8],
tmp[9],tmp[10],tmp[11],tmp[12],tmp[13],tmp[14],tmp[15],tmp[16],tmp[17],
tmp[18],tmp[19],tmp[20],tmp[21],tmp[22]);
APP_LOG(APP_LOG_LEVEL_ERROR, "timestamps: %d,%d,%d",
(int)read_res_buf_byte_count(tmp,0),
(int)read_time_from_array_head(&tmp[4]),
(int)read_time_from_array_head(&tmp[8]) );
return 0;
}
|
e016d0d6391b30b6a9de82ed93cd48f96f8a9f5f
|
a6a479d266622bc5f2558fa11992069e3d4827db
|
/IOS_2/h2o.c
|
f57a038e2d531a3e57066a9cd474f6003e6e17a9
|
[] |
no_license
|
Klarksonnek/FIT
|
1c8831b3af40a191576b10144a829ed6d9d0027d
|
c6a041aa8305cda244f8ac691479004789f8fe06
|
refs/heads/master
| 2021-03-27T09:49:30.377896 | 2019-07-04T15:03:08 | 2019-07-04T15:03:08 | 107,965,893 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 20,068 |
c
|
h2o.c
|
/*
* Soubor: h2o.c
* Projekt: 2. uloha pro predmet IOS (Operacni systemy)
* Building H2O Problem
* Autor: Klara Necasova (xnecas24@stud.fit.vutbr.cz)
* Datum: Kveten 2015
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <semaphore.h>
//#include <errno.h>
// jmeno logovaciho souboru
#define FILENAME "h2o.out"
// maximalni cas (generovani kysliku, vodiku, provadeni funkce bond())
#define MAXTIME 5001
/**
* Struktura obsahujici hodnoty parametru prikazove radky.
*/
typedef struct
{
int hydrogenCount; // pocet procesu reprezentujicich vodik
int oxygenCount; // pocet procesu reprezentujicich kyslik
int oxygenTime; // max. doba, po kerou se generuje proces pro kyslik
int hydrogenTime; // max. doba, po kerou se generuje proces pro vodik
int bondTime; // max. doba provadeni funkce bond()
int error; // pro indikaci chyby
} TParams;
/**
* Struktura pro sdilenou pamet.
*/
typedef struct
{
sem_t sWriteToFile;
sem_t sAtomMutex;
sem_t sWaitForBondingEnd;
sem_t oxyQueue;
sem_t hydroQueue;
sem_t bondedBarrierMutex;
sem_t bondedBarrier;
sem_t finishedBarrierMutex;
sem_t finishedBarrier;
int hydrogenCount;
int oxygenCount;
int actionCounter;
int bondedBarrierCnt;
int finishedBarrierCnt;
} TSharedMem;
/** Typy procesu - vodik/kyslik. */
enum atomtypes
{
HYDROGEN,
OXYGEN,
};
/** Kody pro identifikaci vystupni zpravy. */
enum msgcodes
{
STARTED,
WAITING,
READY,
BEGIN_BONDING,
BONDED,
FINISHED,
};
/** Hlaseni odpovidajici kodum pro identifikaci vystupni zpravy. */
const char *STATEMSG[] =
{
"started\n",
"waiting\n",
"ready\n",
"begin bonding\n",
"bonded\n",
"finished\n",
};
/** Kody chyb programu. */
enum tecodes
{
EOK, /**< Bez chyby. */
EPARAMS, /**< Chybny prikazovy radek. */
ECONVERTION, /**< Chyba pri prevodu retezce na cislo. */
ERANGE, /**< Chybny rozsah. */
EFOPEN, /**< Chyba pri otevirani souboru. */
ESHMEM, /**< Chyba pri praci se sdilenou pameti. */
EFORK, /**< Chyba pri volani funkce fork(). */
EWAIT, /**< Chyba pri volani funkce wait(). */
EUNKNOWN, /**< Neznama chyba. */
};
/** Chybova hlaseni odpovidajici chybovym kodum ve vyctu tecodes. */
const char *ECODEMSG[] =
{
"Vse v poradku.\n",
"Chybne parametry prikazoveho radku!\n",
"Nezdaril se prevod retezce na cislo!\n",
"Parametry prikazovaho radku jsou mimo rozsah!\n",
"Soubor se nezdarilo otevrit!\n",
"Chyba pri praci se sdilenou pameti!\n",
"Chyba pri vytvareni procesu!\n",
"Chyba pri volani funkce wait!\n",
"Neznama chyba!\n",
};
/**
* Vytiskne hlaseni odpovidajici chybovemu kodu.
* @param ecode Kod chyby programu.
*/
void printECode(int ecode)
{
if(ecode < EOK || ecode > EUNKNOWN)
{
ecode = EUNKNOWN;
}
fprintf(stderr, "%s", ECODEMSG[ecode]);
}
/**
* Zpracuje argumenty prikazoveho radku a vrati je ve strukture TParams.
* Pokud je format argumentu chybny, ukonci program s chybovym kodem.
* @param argc Pocet argumentu.
* @param argv Pole textovych retezcu s argumenty.
* @return Vraci analyzovane argumenty prikazoveho radku.
*/
TParams getParams(int argc, char *argv[])
{
TParams params;
// inicializace struktury
params.bondTime = 0;
params.hydrogenCount = 0;
params.hydrogenTime = 0;
params.oxygenCount = 0;
params.oxygenTime = 0;
params.error = EOK;
if(argc != 5)
{// neodpovidajici pocet argumentu
params.error = EPARAMS;
return params;
}
char* pEnd;
/// pocet procesu kysliku
params.oxygenCount = strtol(argv[1], &pEnd, 10);
if(*pEnd != '\0')
{
params.error = ECONVERTION;
}
if(params.oxygenCount <= 0)
{
params.error = ERANGE;
}
// pocet atomu vodiku = 2 * pocet_atomu_kysliku
params.hydrogenCount = params.oxygenCount*2;
/// max doba generovani - vodik
params.hydrogenTime = strtol (argv[2], &pEnd, 10);
if(*pEnd != '\0')
{
params.error = ECONVERTION;
}
if(params.hydrogenTime < 0 || params.hydrogenTime >= MAXTIME)
{
params.error = ERANGE;
}
/// max doba generovani - kyslik
params.oxygenTime = strtol (argv[3], &pEnd, 10);
if(*pEnd != '\0')
{
params.error = ECONVERTION;
}
if(params.oxygenTime < 0 || params.oxygenTime >= MAXTIME)
{
params.error = ERANGE;
}
/// max doba provadeni funkce bond()
params.bondTime = strtol (argv[4], &pEnd, 10);
if(*pEnd != '\0')
{
params.error = ECONVERTION;
}
if(params.bondTime < 0 || params.bondTime >= MAXTIME)
{
params.error = ERANGE;
}
return params;
}
/**
* Vytvori sdilenou pamet.
* @param shmif ID sdilene pameti.
* @param path Cesta k souboru - pouzije se pro vygenerovani klice (funkce ftok()).
* @return Vraci chybovy kod, jinak EOK.
*/
int createSharedMemory(int* shmid, const char *path)
{
// zisk jedinecneho klice
key_t key = ftok(path, 0x01);
if((*shmid = shmget(key, sizeof(TSharedMem), IPC_CREAT | 0666)) == -1)
{// zisk sdilene pameti
printECode(ESHMEM);
return 2;
}
return EOK;
}
/**
* Inicializuje sdilenou pamet.
* @param shmid ID sdilene pameti.
* @param tsm Ukazatel na strukturu reprezentujici sdilenou pamet.
* @return Vraci chybovy kod, jinak EOK.
*/
int initSharedMemory(int shmid, TSharedMem **tsm)
{
if((*tsm = shmat(shmid, NULL, 0)) == (void *) -1)
{// zisk odkazu na sdilenou pamet
printECode(ESHMEM);
return 2;
}
// inicializace struktury
TSharedMem *tsmptr = *tsm;
// inicializace sdilenych promennych
tsmptr->actionCounter = 0;
tsmptr->hydrogenCount = 0;
tsmptr->oxygenCount = 0;
tsmptr->bondedBarrierCnt = 0;
tsmptr->finishedBarrierCnt = 0;
// inicializace semaforu
if(sem_init(&(tsmptr->sWriteToFile), 1, 1) == -1 ||
sem_init(&(tsmptr->sAtomMutex), 1, 1) == -1 ||
sem_init(&(tsmptr->oxyQueue), 1, 0) == -1 ||
sem_init(&(tsmptr->hydroQueue), 1, 0) == -1 ||
sem_init(&(tsmptr->bondedBarrierMutex), 1, 1) == -1 ||
sem_init(&(tsmptr->bondedBarrier), 1, 0) == -1 ||
sem_init(&(tsmptr->finishedBarrierMutex), 1, 1) == -1 ||
sem_init(&(tsmptr->finishedBarrier), 1, 0) == -1)
{
printECode(ESHMEM);
return 2;
}
return EOK;
}
/**
* Uvolni sdilenou pamet.
* @param tsm Ukazatel na strukturu reprezentujici sdilenou pamet.
* @param shmid ID sdilene pameti.
* @return Vraci chybovy kod, jinak EOK.
*/
int freeSharedMemory(TSharedMem* tsm, int shmid)
{
// odstraneni semaforu
if(sem_destroy(&(tsm->sWriteToFile)) == -1 ||
sem_destroy(&(tsm->sAtomMutex)) == -1 ||
sem_destroy(&(tsm->oxyQueue)) == -1 ||
sem_destroy(&(tsm->hydroQueue)) == -1 ||
sem_destroy(&(tsm->bondedBarrierMutex)) == -1 ||
sem_destroy(&(tsm->bondedBarrier)) == -1 ||
sem_destroy(&(tsm->finishedBarrierMutex)) == -1 ||
sem_destroy(&(tsm->finishedBarrier)) == -1)
{
printECode(ESHMEM);
return 2;
}
if(shmctl(shmid, IPC_RMID, NULL) == -1)
{// odstraneni segmentu sdilene pameti (IPC_RMID)
printECode(ESHMEM);
return 2;
}
return EOK;
}
/**
* Funkce pro zapis do souboru.
* @param tsm Ukazatel na strukturu reprezentujici sdilenou pamet.
* @param type Typ atomu (vodik/kyslik).
* @param id Udava poradi atomu daneho typu.
* @param msgType Typ zpravy pro vypis.
* @param f Popisovac souboru.
* @return Vraci chybovy kod, jinak EOK.
*/
int writeToFile(TSharedMem* tsm, int type, int id, int msgType, FILE *f)
{
// zamkne se semafor pro vylucny pristup k souboru
sem_wait(&tsm->sWriteToFile);
// zvysime citac akci
tsm->actionCounter++;
// zapis do souboru
fprintf(f, "%d\t: %c %d\t: %s", tsm->actionCounter, type == OXYGEN ? 'O' : 'H', id + 1, STATEMSG[msgType]);
// odemkne se semafor pro vylucny pristup k souboru
sem_post(&tsm->sWriteToFile);
return EOK;
}
/**
* Funkce pro tvorbu molekuly vody (h2O).
* @param tsm Ukazatel na strukturu reprezentujici sdilenou pamet.
* @param type Typ atomu (vodik/kyslik).
* @param bondTime Maximalni cas trvani funkce bond().
* @param id Udava poradi atomu daneho typu.
* @param f Popisovac souboru.
* @return Vraci chybovy kod, jinak EOK.
*/
void bond(TSharedMem* tsm, int bondTime, int type, int id, FILE *f)
{
// zapis prislusneho hlaseni do souboru
writeToFile(tsm, type, id, BEGIN_BONDING, f);
// simulace zpozdeni
if(bondTime == 0)
{
usleep(0);
}
else
{
usleep((rand() % bondTime) * 1000);
}
}
/**
* Funkce reprezentujici zivotni cyklus atomu.
* @param tsm Ukazatel na strukturu reprezentujici sdilenou pamet.
* @param params Ukazatel na strukturu s parametry prikazove radky.
* @param type Typ atomu (vodik/kyslik).
* @param id Udava poradi atomu daneho typu.
* @param shmid ID sdilene pameti.
* @param f Popisovac souboru.
* @return Vraci chybovy kod, jinak EOK.
*/
int atomLifeCycle(TSharedMem* tsm, TParams* params, int type, int id, FILE *f)
{
if(type == OXYGEN)
{/// KYSLIK
// uzamkneme kritickou sekci (KS)
sem_wait(&tsm->sAtomMutex);
// zapis do souboru - started
writeToFile(tsm, type, id, STARTED, f);
// inkrementace citace molekul kysliku
tsm->oxygenCount+=1;
if(tsm->hydrogenCount >= 2)
{// podminka nutna pro vytvoreni molekuly h2O
// zapis do souboru - ready
writeToFile(tsm, type, id, READY, f);
// uvolneni 2 vodiku
sem_post(&tsm->hydroQueue);
sem_post(&tsm->hydroQueue);
tsm->hydrogenCount -= 2;
// uvolneni 1 kysliku
sem_post(&tsm->oxyQueue);
tsm->oxygenCount -= 1;
}
else
{// neni dostatek vodiku pro vytvoreni molekuly h2O - uvolnime KS
// zapis do souboru - waiting
writeToFile(tsm, type, id, WAITING, f);
// uvolneni kriticke sekce
sem_post(&tsm->sAtomMutex);
}
// bariera pred volanim funkce bond()
sem_wait(&tsm->oxyQueue);
// volani funkce bond()
bond(tsm, params->bondTime, type, id, f);
// bariera pro synchronizaci vypisu bonded - vypis ve spravnem poradi
sem_wait(&tsm->bondedBarrierMutex);
tsm->bondedBarrierCnt++;
sem_post(&tsm->bondedBarrierMutex);
if(tsm->bondedBarrierCnt % 3 == 0)
{// cekame na 3 atomy
sem_post(&tsm->bondedBarrier);
}
sem_wait(&tsm->bondedBarrier);
sem_post(&tsm->bondedBarrier);
// zapis do souboru - bonded
writeToFile(tsm, type, id, BONDED, f);
// uvolneni KS
sem_post(&tsm->sAtomMutex);
}
/////////////////////////////////////////////////////////////
if(type == HYDROGEN)
{/// VODIK
// uzamkneme kritickou sekci (KS)
sem_wait(&tsm->sAtomMutex);
// zapis do souboru - started
writeToFile(tsm, type, id, STARTED, f);
// inkrementace citace molekul vodiku
tsm->hydrogenCount += 1;
if(tsm->hydrogenCount >= 2 && tsm->oxygenCount >= 1)
{// podminka nutna pro vytvoreni molekuly h2O
// zapis do souboru - ready
writeToFile(tsm, type, id, READY, f);
// uvolneni 2 vodiku
sem_post(&tsm->hydroQueue);
sem_post(&tsm->hydroQueue);
tsm->hydrogenCount -= 2;
// uvolneni 1 kysliku
sem_post(&tsm->oxyQueue);
tsm->oxygenCount -= 1;
}
else
{// neni dostatek molekul pro vytvoreni molekuly h2O - uvolnime KS
// zapis do souboru - waiting
writeToFile(tsm, type, id, WAITING, f);
// uvolneni KS
sem_post(&tsm->sAtomMutex);
}
// bariera pred volanim funkce bond()
sem_wait(&tsm->hydroQueue);
// volani funkce bond()
bond(tsm, params->bondTime, type, id, f);
// bariera pro synchronizaci vypisu bonded - vypis ve spravnem poradi
sem_wait(&tsm->bondedBarrierMutex);
tsm->bondedBarrierCnt++;
sem_post(&tsm->bondedBarrierMutex);
if(tsm->bondedBarrierCnt % 3 == 0)
{// cekame na 3 atomy
sem_post(&tsm->bondedBarrier);
}
sem_wait(&tsm->bondedBarrier);
sem_post(&tsm->bondedBarrier);
// zapis do souboru - bonded
writeToFile(tsm, type, id, BONDED, f);
}
// bariera pro synchronizaci vypisu finished - cekani na vytvoreni molekul ze vsech atomu
sem_wait(&tsm->finishedBarrierMutex);
tsm->finishedBarrierCnt++;
sem_post(&tsm->finishedBarrierMutex);
if(tsm->finishedBarrierCnt == params->hydrogenCount + params->oxygenCount)
{// pokud se pocet dokoncenych molekul rovna souctu atomu vodiku a kysliku -> konec
sem_post(&tsm->finishedBarrier);
}
sem_wait(&tsm->finishedBarrier);
sem_post(&tsm->finishedBarrier);
// zapis do souboru - finished
writeToFile(tsm, type, id, FINISHED, f);
return EOK;
}
/**
* Funkce pro generovani potomku daneho typu.
* @param tsm Ukazatel na strukturu reprezentujici sdilenou pamet.
* @param params Ukazatel na strukturu s parametry prikazove radky.
* @param type Typ atomu (vodik/kyslik).
* @param shmid ID sdilene pameti.
* @param f Popisovac souboru.
* @return Vraci chybovy kod, jinak EOK.
*/
int generateAtoms(TSharedMem* tsm, TParams* params, int type, int shmid, FILE *f)
{
pid_t pid = -1;
int childCount = 0;
if(type == OXYGEN)
{/// KYSLIK
for(int i=0; i < params->oxygenCount; i++)
{// vytvoreni daneho poctu atomu kysliku
// simulace zpozdeni
if(params->oxygenTime == 0)
{
usleep(0);
}
else
{
usleep((rand() % params->oxygenTime) * 1000);
}
if((pid = fork()) == 0)
{// vytvareni potomku
if((tsm = shmat(shmid, NULL, 0)) == (void *) -1)
{// prirazeni segmentu sdilene pameti pro dany proces
printECode(ESHMEM);
return 2;
}
// zivotni cyklus atomu
atomLifeCycle(tsm, params, type, i, f);
return EOK;
}
else if(pid == -1)
{// overeni uspesnosti funkce fork()
printECode(ESHMEM);
freeSharedMemory(tsm, shmid);
return 2;///???
}
else
{// inkrementace citace poctu potomku
childCount++;
}
}// end for
}
else
{/// VODIK
for(int i=0; i<params->hydrogenCount; i++)
{// vytvoreni daneho poctu atomu vodiku
// simulace zpozdeni
if(params->hydrogenTime == 0)
{
usleep(0);
}
else
{
usleep((rand() % params->hydrogenTime) * 1000);
}
if ((pid = fork()) == 0)
{// vytvoreni potomku
if((tsm = shmat(shmid, NULL, 0)) == (void *) -1)
{// prirazeni segmentu sdilene pameti pro dany proces
printECode(ESHMEM);
return 2;
}
// zivotni cyklus atomu
atomLifeCycle(tsm, params, type, i, f);
return EOK; ///???
}
else if (pid == -1)
{// overeni uspesnosti funkce fork()
printECode(ESHMEM);
freeSharedMemory(tsm, shmid);
return 2;
}
else
{// inkrementace citace poctu potomku
childCount++;
}
}// end for
}
////////////////////////////////////////
if(pid > 0)
{// rodicovsky proces ceka na dokonceni potomku
for(int i = 0; i < childCount; i++)
{
pid_t child_pid;
pid=wait(&child_pid);
if(pid == -1)
{
printECode(EWAIT);
return 2;
}
}
}
return EOK;
}
/**
* Funkce pro vytvoreni 2 pomocnych procesu (generatoru) pro vodik a kyslik.
* @param tsm Ukazatel na strukturu reprezentujici sdilenou pamet.
* @param params Ukazatel na strukturu s parametry prikazove radky.
* @param shmid ID sdilene pameti.
* @param f Popisovac souboru.
* @return Vraci chybovy kod, jinak EOK.
*/
int createGenerators(TSharedMem* tsm, TParams* params, int shmid, FILE *f)
{
pid_t pid = -1;
if((pid = fork()) == 0)
{/// VODIK
if((tsm = shmat(shmid, NULL, 0)) == (void *) -1)
{// prirazeni segmentu sdilene pameti pro dany proces
printECode(ESHMEM);
return 2;
}
// generovani atomu vodiku
if(generateAtoms(tsm, params, HYDROGEN, shmid, f) != EOK)
{
return 2;
}
return EOK;
}
else if(pid < 0)
{// overeni uspesnosti funkce fork()
printECode(EFORK);
return 2;
}
if((pid = fork()) == 0)
{/// KYSLIK
if((tsm = shmat(shmid, NULL, 0)) == (void *) -1)
{// prirazeni segmentu sdilene pameti pro dany proces
printECode(ESHMEM);
return 2;
}
// generovani atomu kysliku
if(generateAtoms(tsm, params, OXYGEN, shmid, f) != EOK)
{
return 2;
}
return EOK;
}
else if(pid < 0)
{// overeni uspesnosti funkce fork()
printECode(EFORK);
return 2;
}
/////////////////////////////////////
if(pid > 0)
{// rodic ceka na svoje potomky (pomocne procesy)
for(int i = 0; i < 2; i++)
{
pid_t child_pid;
pid=wait(&child_pid);
if(pid == -1)
{
printECode(EWAIT);
return 2;
}
}
}
return EOK;
}
/**
* Hlavni program.
*/
int main(int argc, char**argv)
{
FILE *f;
TParams params;
/// zpracovani parametru prikazove radky
params = getParams(argc, argv);
if(params.error != EOK)
{
printECode(params.error);
return 1;
}
TSharedMem *tsm = NULL;
int shmid = -1;
/// vytvoreni sdilene pameti
if(createSharedMemory(&shmid, argv[0]) != EOK)
{
printECode(ESHMEM);
freeSharedMemory(tsm, shmid);
return 2;
}
/// inicializace sdilene pameti
if(initSharedMemory(shmid, &tsm) != EOK)
{
printECode(ESHMEM);
freeSharedMemory(tsm, shmid);
return 2;
}
// inicializace generatoru pseudonahodnych cisel
srand(time(NULL));
f = fopen(FILENAME, "w");
if(f == NULL)
{// overeni uspesnosti otevreni souboru
printECode(EFOPEN);
freeSharedMemory(tsm, shmid);
return 2;
}
// zakaz bufferovani
setbuf(f, NULL);
setbuf(stderr, NULL);
/// generovani atomu
if(createGenerators(tsm, ¶ms, shmid, f) != EOK)
{
printECode(EFOPEN);
freeSharedMemory(tsm, shmid);
fclose(f);
return 2;
}
/// uvolenni zdroju
if(freeSharedMemory(tsm, shmid) != EOK)
{
printECode(EFOPEN);
freeSharedMemory(tsm, shmid);
fclose(f);
return 2;
}
fclose(f);
return EOK;
}
|
8501f888a5ca510821806652e8260b1e47a7255d
|
88b4bb7bb047da24982c7d985d78d8143e626cc0
|
/7.Branching&Jumps/Exercises/5.c
|
7dbee4999379ff99d07f73a14fd8d22f13b20318
|
[
"MIT"
] |
permissive
|
HuangStomach/C-primer-plus
|
f26e1fad85a651bcc5c4b36bfe60b1e1cea7e991
|
ecb24ab1ba3ec58e68cff2fce5049b328e84c24b
|
refs/heads/master
| 2020-06-07T23:29:20.126880 | 2019-08-02T14:36:57 | 2019-08-02T14:36:57 | 193,114,791 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 382 |
c
|
5.c
|
#include <stdio.h>
int main(void) {
char ch;
int i = 0;
int j = 0;
printf("Enter something to test the program(# to quit): ");
while ((ch = getchar()) != '#') {
switch (ch) {
case '.':
i++;
putchar('!');
break;
case '!':
putchar('!');
putchar('!');
j++;
break;
default:
putchar(ch);
break;
}
}
printf("%d times\n",i + j);
return 0;
}
|
14d47b1fd02634dfb1de8f23c4d3803300a700ef
|
ecfadf59abf0c377e4fbaafb8f594420d8d23277
|
/C/Henk Robbers/AHCC.SRC/COMMON/FILES.C
|
64a16fdf49d308d3c916b8638dccd81a182a477a
|
[] |
no_license
|
laurentd75/ggnkua_Atari_ST_Sources_Repository
|
71fad5fc5ee3ea7bbd807ec6a6d4a99f7ef31334
|
b51e02ffd546ba8260a5645a51acd90d66c16832
|
refs/heads/master
| 2023-08-31T14:13:18.440660 | 2023-08-24T10:09:58 | 2023-08-24T10:09:58 | 164,442,362 | 0 | 0 | null | 2023-09-03T00:24:29 | 2019-01-07T14:12:47 | null |
UTF-8
|
C
| false | false | 12,825 |
c
|
FILES.C
|
/* Copyright (c) 1990 - present by Henk Robbers Amsterdam.
*
* This file is part of AHCC.
*
* AHCC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* AHCC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with AHCC; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* FILES.C
* =======
*
* This module concentrates ALL and ONly the open menu entries.
*/
#define TI2 1 /* Tile if 2 startfiles */
#include <string.h>
#include "aaaa_lib.h"
#include "hierarch.h"
#include "mallocs.h"
#include "aaaa.h"
#include "kit.h"
#include "cursor.h"
#include "hierarch.h"
#include "text/cursor.h" /* for x_to_s_t */
#if TEXTFILE
#include "text/text.h"
#endif
#include "files.h"
#include "journal.h"
#if DIGGER
#include "digger/dig.h"
#include "digger/digobj.h"
#endif
#if BINARY
#include "bined/ed.h"
#endif
#if WKS
FOPEN open_sheet;
void cinf_upd(IT *w, CINF *ci);
#endif
#if MFRAC
#include "mandel/mandelbr.h"
#endif
#include "ahcm.h"
#ifdef TTPSHELL
#define frstr(a) a
char FNF[] = "File | '%s' |not found | %s";
char FNOP[] = "Cant create | '%s'";
char FNW[] = "Couldnt write to | '%s'";
#endif
global
char *argmake; /* If a .prj is passed in argv */
global
void not_found(Cstr fn)
{
alertm(frstr(FNF),fn);
}
global
bool write_out(IT *w, char *fn)
{
FILE *oup=fopen(fn,"w");
if (!oup)
{
alertm(frstr(FNOP), fn);
return false;
othw
STMDEF *m=w->base;
STMC *s;
long wcnt;
w->fl = oup->Handle;
s = stmfifirst(m);
while (s)
{
char tus[MAXL+3]; /* allow for \r\n */
char *t=tus;
char *u=s->xtx;
short ll=0;
while (*u) *t++=*u++,ll++;
#if INTERNAL
{
static short sll=1;
if (ll ne s->xl and sll)
sll=0,
alertm("Internal error | inconsistent: | ll:%d, s->xl:%d ",ll,s->xl);
}
#endif
if (stmcur(*m) eq stmlast(*m))
{
if (!s->xl)
break;
}
else
*t++='\n',ll++;
*t=0;
wcnt=fwrite(tus,ll,1,oup); /* fwrite adds itself the '\r' (PC, GEMDOS) */
if (wcnt ne 1)
{
wcnt=-1;
alertm(frstr(FNW), fn);
break;
}
s=stmfinext(m);
}
fclose(oup);
if (wcnt < 0)
return false;
}
return true;
}
global
bool savemsgfile(IT *w)
{
if (w)
{
char *fn = select_file(&idir, nil, &fsel, " Save journal as ... ", &drive);
if (fn)
write_out(w, fn);
return true;
}
return false;
}
#ifdef TEXTFILE
global
void open_text_file(char *fn) /* open a given textfile if not already open */
{
long fl;
IT *w=get_fn_it(fn); /* cached */
if (w)
{
if (!w->op)
open_text(fn,-1, &deskw.loc);
}
else
if ( (fl=Fopen(fn, 0)) > 0)
{
open_text(fn, fl, &deskw.loc);
othw
open_text(fn, 0, &deskw.loc);
}
}
static
void textfile(short mt) /* open speficly via menu */
{
MAX_dir suf;
char *filename;
short i=0;
char *me = get_freestring(Menu, mt);
while (*me and *me ne '.') me++;
if (*me eq '.' and *(me+1) ne '.')
{ /* one of the 'Open .x' entries */
while (*me and *me ne ' ') suf[i++] = *me++;
suf[i] = 0;
idir = dir_plus_name(&idir, "*.*"); /* 08'13 HR */
idir = change_suffix(&idir, suf);
if (*fsel.s)
fsel = change_suffix(&fsel, suf);
}
#ifndef OPEN_ANY_IS_LAST
else /* Open ... */
idir = change_suffix(&idir, ".*");
/* dont change fsel */
#endif
filename=select_file(&idir, nil, &fsel, " Open text file ", &drive);
if (filename ne nil)
open_text_file(filename);
}
#endif
#if BINARY
void open_DMA(void);
static
void binary_file(short mt)
{
long fl;
char *fn=select_file(&idir, nil, &fsel, " Open binary file ", &drive);
if (fn ne nil)
{
if ( (fl=Fopen(fn,0)) > 0)
open_binary(fn,fl, nil);
else
not_found(fn);
}
}
#endif
#if MFRAC
void mandel_palet(void);
static
void mandel_file(short mt)
{
long fl;
char *fn=select_file(&idir, nil, &fsel, " Open mandelbrot file ", &drive);
if (fn ne nil)
{
if ( (fl=Fopen(fn,0)) > 0)
open_mandel(fn,fl,nil);
else
not_found(fn);
}
}
#endif
global
void open_startfile(char *fn, short fl, short ty, F_CFG *q)
{
#if GEMSHELL
argmake = nil;
if (ty eq SRC_P or findsuf(fn,".prj") eq 'p')
{
argmake = fn;
Fclose(fl); /* 12'09 HR: loadmake uses stream IO */
}
else
#endif
#if DIGGER
if ( ( ty > 0 and ty eq OBJ)
or ( ty < 0
#if (WKS or TEXTFILE or MFRAC or BINARY)
and ( findsuf(fn,".o" ) eq 'o'
or findsuf(fn,".prg") eq 'p'
or findsuf(fn,".tos") eq 't'
or findsuf(fn,".ttp") eq 't'
or findsuf(fn,".gtp") eq 'g'
or findsuf(fn,".l" ) eq 'l'
or findsuf(fn,".lib") eq 'l'
or findsuf(fn,".app") eq 'a'
or findsuf(fn,".img") eq 'i'
)
#endif
)
)
{
if (get_it(-1,JRNL) eq nil)
{
init_open_jrnl=true;
init_jrnl(&ttd_msg, nil, ty > 0 ? 0 : 1);
}
open_object(fn, fl, (D_CFG *)q);
init_open_jrnl=false;
}
else
#endif
#if WKS
if ( (ty > 0 and ty >= TEXTM and ty < WKSM)
or (ty < 0 and findsuf(fn,".cal") eq 'c')
)
{
Fclose(fl);
open_sheet(fn,fl, nil),
init_open_jrnl=false;
}
else
#endif
#if TEXTFILE
open_text(fn, fl , q),
init_open_jrnl=false
#elif MFRAC
open_mandel(fn, fl, nil);
#elif BINARY
open_binary(fn, fl, nil);
#endif
;
}
#if TEXTFILE || BINARY || WKS
static
F_CFG fcfg,
*fcfg_base = nil;
CFGNEST floc_cfg;
static
OpEntry *floctab = nil;
static
OpEntry filtab[]=
{
{"FILE= {\n",0,nil}, /* nil stops recursion, but must be written. */
{"nam =%s\n",DIR_MAX,fcfg.name},
{"typ =%d\n",6,&fcfg.ty},
{"cul =%ld\n",13,&fcfg.cu.pos.y},
#if TEXTFILE || WKS
{"cuf =%d\n",6,&fcfg.cu.pos.x},
{"son =%d\n",6,&fcfg.selection},
{"sel =%ld\n",6,&fcfg.se.pos.y},
{"sef =%d\n",6,&fcfg.se.pos.x},
{"sty =%d\n",6,&fcfg.sty},
#endif
#if TEXTFILE || BINARY
{"LCFG= {}\n",0, floc_cfg,0,0},
#endif
{"} \n"},
{"\0"}
};
global
CFGNEST file_cfg /* FILE *fp, OpEntry **tab, short lvl, short io */
{
#if TEXTFILE || BINARY
floctab = copyconfig(loctab, &cfg.loc, &fcfg.loc);
#endif
if (io eq 1) /* output */
{
STMC *ws;
IT *w;
ws=stmfilast(&winbase);
while (ws)
{
w=ws->wit;
if (is_file(w))
if (w->op)
{
strcpy(fcfg.name, w->title.t);
fcfg.ty = w->ty;
fcfg.cu = w->selection ? w->ss : w->cu;
fcfg.se = w->se;
fcfg.sty = w->selty;
fcfg.selection = w->selection;
#if TEXTFILE || BINARY
fcfg.loc = w->loc;
#endif
#if BINARY
fcfg.cu.pos.y = fcfg.cu.pos.y*w->bin.bw+fcfg.cu.pos.x;
#endif
saveconfig(fp,filtab,lvl+1);
}
ws=stmfiprior(&winbase);
}
othw
F_CFG *q = xmalloc(sizeof(F_CFG),AH_FCFG);
if (q)
{
fcfg.loc = deskw.loc; /* for defaults */
loadconfig(fp,filtab,lvl+1);
*q = fcfg;
q->n = fcfg_base;
fcfg_base = q;
}
}
#if TEXTFILE || BINARY
xfree(floctab);
#endif
}
static
CFGNEST floc_cfg /* FILE *fp, OpEntry **tab, short lvl, short io */
{
if (io eq 1) /* output */
saveconfig(fp, floctab, lvl+1);
else
loadconfig(fp, floctab, lvl+1);
}
#if TI2
short startfiles;
#endif
static
void load_fcfg(void)
{
F_CFG *q = fcfg_base;
#if TI2
startfiles = 0;
#endif
while (q)
{
F_CFG *qn= q->n;
char *fn = q->name;
long fl;
if (fn[strlen(fn)-1] eq '\n')
fn[strlen(fn)-1] = 0;
if (fn[strlen(fn)-1] eq '\r')
fn[strlen(fn)-1] = 0;
if ( (fl=Fopen(fn,0)) > 0)
{
IT *w;
open_startfile(fn, fl, q->ty, q);
w = get_fn_it(fn);
if (w)
{
#if TI2
startfiles++;
#endif
w->cu=q->cu;
#if TEXTFILE
find_current_line(w);
#endif
#if BINARY
l_to_s_t(w,w->cu.pos.y); /* checks cu.l against w->mapl and divides by window width */
w->loc = q->loc;
change_font(w, w->loc.font);
w->loctab = copyconfig(loctab, &fcfg.loc, &w->loc);
#elif TEXTFILE
x_to_s_t(w,&w->cu); /* checks cu.l against w->n */
w->ss = w->cu;
w->se = q->se;
w->selection = q->selection;
find_line(w,w->se.pos.y);
x_to_s_t(w,&w->se);
w->selty = q->sty;
w->loc = q->loc;
change_font(w, w->loc.font);
#ifdef SCLIN
flip_lnrs(w, w->loc.lnrs);
#endif
w->loctab = copyconfig(loctab, &fcfg.loc, &w->loc);
#elif WKS
cinf_upd(w,&w->cu);
cinf_upd(w,&w->cu); /* checks cu.l against w->n */
w->ss = w->cu;
w->se = q->se;
w->selection = q->selection;
cinf_upd(w,&w->se);
w->selty = q->sty;
#endif
make_vis_cur(w);
}
}
else
alert_msg(" Not opened: | %s ",fn);
free(q);
q = qn;
}
#if TI2 /* 05'16 HR: v5.4 */
if (startfiles eq 2)
{
void do_Mode(IT *, short);
IT *wt;
wt = get_top_it();
if (wt)
{
# if DEBUG
STMC *ws;
ws = stmfifirst(&winbase);
while (ws)
{
IT *w = ws->wit;
via (w->keybd)(w, NKF_FUNC | NK_HOME);
ws = stmfinext(&winbase);
}
# endif
do_Mode(wt, MNTILE);
}
}
# endif
}
#endif
global
void init_files(short argc, char *argv[])
{
short i;
long fl;
char *fn,*ssuf,suf[6];
#if TMENU or WKS or BMENU
load_fcfg(); /* load any files that were in the config */
#elif DIGGER
load_dcfg();
#endif
i=1;
while (--argc)
{
DIRcpy(&idir, argv[i]);
fn=argv[i];
if ( (fl=Fopen(fn,0)) > 0)
{
open_startfile(fn, fl, -1, nil); /* we know only the name */
}
else
alert_msg(" Not opened: | %s ",fn); /* jrnl not yet established */
i++;
}
#if defined INITOP and defined TEXTFILE
if (*frstr(INITOP))
if (w_handles(whs,is_text) eq 0) /* altijd iets meteen open in testfase */
{
fn = frstr(INITOP);
strcpy(idir.s,frstr(INITDIR));
if ( (fl=Fopen(fn,0)) > 0)
{
open_text(fn,fl);
init_open_jrnl=false;
}
}
#endif
/* replace filename by "*" ; retain original suffix if there */
ssuf=getsuf(idir.s);
*suf=0;
strcpy(suf,ssuf ? ssuf : "*");
ssuf=strrslash(idir.s);
if (ssuf)
*(ssuf+1)=0,
strcat(ssuf, "*.");
else
DIRcpy(&idir, "*.");
DIRcat(&idir, suf);
}
#ifdef DIGGER
static
void objectfile(short mt)
{
long fl;
char *fn,suf[6];
short i=0;
char *me=get_freestring(Menu,mt);
while (*me ne '.') me++;
while (*me ne ' ') suf[i++]=*me++;
suf[i]=0;
idir = change_suffix(&idir,suf);
if (*fsel.s)
fsel = change_suffix(&fsel,suf);
fn=select_file(&idir, nil, &fsel, " Open object file ", &drive);
if (fn ne nil)
if ( (fl=Fopen(fn,0)) > 0)
open_object(fn,fl + (mt eq MNTOSIMG ? 200 : 0), nil); /* 151002 TOS img file */
else
not_found(fn);
}
#endif
#ifdef WKS
static
void worksheet(short mt)
{
char suf[6],*fn;
short i=0;
char *me=get_freestring(Menu,mt);
while (*me ne '.') me++;
while (*me ne ' ') suf[i++]=*me++;
suf[i]=0;
idir = dir_plus_name(&idir, "*.*"); /* 08'13 HR */
idir = change_suffix(&idir,suf);
if (*fsel.s)
fsel = change_suffix(&fsel,suf);
fn=select_file(&idir, nil, &fsel, " Open calc sheet ", &drive);
if (fn)
open_sheet(fn,0,nil);
}
#endif
#ifdef DIGGER
bool force_o;
#endif
#if HRD2ENUM
#endif
global
void do_Open(short mt)
{
switch (mt)
{
#ifdef DIGGER
case MNO:
force_o = true;
objectfile(mt);
break;
case MNL:
case MNPRG:
case MNTTP:
case MNAPP:
case MNTOSIMG:
force_o = false;
objectfile(mt);
break;
case MNDISK:
case MNRAM:
case MNTOS:
case MNCARTR:
open_object(" -- ",mt+100,nil);
break;
case MNPPU:
locate_ppu(mt);
break;
#endif
#ifdef TEXTFILE
#ifdef MNOPEN
case MNOPEN:
#endif
#ifdef MNC
case MNC:
#endif
#ifdef MNS
case MNS:
#endif
#ifdef MNH
case MNH:
#endif
#ifdef MNP
case MNP:
#endif
#ifdef MNA
case MNA:
#endif
#ifdef MNI
case MNI:
#endif
#ifdef MNOL
case MNOL:
#endif
textfile(mt);
break;
#endif
#ifdef BINARY
case MNOPENB:
binary_file(mt);
break;
#endif
#ifdef WKS
case MNWKS:
worksheet(mt);
break;
#endif
#ifdef MFRAC
case MNMO:
mandel_file(mt);
break;
case MNMPAL:
mandel_palet();
break;
#endif
#ifdef MNITS
case MNITS:
show_its();
break;
#endif
}
}
|
320e7d5ab6eb0f68465eda5a8a9abdaa3be8c368
|
1d283d4eacdf9d6d7edf272e964ba8a812eb4940
|
/Test/Netinit/Netinit.c
|
aa22af6b724e0123d5d0bbe5f984715f34871dd2
|
[] |
no_license
|
a8924040/libhal
|
0e7fc5e7b76975f9851a9cfe2e85e02bbcc74fb5
|
f450ae7d8edfd9d0cb6911e3957470281507db90
|
refs/heads/master
| 2020-12-30T23:33:13.350738 | 2013-07-20T02:30:36 | 2013-07-20T02:30:36 | null | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 3,459 |
c
|
Netinit.c
|
/**
* @file
* @brief test ini file api
* @author Deng Yangjun
* @date 2007-1-9
* @version 0.2
*/
#include "IniFile.h"
#include "NetWork.h"
#include <CommonDef.h>
#include <CommonInclude.h>
#include <Common.h>
int wlan0_check(void)
{
FILE *fp = NULL;
char line_buf[256] = { 0 };
if((fp = fopen("/proc/net/dev", "r")) == NULL)
{
LIBHAL_ERROR("open /proc/net/dev failed");
return -1;
}
while(fgets(line_buf, sizeof(line_buf), fp) != NULL)
{
if(strstr(line_buf, "wlan0") != NULL)
{
fclose(fp);
return 1;
}
memset(line_buf, 0, sizeof(line_buf));
}
fclose(fp);
return 0;
}
int main(int argc, char *argv[])
{
char DefaultNetDev[32] = {0};
char DefaultDevIp[32] = {0};
char DefaultDevMask[32] = {0};
char DefaultDevGateway[32] = {0};
LIBHAL_PRINTF("netinit Complie Date:%s Time:%s\n", __DATE__, __TIME__);
if(access("/mnt/mtd/Config/network.conf", F_OK) != 0)
{
if(mkdir("/mnt/mtd/Config", 0777) < 0)
{
LIBHAL_ERROR("creat /mnt/mtd/Config failed");
}
}
printf("mkdir /var/tmp\n");
if(argc != 5)
{
if(NetWorkGetDefaultDev(DefaultNetDev) == 0
&& NetWorkGetIp(DefaultNetDev, DefaultDevIp) == 0
&& NetWorkGetNetMask(DefaultNetDev, DefaultDevMask) == 0
&& NetWorkGetGateWay(DefaultNetDev, DefaultDevGateway) == 0
)
{
LIBHAL_ALARM("now set network %s attribute:\n"
"ip: %s\n"
"netmask: %s\n"
"gateway: %s\n", DefaultNetDev, DefaultDevIp
, DefaultDevMask, DefaultDevGateway);
NetWorkSetIp(DefaultNetDev, DefaultDevIp);
NetWorkSetNetMask(DefaultNetDev, DefaultDevMask);
NetWorkSetDefaultGateWay(DefaultNetDev, DefaultDevGateway);
}
else
{
LIBHAL_ALARM("netinit pramer must include netdev,ip,netmask,gateway");
LIBHAL_ALARM("example netinit eth0 192.168.2.20"
" 255.255.255.0 192.168.2.1");
LIBHAL_ALARM("now set network attribute to defualt value\n"
"ip: 192.168.2.21 \n"
"netmask: 255.255.255.0\n"
"gateway: 192.168.2.1\n");
NetWorkSetIp("eth0", "192.168.2.21");
NetWorkSetNetMask("eth0", "255.255.255.0");
NetWorkSetDefaultGateWay("eth0", "192.168.2.1");
}
return 0;
}
strncpy(DefaultNetDev, argv[1], sizeof(DefaultNetDev) - 1);
strncpy(DefaultDevIp, argv[2], sizeof(DefaultDevIp) - 1);
strncpy(DefaultDevMask, argv[3], sizeof(DefaultDevMask) - 1);
strncpy(DefaultDevGateway, argv[4], sizeof(DefaultDevGateway) - 1);
LIBHAL_DEBUG("begin to set network attribute");
NetWorkSetIp(DefaultNetDev, DefaultDevIp);
NetWorkSetNetMask(DefaultNetDev, DefaultDevMask);
NetWorkSetDefaultGateWay(DefaultNetDev, DefaultDevGateway);
NetWorkGetNetMask(DefaultNetDev, DefaultDevMask);
LIBHAL_DEBUG("get netmask from config file is %s", DefaultDevMask);
NetWorkGetGateWay(DefaultNetDev, DefaultDevGateway);
LIBHAL_DEBUG("get gateway from config file is %s", DefaultDevGateway);
NetWorkGetIp(DefaultNetDev, DefaultDevIp);
LIBHAL_DEBUG("get ip from config file is %s", DefaultDevIp);
return 0;
}
|
3eb9effc1f07d91b63c54cc050701ef3493ef25a
|
de1ea5a5fde2c4285eea387c3e9eb89600af2ce4
|
/src/print_solution.c
|
9da41d2d6b022c55015c96e66505245682c60aa2
|
[] |
no_license
|
hchaucha/lem_in
|
11bb7ef59dccdf02dd5e85d6d6f6389f7a3b8f9f
|
f638914b65b0c1531a177145f69542efe147c3a4
|
refs/heads/master
| 2021-01-19T21:21:40.965477 | 2017-04-18T16:30:01 | 2017-04-18T16:30:01 | 88,646,817 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,218 |
c
|
print_solution.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_solution.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hchaucha <hugues.chauchat@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/10/05 23:23:46 by hchaucha #+# #+# */
/* Updated: 2016/10/20 15:57:48 by hchaucha ### ########.fr */
/* */
/* ************************************************************************** */
#include "lem_in.h"
int is_empty(t_path *path)
{
if (path && path->next)
{
if (path->ant_id != 0)
return (0);
return (is_empty(path->next));
}
return (1);
}
int are_empty(t_pathlst *pathlst)
{
if (pathlst)
{
if (is_empty(pathlst->path))
return (are_empty(pathlst->next));
return (0);
}
return (1);
}
t_pathlst *forward_tmp(t_pathlst *tmp, int min)
{
if (tmp->next && min)
tmp = tmp->next;
while (tmp->next && path_length(tmp->path) == path_length(tmp->next->path))
tmp = tmp->next;
return (tmp);
}
void fill_pathlst(t_pathlst *pathlst, int ant_nb)
{
t_pathlst *tmp;
t_pathlst *fill;
tmp = forward_tmp(pathlst, 0);
while (ant_nb > 0)
{
while ((!tmp->next || tmp->ant_to_go + path_length(tmp->path) < \
path_length(tmp->next->path)) && ant_nb > 0)
{
fill = pathlst;
while (fill != tmp && ant_nb > 0)
{
fill->ant_to_go++;
ant_nb--;
fill = fill->next;
}
if (ant_nb > 0)
{
fill->ant_to_go++;
ant_nb--;
}
}
tmp = forward_tmp(tmp, 1);
}
}
void print_solution(t_roomlst *roomlst, t_pathlst *pathlst,\
int ant_nb)
{
int sent;
sent = 1;
fill_pathlst(pathlst, ant_nb);
ft_printf("\n");
while (sent <= ant_nb || !are_empty(pathlst))
{
sent = send_one_in_each(roomlst, pathlst, sent, 1);
ft_printf("\n");
}
}
|
0b6cadcaf99a3fc51a033bfbdd2a13284e40143e
|
eb10af250a52fafa3a243e2dd9b88dffc82733d7
|
/prob_1238/uri_1238.c
|
0df1472e8792f1743b30a49fb0f71c3571d5dcd4
|
[] |
no_license
|
Rafael020202/Algorithms-Problems
|
7ecdf66afc2597c3058a588ca591af225e5cc5a2
|
62f8179b3991517bb18b40aa4c8e7f33159e7156
|
refs/heads/master
| 2022-04-19T23:24:06.643236 | 2020-04-21T13:58:31 | 2020-04-21T13:58:31 | 218,107,349 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 592 |
c
|
uri_1238.c
|
#include <stdio.h>
#include <string.h>
int main( ) {
int i, j, nC;
i = 0;
j = 0;
scanf( "%d", &nC );
for ( j; j < nC; j++ ) {
char str01[51], str02[51];
scanf( "%s %s", str01, str02 );
while ( str01[i] != '\0' && str02[i] != '\0' ) {
printf( "%c%c", str01[i], str02[i] );
i++;
}
if ( i < strlen(str02) ) {
while ( i < strlen(str02) ) {
printf( "%c", str02[i] );
i++;
}
}
else if ( i < strlen(str01) ) {
while ( i < strlen(str01) ) {
printf( "%c", str01[i] );
i++;
}
}
printf( "\n" );
i = 0;
}
return 0;
}
|
b4d7d6a19613e5beb827e596e82f9c7b12e2293a
|
3b7cdefcad1272ce9ef9b5a2ea6f6c36d4604a6f
|
/mcu/common/driver/devdrv/idc/inc/idc_suart.h
|
6e31c2fce59ff5fa649d608e3b9c82c8f15a9a2c
|
[] |
no_license
|
junkyard-2327/TK_MD_BASIC_MOLY.LR12A.R3.MP.V110.6
|
ad79a26ed395d5b333b718a6b0913003b556f15e
|
04ebd402fe9472e0c2e3da5a296c11819307b929
|
refs/heads/master
| 2022-12-25T23:24:05.155209 | 2020-10-09T04:37:19 | 2020-10-09T04:37:19 | 301,968,967 | 2 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 2,865 |
h
|
idc_suart.h
|
#ifndef __IDC_SUART_H__
#define __IDC_SUART_H__
#include "reg_base.h"
#if defined(MT6290)
#define BASE_ADDR_PERISYS_IDC_SUART 0xB6F27000
#elif defined(MT6595) || defined(TK6291)
#define BASE_ADDR_PERISYS_IDC_SUART IDC_SUART_BASE
#endif
#define REG_PERISYS_IDC_SUART_RBR_THR_DLL_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x00)
#define REG_PERISYS_IDC_SUART_IER_DLM_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x04)
#define REG_PERISYS_IDC_SUART_IIR_FCR_EFR_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x08)
#define REG_PERISYS_IDC_SUART_LCR_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x0C)
#define REG_PERISYS_IDC_SUART_MCR_XON1_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x10)
#define REG_PERISYS_IDC_SUART_LSR_XON2_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x14)
#define REG_PERISYS_IDC_SUART_MSR_XOFF1_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x18)
#define REG_PERISYS_IDC_SUART_SCR_XOFF2_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x1C)
#define REG_PERISYS_IDC_SUART_AUTOBAUD_EN_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x20)
#define REG_PERISYS_IDC_SUART_RATE_STEP_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x24)
#define REG_PERISYS_IDC_SUART_STEP_COUNT_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x28)
#define REG_PERISYS_IDC_SUART_SAMPLE_COUNT_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x2C)
#define REG_PERISYS_IDC_SUART_AUTOBAUD_DATA_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x30)
#define REG_PERISYS_IDC_SUART_RATE_FIX_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x34)
#define REG_PERISYS_IDC_SUART_AUTOBAUD_RATE_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x38)
#define REG_PERISYS_IDC_SUART_GUARD_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x3C)
#define REG_PERISYS_IDC_SUART_ESC_CHAR_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x40)
#define REG_PERISYS_IDC_SUART_ESC_EN_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x44)
#define REG_PERISYS_IDC_SUART_SLEEP_EN_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x48)
#define REG_PERISYS_IDC_SUART_RXDMA_EN_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x4C)
#define REG_PERISYS_IDC_SUART_RXTRIG_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x50)
#define REG_PERISYS_IDC_SUART_RXTIMEOUT_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x54)
#define REG_PERISYS_IDC_SUART_RXDMA_CTRL_ADDR (BASE_ADDR_PERISYS_IDC_SUART+0x58)
#define REG_PERISYS_IDC_SUART_DUMMY (BASE_ADDR_PERISYS_IDC_SUART+0x5c)
#define REG_PERISYS_IDC_SUART_START_PRI (BASE_ADDR_PERISYS_IDC_SUART+0x60)
#define REG_PERISYS_IDC_SUART_START_PRI_BITEN (BASE_ADDR_PERISYS_IDC_SUART+0x64)
#define REG_PERISYS_IDC_SUART_START_PAT (BASE_ADDR_PERISYS_IDC_SUART+0x68)
#define REG_PERISYS_IDC_SUART_START_PAT_BITEN (BASE_ADDR_PERISYS_IDC_SUART+0x6C)
#define REG_PERISYS_IDC_SUART_FINISH_PRI (BASE_ADDR_PERISYS_IDC_SUART+0x70)
#define REG_PERISYS_IDC_SUART_FINISH_PRI_BITEN (BASE_ADDR_PERISYS_IDC_SUART+0x74)
#define REG_PERISYS_IDC_SUART_FINISH_PAT (BASE_ADDR_PERISYS_IDC_SUART+0x78)
#define REG_PERISYS_IDC_SUART_FINISH_PAT_BITEN (BASE_ADDR_PERISYS_IDC_SUART+0x7C)
#endif
|
a8d11387480066b67707c21c6cba6eea6613ece8
|
517274e026def8a4c5c88ab16adc4e38a7b608f2
|
/platform/tz/ta/ta_edge.c
|
2b25f23886eb16f7a35737680b7d56feb8aaf950
|
[] |
no_license
|
tls-seed/tls-seed-implementation
|
f061f475735875b59d6fe6ab2b081123c0b75d10
|
d077bf1bb11ee2fa20dd365551afc8f80a7f1748
|
refs/heads/master
| 2021-07-25T09:36:35.942016 | 2020-05-13T07:05:51 | 2020-05-13T07:05:51 | 173,567,712 | 0 | 1 | null | null | null | null |
UTF-8
|
C
| false | false | 3,933 |
c
|
ta_edge.c
|
/*
* Copyright (c) 2015, Linaro Limited
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#define STR_TRACE_USER_TA "EDGE"
#include <tee_api_defines.h>
#include <tee_api_types.h>
#include <tee_internal_api.h>
#include <tee_internal_api_extensions.h>
#include <openssl/ssl.h>
#include <stdio.h>
#include <assert.h>
#include <debug.h>
#include <cmds.h>
#include <err.h>
#include <ta_seed.h>
#include <ta_debug.h>
SEED_Result TA_CreateEntryPoint(void)
{
edmsg("We create entry point!");
return TEE_SUCCESS;
}
void TA_DestroyEntryPoint(void)
{
edmsg("Now we destroy entry point!");
}
SEED_Result TA_OpenSessionEntryPoint(uint32_t param_types,
TEE_Param params[4], void **sess_ctx)
{
uint32_t exp_param_types = TEE_PARAM_TYPES(TEE_PARAM_TYPE_NONE,
TEE_PARAM_TYPE_NONE,
TEE_PARAM_TYPE_NONE,
TEE_PARAM_TYPE_NONE);
if (param_types != exp_param_types)
return TEE_ERROR_BAD_PARAMETERS;
(void)¶ms;
(void)&sess_ctx;
edmsg("Our session for SEED is open!\n");
return TEE_SUCCESS;
}
void TA_CloseSessionEntryPoint(void *sess_ctx)
{
(void)&sess_ctx;
edmsg("Our session for SEED is ended!\n");
}
SEED_Result TA_InvokeCommandEntryPoint(void *sess_ctx, uint32_t cmd_id,
uint32_t param_types, TEE_Param params[4])
{
fstart("sess_ctx: %p, cmd_id: %d, param_types: %d, params: %p", sess_ctx, cmd_id, param_types, (void *) params);
(void) sess_ctx;
uint32_t param_none, param_no_logger;
SEED_Result ret;
bctx_t *rctx;
bctx_t *wctx;
cctx_t *cctx;
#ifdef TIME_LOG
logger_t *logger;
#endif /* TIME_LOG */
ret = SEED_SUCCESS;
param_none = TEE_PARAM_TYPES(TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE,
TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE);
param_no_logger = TEE_PARAM_TYPES(TEE_PARAM_TYPE_MEMREF_INOUT, TEE_PARAM_TYPE_MEMREF_INOUT,
TEE_PARAM_TYPE_MEMREF_INOUT, TEE_PARAM_TYPE_NONE);
if (param_types == param_none)
{
rctx = NULL;
wctx = NULL;
cctx = NULL;
logger = NULL;
}
else if (param_types == param_no_logger)
{
rctx = (bctx_t *)params[0].memref.buffer;
wctx = (bctx_t *)params[1].memref.buffer;
cctx = (cctx_t *)params[2].memref.buffer;
#ifdef TIME_LOG
logger = NULL;
#endif /* TIME_LOG */
}
else
{
rctx = (bctx_t *)params[0].memref.buffer;
wctx = (bctx_t *)params[1].memref.buffer;
cctx = (cctx_t *)params[2].memref.buffer;
#ifdef TIME_LOG
logger = (logger_t *)params[3].memref.buffer;
#endif /* TIME_LOG */
}
#ifdef TIME_LOG
ret = seed_main(cmd_id, rctx, wctx, cctx, logger);
#else
ret = seed_main(cmd_id, rctx, wctx, cctx, NULL);
#endif /* TIME_LOG */
ffinish("ret: %d", ret);
return ret;
}
|
f6f5dc431711f02de50babefe5fcda7f20bdc4b6
|
f7655d0d761e8565ae2c33233aaded5e9b9d6984
|
/util/list.c
|
709a5c1e01b73b5004b295877b217839066c9949
|
[
"MIT"
] |
permissive
|
TobleMiner/nrfsession
|
d11a9bd708b77a1efa05106af2b7cc8305a9cb37
|
8c78904b460bc807e59bb9dccdad64c99d11906e
|
refs/heads/master
| 2021-01-21T06:21:03.276472 | 2017-04-12T00:25:55 | 2017-04-12T00:25:55 | 82,864,112 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 2,066 |
c
|
list.c
|
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "list.h"
int llist_head_init(struct llist_head** head, void* data)
{
int err = 0;
*head = malloc(sizeof(struct llist_head));
if(!*head)
{
err = -ENOMEM;
goto exit_err;
}
memset(*head, 0, sizeof(struct llist_head));
(*head)->data = data;
exit_err:
return err;
}
void llist_head_free(struct llist_head* head)
{
struct llist_head* next;
while(head)
{
next = head->next;
free(head);
head = next;
}
}
int llist_append(struct llist_head** list, void* data)
{
int err = 0;
struct llist_head* entry;
if(!*list)
err = llist_head_init(list, data);
else
{
entry = *list;
while(entry->next)
{
entry = entry->next;
}
if((err = llist_head_init(&entry->next, data)))
goto exit_err;
entry->next->prev = entry;
}
exit_err:
return err;
}
void llist_remove(struct llist_head** list, struct llist_head* elem)
{
if(elem == *list)
*list = elem->next;
if(elem->prev && elem->next)
{
elem->prev->next = elem->next;
elem->next->prev = elem->prev;
}
else if(elem->prev)
elem->prev->next = NULL;
else if(elem->next)
elem->next->prev = NULL;
elem->next = NULL;
llist_head_free(elem);
}
int llist_remove_data(struct llist_head** head, void* data)
{
struct llist_head* entry = *head;
while(entry)
{
if(entry->data == data)
{
llist_remove(head, entry);
return 0;
}
entry = entry->next;
}
return -ENOENT;
}
int llist_remove_index(struct llist_head** head, unsigned int index)
{
struct llist_head* entry = *head;
while(index-- > 0)
{
if(!entry)
return -ENOENT;
entry = entry->next;
}
if(!entry)
return -ENOENT;
llist_remove(head, entry);
return 0;
}
int llist_get_value_at_index(struct llist_head* head, void** data, unsigned int index)
{
while(index-- > 0)
{
if(!head)
return -ENOENT;
head = head->next;
}
if(!head)
return -ENOENT;
*data = head->data;
return 0;
}
unsigned int llist_length(struct llist_head* head)
{
unsigned int len = 0;
while(head)
{
len++;
head = head->next;
}
return len;
}
|
cd19d0c75fc3cc57a0a0dc25e3af4c00f8f26ec5
|
e1d9c54e9925e30e388a255b53a93cccad0b94cb
|
/kubernetes/model/v1_rolling_update_deployment.c
|
f149ba5dbb1ea86852f49981dc798f9a6c98a452
|
[
"Apache-2.0",
"curl"
] |
permissive
|
kubernetes-client/c
|
dd4fd8095485c083e0f40f2b48159b1609a6141b
|
5ac5ff25e9809a92a48111b1f77574b6d040b711
|
refs/heads/master
| 2023-08-13T10:51:03.702497 | 2023-08-07T19:18:32 | 2023-08-07T19:18:32 | 247,958,425 | 127 | 47 |
Apache-2.0
| 2023-09-07T20:07:00 | 2020-03-17T11:59:05 |
C
|
UTF-8
|
C
| false | false | 3,980 |
c
|
v1_rolling_update_deployment.c
|
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "v1_rolling_update_deployment.h"
v1_rolling_update_deployment_t *v1_rolling_update_deployment_create(
int_or_string_t *max_surge,
int_or_string_t *max_unavailable
) {
v1_rolling_update_deployment_t *v1_rolling_update_deployment_local_var = malloc(sizeof(v1_rolling_update_deployment_t));
if (!v1_rolling_update_deployment_local_var) {
return NULL;
}
v1_rolling_update_deployment_local_var->max_surge = max_surge;
v1_rolling_update_deployment_local_var->max_unavailable = max_unavailable;
return v1_rolling_update_deployment_local_var;
}
void v1_rolling_update_deployment_free(v1_rolling_update_deployment_t *v1_rolling_update_deployment) {
if(NULL == v1_rolling_update_deployment){
return ;
}
listEntry_t *listEntry;
if (v1_rolling_update_deployment->max_surge) {
int_or_string_free(v1_rolling_update_deployment->max_surge);
v1_rolling_update_deployment->max_surge = NULL;
}
if (v1_rolling_update_deployment->max_unavailable) {
int_or_string_free(v1_rolling_update_deployment->max_unavailable);
v1_rolling_update_deployment->max_unavailable = NULL;
}
free(v1_rolling_update_deployment);
}
cJSON *v1_rolling_update_deployment_convertToJSON(v1_rolling_update_deployment_t *v1_rolling_update_deployment) {
cJSON *item = cJSON_CreateObject();
// v1_rolling_update_deployment->max_surge
if(v1_rolling_update_deployment->max_surge) {
cJSON *max_surge_local_JSON = int_or_string_convertToJSON(v1_rolling_update_deployment->max_surge);
if(max_surge_local_JSON == NULL) {
goto fail; // custom
}
cJSON_AddItemToObject(item, "maxSurge", max_surge_local_JSON);
if(item->child == NULL) {
goto fail;
}
}
// v1_rolling_update_deployment->max_unavailable
if(v1_rolling_update_deployment->max_unavailable) {
cJSON *max_unavailable_local_JSON = int_or_string_convertToJSON(v1_rolling_update_deployment->max_unavailable);
if(max_unavailable_local_JSON == NULL) {
goto fail; // custom
}
cJSON_AddItemToObject(item, "maxUnavailable", max_unavailable_local_JSON);
if(item->child == NULL) {
goto fail;
}
}
return item;
fail:
if (item) {
cJSON_Delete(item);
}
return NULL;
}
v1_rolling_update_deployment_t *v1_rolling_update_deployment_parseFromJSON(cJSON *v1_rolling_update_deploymentJSON){
v1_rolling_update_deployment_t *v1_rolling_update_deployment_local_var = NULL;
// define the local variable for v1_rolling_update_deployment->max_surge
int_or_string_t *max_surge_local_nonprim = NULL;
// define the local variable for v1_rolling_update_deployment->max_unavailable
int_or_string_t *max_unavailable_local_nonprim = NULL;
// v1_rolling_update_deployment->max_surge
cJSON *max_surge = cJSON_GetObjectItemCaseSensitive(v1_rolling_update_deploymentJSON, "maxSurge");
if (max_surge) {
max_surge_local_nonprim = int_or_string_parseFromJSON(max_surge); //custom
}
// v1_rolling_update_deployment->max_unavailable
cJSON *max_unavailable = cJSON_GetObjectItemCaseSensitive(v1_rolling_update_deploymentJSON, "maxUnavailable");
if (max_unavailable) {
max_unavailable_local_nonprim = int_or_string_parseFromJSON(max_unavailable); //custom
}
v1_rolling_update_deployment_local_var = v1_rolling_update_deployment_create (
max_surge ? max_surge_local_nonprim : NULL,
max_unavailable ? max_unavailable_local_nonprim : NULL
);
return v1_rolling_update_deployment_local_var;
end:
if (max_surge_local_nonprim) {
int_or_string_free(max_surge_local_nonprim);
max_surge_local_nonprim = NULL;
}
if (max_unavailable_local_nonprim) {
int_or_string_free(max_unavailable_local_nonprim);
max_unavailable_local_nonprim = NULL;
}
return NULL;
}
|
3d4f5e7c9b096b1540547c93d1e05c9fea790555
|
ba7ffc33cb062d464bddb57b798205735eb62cb2
|
/RenderTest/RenderTest/Shaders/DirectionalLight_ps.h
|
df34da04ea87f852426efe267089a00a791e93f3
|
[] |
no_license
|
rezanour/rendering
|
d7eee630440c83eac34461bfc08a4c45d1ab12e9
|
a301811bbfe740c4ef6ba177b965a571e4385635
|
refs/heads/master
| 2021-01-10T05:08:46.467874 | 2016-02-12T04:21:36 | 2016-02-12T04:21:36 | 50,814,064 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 11,665 |
h
|
DirectionalLight_ps.h
|
#if 0
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//
// Buffer Definitions:
//
// cbuffer DLightPSConstants
// {
//
// struct DLight
// {
//
// float3 Direction; // Offset: 0
// float Pad0; // Offset: 12
// float3 Color; // Offset: 16
// float Pad1; // Offset: 28
//
// } Lights[8]; // Offset: 0 Size: 256
// uint NumLights; // Offset: 256 Size: 4
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// LinearSampler sampler NA NA 0 1
// ViewNormals texture float4 2d 0 1
// DLightPSConstants cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION 0 xyzw 0 POS float xy
// TEXCOORD 0 xyz 1 NONE float
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 xyzw 0 TARGET float xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[17], dynamicIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_output o0.xyzw
dcl_temps 3
resinfo_indexable(texture2d)(float,float,float,float)_uint r0.xy, l(0), t0.xyzw
utof r0.xy, r0.xyxx
div r0.xy, v0.xyxx, r0.xyxx
sample_indexable(texture2d)(float,float,float,float) r0.xyz, r0.xyxx, t0.xyzw, s0
mad r0.xyz, r0.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
mov r1.xyz, l(0,0,0,0)
mov r0.w, l(0)
loop
uge r1.w, r0.w, cb0[16].x
breakc_nz r1.w
ishl r1.w, r0.w, l(1)
dp3 r2.x, cb0[r1.w + 0].xyzx, r0.xyzx
mul_sat r2.xyz, r2.xxxx, cb0[r1.w + 1].xyzx
add r1.xyz, r1.xyzx, r2.xyzx
iadd r0.w, r0.w, l(1)
endloop
mov o0.xyz, r1.xyzx
mov o0.w, l(0)
ret
// Approximately 19 instruction slots used
#endif
const BYTE DirectionalLight_ps[] =
{
68, 88, 66, 67, 164, 236,
243, 13, 142, 74, 8, 182,
207, 100, 180, 86, 5, 111,
159, 146, 1, 0, 0, 0,
36, 6, 0, 0, 5, 0,
0, 0, 52, 0, 0, 0,
168, 2, 0, 0, 0, 3,
0, 0, 52, 3, 0, 0,
136, 5, 0, 0, 82, 68,
69, 70, 108, 2, 0, 0,
1, 0, 0, 0, 200, 0,
0, 0, 3, 0, 0, 0,
60, 0, 0, 0, 0, 5,
255, 255, 0, 1, 4, 0,
56, 2, 0, 0, 82, 68,
49, 49, 60, 0, 0, 0,
24, 0, 0, 0, 32, 0,
0, 0, 40, 0, 0, 0,
36, 0, 0, 0, 12, 0,
0, 0, 0, 0, 0, 0,
156, 0, 0, 0, 3, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0,
0, 0, 170, 0, 0, 0,
2, 0, 0, 0, 5, 0,
0, 0, 4, 0, 0, 0,
255, 255, 255, 255, 0, 0,
0, 0, 1, 0, 0, 0,
12, 0, 0, 0, 182, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
76, 105, 110, 101, 97, 114,
83, 97, 109, 112, 108, 101,
114, 0, 86, 105, 101, 119,
78, 111, 114, 109, 97, 108,
115, 0, 68, 76, 105, 103,
104, 116, 80, 83, 67, 111,
110, 115, 116, 97, 110, 116,
115, 0, 182, 0, 0, 0,
2, 0, 0, 0, 224, 0,
0, 0, 16, 1, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 48, 1, 0, 0,
0, 0, 0, 0, 0, 1,
0, 0, 2, 0, 0, 0,
224, 1, 0, 0, 0, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 255, 255,
255, 255, 0, 0, 0, 0,
4, 2, 0, 0, 0, 1,
0, 0, 4, 0, 0, 0,
2, 0, 0, 0, 20, 2,
0, 0, 0, 0, 0, 0,
255, 255, 255, 255, 0, 0,
0, 0, 255, 255, 255, 255,
0, 0, 0, 0, 76, 105,
103, 104, 116, 115, 0, 68,
76, 105, 103, 104, 116, 0,
68, 105, 114, 101, 99, 116,
105, 111, 110, 0, 102, 108,
111, 97, 116, 51, 0, 171,
1, 0, 3, 0, 1, 0,
3, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 72, 1, 0, 0,
80, 97, 100, 48, 0, 102,
108, 111, 97, 116, 0, 171,
0, 0, 3, 0, 1, 0,
1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 121, 1, 0, 0,
67, 111, 108, 111, 114, 0,
80, 97, 100, 49, 0, 171,
62, 1, 0, 0, 80, 1,
0, 0, 0, 0, 0, 0,
116, 1, 0, 0, 128, 1,
0, 0, 12, 0, 0, 0,
164, 1, 0, 0, 80, 1,
0, 0, 16, 0, 0, 0,
170, 1, 0, 0, 128, 1,
0, 0, 28, 0, 0, 0,
5, 0, 0, 0, 1, 0,
8, 0, 8, 0, 4, 0,
176, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 55, 1, 0, 0,
78, 117, 109, 76, 105, 103,
104, 116, 115, 0, 100, 119,
111, 114, 100, 0, 0, 0,
19, 0, 1, 0, 1, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
14, 2, 0, 0, 77, 105,
99, 114, 111, 115, 111, 102,
116, 32, 40, 82, 41, 32,
72, 76, 83, 76, 32, 83,
104, 97, 100, 101, 114, 32,
67, 111, 109, 112, 105, 108,
101, 114, 32, 54, 46, 51,
46, 57, 54, 48, 48, 46,
49, 54, 51, 56, 52, 0,
171, 171, 73, 83, 71, 78,
80, 0, 0, 0, 2, 0,
0, 0, 8, 0, 0, 0,
56, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
3, 0, 0, 0, 0, 0,
0, 0, 15, 3, 0, 0,
68, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
3, 0, 0, 0, 1, 0,
0, 0, 7, 0, 0, 0,
83, 86, 95, 80, 79, 83,
73, 84, 73, 79, 78, 0,
84, 69, 88, 67, 79, 79,
82, 68, 0, 171, 171, 171,
79, 83, 71, 78, 44, 0,
0, 0, 1, 0, 0, 0,
8, 0, 0, 0, 32, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 3, 0,
0, 0, 0, 0, 0, 0,
15, 0, 0, 0, 83, 86,
95, 84, 65, 82, 71, 69,
84, 0, 171, 171, 83, 72,
69, 88, 76, 2, 0, 0,
80, 0, 0, 0, 147, 0,
0, 0, 106, 8, 0, 1,
89, 8, 0, 4, 70, 142,
32, 0, 0, 0, 0, 0,
17, 0, 0, 0, 90, 0,
0, 3, 0, 96, 16, 0,
0, 0, 0, 0, 88, 24,
0, 4, 0, 112, 16, 0,
0, 0, 0, 0, 85, 85,
0, 0, 100, 32, 0, 4,
50, 16, 16, 0, 0, 0,
0, 0, 1, 0, 0, 0,
101, 0, 0, 3, 242, 32,
16, 0, 0, 0, 0, 0,
104, 0, 0, 2, 3, 0,
0, 0, 61, 16, 0, 137,
194, 0, 0, 128, 67, 85,
21, 0, 50, 0, 16, 0,
0, 0, 0, 0, 1, 64,
0, 0, 0, 0, 0, 0,
70, 126, 16, 0, 0, 0,
0, 0, 86, 0, 0, 5,
50, 0, 16, 0, 0, 0,
0, 0, 70, 0, 16, 0,
0, 0, 0, 0, 14, 0,
0, 7, 50, 0, 16, 0,
0, 0, 0, 0, 70, 16,
16, 0, 0, 0, 0, 0,
70, 0, 16, 0, 0, 0,
0, 0, 69, 0, 0, 139,
194, 0, 0, 128, 67, 85,
21, 0, 114, 0, 16, 0,
0, 0, 0, 0, 70, 0,
16, 0, 0, 0, 0, 0,
70, 126, 16, 0, 0, 0,
0, 0, 0, 96, 16, 0,
0, 0, 0, 0, 50, 0,
0, 15, 114, 0, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
2, 64, 0, 0, 0, 0,
0, 64, 0, 0, 0, 64,
0, 0, 0, 64, 0, 0,
0, 0, 2, 64, 0, 0,
0, 0, 128, 191, 0, 0,
128, 191, 0, 0, 128, 191,
0, 0, 0, 0, 54, 0,
0, 8, 114, 0, 16, 0,
1, 0, 0, 0, 2, 64,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
54, 0, 0, 5, 130, 0,
16, 0, 0, 0, 0, 0,
1, 64, 0, 0, 0, 0,
0, 0, 48, 0, 0, 1,
80, 0, 0, 8, 130, 0,
16, 0, 1, 0, 0, 0,
58, 0, 16, 0, 0, 0,
0, 0, 10, 128, 32, 0,
0, 0, 0, 0, 16, 0,
0, 0, 3, 0, 4, 3,
58, 0, 16, 0, 1, 0,
0, 0, 41, 0, 0, 7,
130, 0, 16, 0, 1, 0,
0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 1, 64,
0, 0, 1, 0, 0, 0,
16, 0, 0, 9, 18, 0,
16, 0, 2, 0, 0, 0,
70, 130, 32, 4, 0, 0,
0, 0, 58, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 0, 0, 0, 0,
56, 32, 0, 10, 114, 0,
16, 0, 2, 0, 0, 0,
6, 0, 16, 0, 2, 0,
0, 0, 70, 130, 32, 6,
0, 0, 0, 0, 1, 0,
0, 0, 58, 0, 16, 0,
1, 0, 0, 0, 0, 0,
0, 7, 114, 0, 16, 0,
1, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
70, 2, 16, 0, 2, 0,
0, 0, 30, 0, 0, 7,
130, 0, 16, 0, 0, 0,
0, 0, 58, 0, 16, 0,
0, 0, 0, 0, 1, 64,
0, 0, 1, 0, 0, 0,
22, 0, 0, 1, 54, 0,
0, 5, 114, 32, 16, 0,
0, 0, 0, 0, 70, 2,
16, 0, 1, 0, 0, 0,
54, 0, 0, 5, 130, 32,
16, 0, 0, 0, 0, 0,
1, 64, 0, 0, 0, 0,
0, 0, 62, 0, 0, 1,
83, 84, 65, 84, 148, 0,
0, 0, 19, 0, 0, 0,
3, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0,
5, 0, 0, 0, 2, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
4, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0
};
|
8b049aa604253b9bcb94117151fb1bf7ddff5f28
|
e7912e6c7db7249e7b3b57df51268e06fca3b206
|
/srcs/ft_strnstr.c
|
455c42db992e77e68a2edf8d0dcb26f7c3df3e0e
|
[] |
no_license
|
kramiusmaximus/libft
|
7116211f8c1cdc06e75529f660de00a89bb20724
|
407e3d9ffa3a69241c35e80ecccaea7b09f5418e
|
refs/heads/master
| 2023-04-11T23:36:06.609342 | 2021-05-17T14:12:13 | 2021-05-17T14:12:13 | 319,310,557 | 0 | 0 | null | null | null | null |
UTF-8
|
C
| false | false | 1,352 |
c
|
ft_strnstr.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strnstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pfelipa <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/08/31 14:42:45 by pfelipa #+# #+# */
/* Updated: 2020/09/02 18:56:32 by pfelipa ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strnstr(const char *haystack, const char *needle, size_t len)
{
if (!*needle)
return ((char *)haystack);
while (*haystack && len > 0)
{
if (*haystack == *needle)
{
if (len-- >= (size_t)ft_strlen(needle))
{
if (ft_strncmp(haystack, needle, ft_strlen(needle)) == 0)
return ((char *)haystack);
else
haystack++;
}
else
break ;
}
else
{
haystack++;
len--;
}
}
return (NULL);
}
|
2160113ba6387fd897e185b3b9a41311a0cc9814
|
84db8126dfb48122083521bbdeda9fe761f12271
|
/win_utils.c
|
b0ae67faf15cf5a1bb44ad8ab69b085af89a61a6
|
[
"0BSD",
"LicenseRef-scancode-other-permissive"
] |
permissive
|
rhash/RHash
|
b45d064f7d61631b4f716e93c74b8773191eea0c
|
ee1cf8ce8c1a67ca07fabfba6ba3d6c0909b5fed
|
refs/heads/master
| 2023-09-03T18:13:07.107328 | 2023-08-27T21:34:51 | 2023-08-27T21:34:51 | 1,882,998 | 514 | 127 |
0BSD
| 2023-07-12T23:50:04 | 2011-06-12T00:16:27 |
C
|
UTF-8
|
C
| false | false | 18,818 |
c
|
win_utils.c
|
/* win_utils.c - utility functions for Windows and CygWin */
#if defined(_WIN32) || defined(__CYGWIN__)
/* Fix #138: require to use MSVCRT implementation of *printf functions */
#define __USE_MINGW_ANSI_STDIO 0
#include "win_utils.h"
#include <windows.h>
/**
* Set process priority and affinity to use any CPU but the first one,
* this improves benchmark results on a multi-core systems.
*/
void set_benchmark_cpu_affinity(void)
{
DWORD_PTR dwProcessMask, dwSysMask, dwDesired;
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);
if ( GetProcessAffinityMask(GetCurrentProcess(), &dwProcessMask, &dwSysMask) ) {
dwDesired = dwSysMask & (dwProcessMask & ~1); /* remove the first processor */
dwDesired = (dwDesired ? dwDesired : dwSysMask & ~1);
if (dwDesired != 0) {
SetProcessAffinityMask(GetCurrentProcess(), dwDesired);
}
}
}
#ifdef _WIN32
/* Windows-only (non-CygWin) functions */
#include "file.h"
#include "parse_cmdline.h"
#include <share.h> /* for _SH_DENYWR */
#include <fcntl.h> /* for _O_RDONLY, _O_BINARY */
#include <io.h> /* for isatty */
#include <assert.h>
#include <errno.h>
#include <locale.h>
/* QuickFix for broken output, caused by libintl fwprintf and vfwprintf */
#ifdef fwprintf
# undef fwprintf
#endif
#ifdef vfwprintf
# undef vfwprintf
#endif
struct console_data_t
{
unsigned console_flags;
unsigned saved_cursor_size;
unsigned primary_codepage;
unsigned secondary_codepage;
wchar_t format_buffer[4096];
wchar_t printf_result[65536];
wchar_t program_dir[32768];
};
struct console_data_t console_data;
/**
* Convert a c-string as wide character string using given codepage
* and print it to the given buffer.
*
* @param str the string to convert
* @param codepage the codepage to use
* @param buffer buffer to print the string to
* @param buf_size buffer size in bytes
* @return converted string on success, NULL on fail with error code stored in errno
*/
static wchar_t* cstr_to_wchar_buffer(const char* str, int codepage, wchar_t* buffer, size_t buf_size)
{
if (MultiByteToWideChar(codepage, 0, str, -1, buffer, buf_size / sizeof(wchar_t)) != 0)
return buffer;
set_errno_from_last_file_error();
return NULL; /* conversion failed */
}
/**
* Convert a c-string to wide character string using given codepage.
* The result is allocated with malloc and must be freed by caller.
*
* @param str the string to convert
* @param codepage the codepage to use
* @param exact_conversion non-zero to require exact encoding conversion, 0 otherwise
* @return converted string on success, NULL on fail with error code stored in errno
*/
static wchar_t* cstr_to_wchar(const char* str, int codepage, int exact_conversion)
{
DWORD flags = (exact_conversion ? MB_ERR_INVALID_CHARS : 0);
int size = MultiByteToWideChar(codepage, flags, str, -1, NULL, 0);
if (size != 0) {
wchar_t* buf = (wchar_t*)rsh_malloc(size * sizeof(wchar_t));
if (MultiByteToWideChar(codepage, flags, str, -1, buf, size) != 0)
return buf;
}
set_errno_from_last_file_error();
return NULL; /* conversion failed */
}
/**
* Convert a wide character string to c-string using given codepage.
* The result is allocated with malloc and must be freed by caller.
*
* @param wstr the wide string to convert
* @param codepage the codepage to use
* @param exact_conversion non-zero to require exact encoding conversion, 0 otherwise
* @return converted string on success, NULL on fail with error code stored in errno
*/
static char* wchar_to_cstr(const wchar_t* wstr, int codepage, int exact_conversion)
{
int size;
BOOL bUsedDefChar = FALSE;
BOOL* lpUsedDefaultChar = (exact_conversion && codepage != CP_UTF8 ? &bUsedDefChar : NULL);
if (codepage == -1) {
codepage = (opt.flags & OPT_UTF8 ? CP_UTF8 : (opt.flags & OPT_ENC_DOS) ? CP_OEMCP : CP_ACP);
}
size = WideCharToMultiByte(codepage, 0, wstr, -1, NULL, 0, 0, NULL);
/* size=0 is returned only on fail, cause even an empty string requires buffer size=1 */
if (size != 0) {
char* buf = (char*)rsh_malloc(size);
if (WideCharToMultiByte(codepage, 0, wstr, -1, buf, size, 0, lpUsedDefaultChar) != 0) {
if (!bUsedDefChar)
return buf;
free(buf);
errno = EILSEQ;
return NULL;
}
free(buf);
}
set_errno_from_last_file_error();
return NULL;
}
/**
* Convert c-string to wide string using encoding and transformation specified by flags.
* The result is allocated with malloc and must be freed by caller.
*
* @param str the C-string to convert
* @param flags bit-mask containing the following bits: ConvertToPrimaryEncoding, ConvertToSecondaryEncoding,
* ConvertToUtf8, ConvertToNative, ConvertPath, ConvertExact
* @return converted wide string on success, NULL on fail with error code stored in errno
*/
wchar_t* convert_str_to_wcs(const char* str, unsigned flags)
{
int is_utf8 = flags & (opt.flags & OPT_UTF8 ? (ConvertToUtf8 | ConvertToPrimaryEncoding) : (ConvertToUtf8 | ConvertToSecondaryEncoding));
int codepage = (is_utf8 ? CP_UTF8 : (opt.flags & OPT_ENC_DOS) ? CP_OEMCP : CP_ACP);
wchar_t* wstr = cstr_to_wchar(str, codepage, (flags & ConvertExact));
if (wstr && (flags & ConvertPath)) {
wchar_t* long_path = get_long_path_if_needed(wstr);
if (long_path) {
free(wstr);
return long_path;
}
}
return wstr;
}
/**
* Convert wide string to c-string using encoding and transformation specified by flags.
*
* @param str the C-string to convert
* @param flags bit-mask containing the following bits: ConvertToPrimaryEncoding, ConvertToSecondaryEncoding,
* ConvertToUtf8, ConvertToNative, ConvertPath, ConvertExact
* @return converted wide string on success, NULL on fail with error code stored in errno
*/
char* convert_wcs_to_str(const wchar_t* wstr, unsigned flags)
{
int is_utf8 = flags & (opt.flags & OPT_UTF8 ? (ConvertToUtf8 | ConvertToPrimaryEncoding) : (ConvertToUtf8 | ConvertToSecondaryEncoding));
int codepage = (is_utf8 ? CP_UTF8 : (opt.flags & OPT_ENC_DOS) ? CP_OEMCP : CP_ACP);
/* skip path UNC prefix, if found */
if ((flags & ConvertPath) && IS_UNC_PREFIX(wstr))
wstr += UNC_PREFIX_SIZE;
return wchar_to_cstr(wstr, codepage, (flags & ConvertExact));
}
/**
* Convert c-string encoding, the encoding is specified by flags.
*
* @param str the C-string to convert
* @param flags bit-mask containing the following bits: ConvertToUtf8, ConvertToNative, ConvertExact
* @return converted wide string on success, NULL on fail with error code stored in errno
*/
char* convert_str_encoding(const char* str, unsigned flags)
{
int convert_from = (flags & ConvertToUtf8 ? ConvertNativeToWcs : ConvertUtf8ToWcs) | (flags & ConvertExact);
wchar_t* wstr;
assert((flags & ~(ConvertToUtf8 | ConvertToNative | ConvertExact)) == 0); /* disallow invalid flags */
if ((flags & (ConvertToUtf8 | ConvertToNative)) == 0) {
errno = EINVAL;
return NULL; /* error: no conversion needed */
}
wstr = convert_str_to_wcs(str, convert_from);
if (wstr) {
char* res = convert_wcs_to_str(wstr, flags);
free(wstr);
return res;
}
return NULL;
}
/**
* Allocate a wide string containing long file path with UNC prefix,
* if it is needed to access the path, otherwise return NULL.
*
* @param wpath original file path, can be a relative one
* @return allocated long file path if it is needed to access
* the path, NULL otherwise
*/
wchar_t* get_long_path_if_needed(const wchar_t* wpath)
{
size_t length;
size_t index;
size_t spaces_count = 0;
if (IS_UNC_PREFIX(wpath))
return NULL;
length = wcslen(wpath);
/* Do not end a file or directory name with a space or a period on Windows.
See https://learn.microsoft.com/en-gb/windows/win32/fileio/naming-a-file */
for (index = length; index > 0 && wpath[index - 1] == ' '; --index, ++spaces_count);
if (length > 200 || spaces_count > 0) {
/* get required buffer size, including the terminating null character */
DWORD size = GetFullPathNameW(wpath, 0, NULL, NULL);
if (size > 0) {
size_t buffer_size = (size + spaces_count + UNC_PREFIX_SIZE) * sizeof(wchar_t);
wchar_t* result = (wchar_t*)rsh_malloc(buffer_size);
wcscpy(result, L"\\\\?\\");
/* get path length without the terminating null character */
size = GetFullPathNameW(wpath, size, result + UNC_PREFIX_SIZE, NULL);
if (size > 0) {
if (spaces_count > 0)
wcscpy(result + UNC_PREFIX_SIZE + size, wpath + index);
return result;
}
free(result);
}
}
return NULL;
}
/* the range of error codes for access errors */
#define MIN_EACCES_RANGE ERROR_WRITE_PROTECT
#define MAX_EACCES_RANGE ERROR_SHARING_BUFFER_EXCEEDED
/**
* Convert the GetLastError() value to errno-compatible code.
*
* @return errno-compatible error code
*/
static int convert_last_error_to_errno(void)
{
DWORD error_code = GetLastError();
switch (error_code)
{
case NO_ERROR:
return 0;
case ERROR_FILE_NOT_FOUND:
case ERROR_PATH_NOT_FOUND:
case ERROR_INVALID_DRIVE:
case ERROR_INVALID_NAME:
case ERROR_BAD_NETPATH:
case ERROR_BAD_PATHNAME:
case ERROR_FILENAME_EXCED_RANGE:
return ENOENT;
case ERROR_TOO_MANY_OPEN_FILES:
return EMFILE;
case ERROR_ACCESS_DENIED:
case ERROR_SHARING_VIOLATION:
return EACCES;
case ERROR_NETWORK_ACCESS_DENIED:
case ERROR_FAIL_I24:
case ERROR_SEEK_ON_DEVICE:
return EACCES;
case ERROR_LOCK_VIOLATION:
case ERROR_DRIVE_LOCKED:
case ERROR_NOT_LOCKED:
case ERROR_LOCK_FAILED:
return EACCES;
case ERROR_INVALID_HANDLE:
return EBADF;
case ERROR_NOT_ENOUGH_MEMORY:
case ERROR_INVALID_BLOCK:
case ERROR_NOT_ENOUGH_QUOTA:
case ERROR_INSUFFICIENT_BUFFER:
return ENOMEM;
case ERROR_INVALID_ACCESS:
case ERROR_INVALID_DATA:
case ERROR_INVALID_PARAMETER:
case ERROR_INVALID_FLAGS:
return EINVAL;
case ERROR_BROKEN_PIPE:
case ERROR_NO_DATA:
return EPIPE;
case ERROR_DISK_FULL:
return ENOSPC;
case ERROR_ALREADY_EXISTS:
return EEXIST;
case ERROR_NESTING_NOT_ALLOWED:
return EAGAIN;
case ERROR_NO_UNICODE_TRANSLATION:
return EILSEQ;
}
/* try to detect error by range */
if (MIN_EACCES_RANGE <= error_code && error_code <= MAX_EACCES_RANGE) {
return EACCES;
} else {
return EINVAL;
}
}
/**
* Assign errno to the error value converted from the GetLastError().
*/
void set_errno_from_last_file_error(void)
{
errno = convert_last_error_to_errno();
}
/* functions to setup/restore console */
/**
* Restore console on program exit.
*/
static void restore_cursor(void)
{
CONSOLE_CURSOR_INFO cci;
HANDLE hOut = GetStdHandle(STD_ERROR_HANDLE);
if (hOut != INVALID_HANDLE_VALUE && console_data.saved_cursor_size) {
/* restore cursor size and visibility */
cci.dwSize = console_data.saved_cursor_size;
cci.bVisible = 1;
SetConsoleCursorInfo(hOut, &cci);
}
}
/**
* Hide console cursor.
*/
void hide_cursor(void)
{
CONSOLE_CURSOR_INFO cci;
HANDLE hOut = GetStdHandle(STD_ERROR_HANDLE);
if (hOut != INVALID_HANDLE_VALUE && GetConsoleCursorInfo(hOut, &cci))
{
/* store current cursor size and visibility flag */
console_data.saved_cursor_size = (cci.bVisible ? cci.dwSize : 0);
/* now hide cursor */
cci.bVisible = 0;
SetConsoleCursorInfo(hOut, &cci); /* hide cursor */
rsh_install_exit_handler(restore_cursor);
}
}
/**
* Prepare console on program initialization: change console font codepage
* according to program options and hide cursor.
*/
void setup_console(void)
{
/* the default encoding is UTF-8 */
if ((opt.flags & OPT_ENCODING) == 0)
opt.flags |= OPT_UTF8;
console_data.console_flags = 0;
console_data.saved_cursor_size = 0;
console_data.primary_codepage = (opt.flags & OPT_UTF8 ? CP_UTF8 : (opt.flags & OPT_ENC_DOS) ? CP_OEMCP : CP_ACP);
console_data.secondary_codepage = (!(opt.flags & OPT_UTF8) ? CP_UTF8 : (opt.flags & OPT_ENC_DOS) ? CP_OEMCP : CP_ACP);
/* note: we are using numbers 1 = _fileno(stdout), 2 = _fileno(stderr) */
/* cause _fileno() is undefined, when compiling as strict ansi C. */
if (isatty(1))
console_data.console_flags |= 1;
if (isatty(2))
console_data.console_flags |= 2;
if ((opt.flags & OPT_UTF8) != 0)
{
if (console_data.console_flags & 1)
_setmode(1, _O_U8TEXT);
if (console_data.console_flags & 2)
_setmode(2, _O_U8TEXT);
#ifdef USE_GETTEXT
bind_textdomain_codeset(TEXT_DOMAIN, "utf-8");
#endif /* USE_GETTEXT */
}
else
{
setlocale(LC_CTYPE, opt.flags & OPT_ENC_DOS ? ".OCP" : ".ACP");
}
}
wchar_t* get_program_dir(void)
{
return console_data.program_dir;
}
/**
* Check if the given stream is connected to console.
*
* @param stream the stream to check
* @return 1 if the stream is connected to console, 0 otherwise
*/
int win_is_console_stream(FILE* stream)
{
return ((stream == stdout && (console_data.console_flags & 1))
|| (stream == stderr && (console_data.console_flags & 2)));
}
/**
* Detect the program directory.
*/
void init_program_dir(void)
{
DWORD buf_size = sizeof(console_data.program_dir) / sizeof(console_data.program_dir[0]);
DWORD length;
length = GetModuleFileNameW(NULL, console_data.program_dir, buf_size);
if (length == 0 || length >= buf_size) {
console_data.program_dir[0] = 0;
return;
}
/* remove trailng file name with the last path separator */
for (; length > 0 && !IS_PATH_SEPARATOR_W(console_data.program_dir[length]); length--);
for (; length > 0 && IS_PATH_SEPARATOR_W(console_data.program_dir[length]); length--);
console_data.program_dir[length + 1] = 0;
}
#ifdef USE_GETTEXT
/**
* Check that the path points to an existing directory.
*
* @param path the path to check
* @return 1 if the argument is a directory, 0 otherwise
*/
static int is_directory(const char* path)
{
DWORD res = GetFileAttributesA(path);
return (res != INVALID_FILE_ATTRIBUTES &&
!!(res & FILE_ATTRIBUTE_DIRECTORY));
}
/**
* Set the locale directory relative to ${PROGRAM_DIR}/locale.
*/
void setup_locale_dir(void)
{
wchar_t* short_dir;
char* program_dir = NULL;
char* locale_dir;
DWORD buf_size;
DWORD res;
if (!console_data.program_dir[0]) return;
buf_size = GetShortPathNameW(console_data.program_dir, NULL, 0);
if (!buf_size) return;
short_dir = (wchar_t*)rsh_malloc(sizeof(wchar_t) * buf_size);
res = GetShortPathNameW(console_data.program_dir, short_dir, buf_size);
if (res > 0 && res < buf_size)
program_dir = convert_wcs_to_str(short_dir, ConvertToPrimaryEncoding);
free(short_dir);
if (!program_dir) return;
locale_dir = make_path(program_dir, "locale", 0);
free(program_dir);
if (!locale_dir) return;
if (is_directory(locale_dir))
bindtextdomain(TEXT_DOMAIN, locale_dir);
free(locale_dir);
}
#endif /* USE_GETTEXT */
#define USE_CSTR_ARGS 0
#define USE_WSTR_ARGS 1
/**
* Print formatted data to the specified file descriptor,
* handling proper printing UTF-8 strings to Windows console.
*
* @param out file descriptor
* @param format data format string
* @param str_type wide/c-string type of string arguments
* @param args list of arguments
* @return the number of characters printed, -1 on error
*/
static int win_vfprintf_encoded(FILE* out, const char* format, int str_type, va_list args)
{
int res;
if (!win_is_console_stream(out)) {
return vfprintf(out, (format ? format : "%s"), args);
} else if (str_type == USE_CSTR_ARGS) {
/* thread-unsafe code: using a static buffer */
static char buffer[8192];
res = vsnprintf(buffer, sizeof(buffer) - 1, format, args);
if (res >= 0) {
wchar_t *wstr = cstr_to_wchar_buffer(buffer, console_data.primary_codepage, console_data.printf_result, sizeof(console_data.printf_result));
res = (wstr ? fwprintf(out, L"%s", wstr) : -1);
}
} else {
wchar_t* wformat = (!format || (format[0] == '%' && format[1] == 's' && !format[2]) ? L"%s" :
cstr_to_wchar_buffer(format, console_data.primary_codepage, console_data.format_buffer, sizeof(console_data.format_buffer)));
res = vfwprintf(out, (wformat ? wformat : L"[UTF8 conversion error]\n"), args);
assert(str_type == USE_WSTR_ARGS);
}
/* fix: win7 incorrectly sets _IOERR(=0x20) flag of the stream for UTF-8 encoding, so clear it */
if (res >= 0)
clearerr(out);
return res;
}
/**
* Print formatted data to the specified file descriptor,
* handling proper printing UTF-8 strings to Windows console.
*
* @param out file descriptor
* @param format data format string
* @param args list of arguments
* @return the number of characters printed, -1 on error
*/
int win_vfprintf(FILE* out, const char* format, va_list args)
{
return win_vfprintf_encoded(out, format, USE_CSTR_ARGS, args);
}
/**
* Print formatted data to the specified file descriptor,
* handling proper printing UTF-8 strings to Windows console.
*
* @param out file descriptor
* @param format data format string
* @return the number of characters printed, -1 on error
*/
int win_fprintf(FILE* out, const char* format, ...)
{
int res;
va_list args;
va_start(args, format);
res = win_vfprintf_encoded(out, format, USE_CSTR_ARGS, args);
va_end(args);
return res;
}
/**
* Print formatted data to the specified file descriptor,
* handling proper printing UTF-8 strings to Windows console.
*
* @param out file descriptor
* @param format data format string
* @return the number of characters printed, -1 on error
*/
int win_fprintf_warg(FILE* out, const char* format, ...)
{
int res;
va_list args;
va_start(args, format);
res = win_vfprintf_encoded(out, format, USE_WSTR_ARGS, args);
va_end(args);
return res;
}
/**
* Write a buffer to a stream.
*
* @param ptr pointer to the buffer to write
* @param size size of an items in the buffer
* @param count the number of items to write
* @param out the stream to write to
* @return the number of items written, -1 on error
*/
size_t win_fwrite(const void* ptr, size_t size, size_t count, FILE* out)
{
if (!win_is_console_stream(out))
return fwrite(ptr, size, count, out);
{
size_t i;
const char* buf = (const char*)ptr;
size *= count;
if (!size)
return 0;
for (i = 0; i < size && buf[i] > 0; i++);
if (i == size)
{
wchar_t* wstr = rsh_malloc(sizeof(wchar_t) * (size + 1));
int res;
for (i = 0; i < size; i++)
wstr[i] = (wchar_t)buf[i];
wstr[size] = L'\0';
res = fwprintf(out, L"%s", wstr);
free(wstr);
if (res < 0)
return res;
}
else
{
for (i = 0; (i + 8) <= size; i += 8)
if (fwprintf(out, L"%C%C%C%C%C%C%C%C", buf[i], buf[i + 1], buf[i + 2],
buf[i + 3], buf[i + 4], buf[i + 5], buf[i + 6], buf[i + 7]) < 0)
return -1;
for (; i < size; i++)
if (fwprintf(out, L"%C", buf[i]) < 0)
return -1;
}
/* fix: win7 incorrectly sets _IOERR(=0x20) flag of the stream for UTF-8 encoding, so clear it */
clearerr(out);
return count;
}
}
#endif /* _WIN32 */
#else
typedef int dummy_declaration_required_by_strict_iso_c;
#endif /* defined(_WIN32) || defined(__CYGWIN__) */
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.