2022-01-02 15:00:54 +01:00
|
|
|
#include <string.h>
|
|
|
|
#include "source.h"
|
2022-01-06 02:06:45 +01:00
|
|
|
#include "assert.h"
|
2022-01-02 15:00:54 +01:00
|
|
|
|
2022-01-11 20:01:15 +01:00
|
|
|
int ret_1(void) {
|
2022-01-02 15:00:54 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
double div(double a, double b) {
|
|
|
|
assert(b != 0.0);
|
2022-01-11 20:01:15 +01:00
|
|
|
return a / b;
|
2022-01-02 15:00:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int add(int a, int b) {
|
|
|
|
return a + b;
|
|
|
|
}
|
|
|
|
|
|
|
|
int str_equals(const char *s1, const char *s2) {
|
|
|
|
return strcmp(s1, s2) == 0;
|
|
|
|
}
|
|
|
|
|