sh-4.4$ /bin/mpicalc --print-config
version:1.9.3-unknown:10903:1.42-unknown:12a00:
cc:100200:gcc:10.2.0:
ciphers:arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia:idea:salsa20:gost28147:chacha20:sm4:
pubkeys:dsa:elgamal:rsa:ecc:
digests:crc:gostr3411-94::md4:md5:rmd160:sha1:sha256:sha512:sha3:tiger:whirlpool:stribog:blake2:sm3:
rnd-mod:linux:
cpu-arch::
mpi-asm:generic/mpih-add1.c:generic/mpih-sub1.c:generic/mpih-mul1.c:generic/mpih-mul2.c:generic/mpih-mul3.c:generic/mpih-lshift.c:generic/mpih-rshift.c:
hwflist:
fips-mode:n:n:
rng-type:standard:1:2010000:0:
compliance:::
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "Flib.h"
int a = -32;
int name ()
{
size_t bufsize = 128;
char *buffer = malloc( bufsize );
if ( buffer )
strcpy( buffer, "i" );
unsigned int a = -1;
int b = 1;
printf("%x\n", a);
printf("%x\n", b);
printf("%d\n", a);
printf("%d\n", b);
printf("%u\n", a);
printf("%u\n", b);
return 0;
if (a = 32)
return 0;
}
int OSS()
{
int i() {
int i;
if (1) {
int i;
i = 2;
}
i = 3;
return (name(3));
}
}
int main(void)
{
int x[MAX] = {size}; // uses the constant and the read-only variable
state = 8; // modifies state in flib.c
f(); // calls f() in flib.c
}
#include "Flib.h"
static void local_f(int s) {} // definition with internal linkage (only used in this file)
static int local_state; // definition with internal linkage (only used in this file)
int state; // definition with external linkage (used by main.c)
void f(void) {local_f(state);} // definition with external linkage (used by main.c)
#ifndef FLIB_H
#define FLIB_H
void f(void); // function declaration with external linkage
extern int state; // variable declaration with external linkage
static const int size = 6; // definition of a read-only variable with internal linkage
enum { MAX = 12 }; // constant definition
inline int sum (int a, int b) { return a+b; } // inline function definition
#endif // FLIB_H