Searched defs:expr (Results 1 - 25 of 246) sorted by relevance

12345678910

/illumos-gate/usr/src/ucbcmd/expr/
H A Dexpr.y36 /* Yacc productions for "expr" command: */
60 expression: expr NOARG = {
67 expr: '(' expr ')' = { $$ = $2; } label
68 | expr OR expr = { $$ = conj(OR, $1, $3); }
69 | expr AND expr = { $$ = conj(AND, $1, $3); }
70 | expr EQ expr
[all...]
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_select.c23 static void match_select(struct expression *expr) argument
25 if (expr->cond_true)
27 expr = strip_expr(expr->conditional);
28 if (expr->type != EXPR_COMPARE)
H A Dcheck_array_condition.c30 static void match_condition(struct expression *expr) argument
35 if (expr->type != EXPR_DEREF)
37 type = get_type(expr);
40 if (get_macro_name(expr->pos))
43 str = expr_to_str(expr);
H A Dcheck_call_tree.c22 static void match_call(struct expression *expr) argument
26 fn_name = expr_to_var(expr->fn);
H A Dcheck_no_effect.c24 struct expression *expr; local
28 expr = stmt->expression;
29 if (!expr)
31 switch(expr->type) {
33 if (expr->op == '!')
35 if (expr->op == '~')
50 sm_warning("statement has no effect %d", expr->type);
H A Dcheck_return_negative_var.c25 struct expression *expr; local
30 expr = ret_value;
34 macro = get_macro_name(expr->unop->pos);
43 expr = get_assigned_expr(ret_value->unop);
44 if (!expr)
46 if (expr->type != EXPR_CALL)
H A Dsmatch_expression_stacks.c21 void push_expression(struct expression_list **estack, struct expression *expr) argument
23 add_ptr_list(estack, expr);
28 struct expression *expr; local
30 expr = last_ptr_list((struct ptr_list *)*estack);
32 return expr;
37 struct expression *expr; local
39 expr = last_ptr_list((struct ptr_list *)estack);
40 return expr;
H A Dsmatch_type_links.c50 static void match_assign(struct expression *expr) argument
54 if (!is_void_pointer(expr->left))
57 type = get_type(expr->right);
64 sql_insert_data_info(expr->left, TYPE_LINK, type_to_str(type));
H A Dcheck_assign_vs_compare.c22 static void check_constant(struct expression *expr) argument
26 if (!get_value(expr->right, &val))
31 static void check_address(struct expression *expr) argument
34 struct expression *right = strip_expr(expr->right);
43 if (get_macro_name(expr->pos))
51 static void match_condition(struct expression *expr) argument
53 if (expr->type != EXPR_ASSIGNMENT || expr->op != '=')
56 check_constant(expr);
57 check_address(expr);
[all...]
H A Dcheck_bogus_irqrestore.c22 static void match_irqrestore(const char *fn, struct expression *expr, void *data) argument
27 arg_expr = get_argument_from_call_expr(expr->args, 1);
H A Dcheck_cast_assign.c24 static struct symbol *get_cast_type(struct expression *expr) argument
26 if (!expr || expr->type != EXPR_PREOP || expr->op != '*')
28 expr = strip_parens(expr->unop);
29 if (expr->type != EXPR_CAST)
31 return get_pointer_type(expr);
34 static void match_overflow(struct expression *expr) argument
41 type = get_cast_type(expr
[all...]
H A Dcheck_freeing_null.c22 static void match_free(const char *fn, struct expression *expr, void *data) argument
28 arg_expr = get_argument_from_call_expr(expr->args, 0);
H A Dcheck_kmalloc_to_bugon.c24 static int is_kmalloc_call(struct expression *expr) argument
26 if (expr->type != EXPR_CALL)
28 if (expr->fn->type != EXPR_SYMBOL)
30 if (!strcmp(expr->fn->symbol_name->name, "kmalloc"))
32 if (!strcmp(expr->fn->symbol_name->name, "kzalloc"))
37 static void match_condition(struct expression *expr) argument
44 macro = get_macro_name(expr->pos);
47 state = get_state_expr(check_assigned_expr_id, expr);
54 name = expr_to_var(expr);
H A Dcheck_logical_instead_of_bitwise.c23 static int is_bitshift(struct expression *expr) argument
25 expr = strip_expr(expr);
27 if (expr->type != EXPR_BINOP)
29 if (expr->op == SPECIAL_LEFTSHIFT)
34 static void match_logic(struct expression *expr) argument
38 if (expr->type != EXPR_LOGICAL)
41 if (get_macro_name(expr->pos))
44 if (!get_value(expr->right, &sval)) {
45 if (!get_value(expr
55 match_assign(struct expression *expr) argument
[all...]
H A Dcheck_min_t.c22 static void match_assign(struct expression *expr) argument
28 if (expr->op != '=')
31 macro = get_macro_name(expr->pos);
37 if (!get_absolute_max(expr->left, &max_left))
39 if (!get_absolute_max(expr->right, &max_right))
45 name = expr_to_str(expr->right);
H A Dcheck_mod_timer.c23 static void match_mod_timer(const char *fn, struct expression *expr, void *param) argument
28 arg = get_argument_from_call_expr(expr->args, 1);
H A Dcheck_return_enomem.c30 struct expression *expr; local
51 expr = get_assigned_expr_name_sym(sm->name, sm->sym);
52 if (!expr)
54 if (expr->type != EXPR_CALL || expr->fn->type != EXPR_SYMBOL)
56 if (!expr->fn->symbol_name)
59 * if (strstr(expr->fn->symbol_name->name, "alloc"))
63 if (strcmp(expr->fn->symbol_name->name, "kmalloc") != 0 &&
64 strcmp(expr->fn->symbol_name->name, "kzalloc") != 0)
H A Dcheck_test_bit.c23 static void match_test_bit(const char *fn, struct expression *expr, void *data) argument
28 arg = get_argument_from_call_expr(expr->args, 0);
H A Dcheck_wait_for_common.c22 static void match_wait_for_common(const char *fn, struct expression *expr, void *unused) argument
26 if (!expr_unsigned(expr->left))
28 name = expr_to_str(expr->left);
H A Dcheck_wine.c27 void match_fatal_report(const char *fn, struct expression *expr, argument
33 arg = get_argument_from_call_expr(expr->args, 0);
H A Dsmatch_annotate.c29 struct expression *expr; local
32 expr = get_argument_from_call_expr(call->args, arg);
33 if (get_implied_rl(expr, &rl) && rl_max(rl).value != 0)
H A Dsmatch_unknown_value.c62 struct expression *unknown_value_expression(struct expression *expr) argument
69 int is_fake_call(struct expression *expr) argument
71 return expr == &fake_call;
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Ditm_comp.y53 itm_expr_t *expr;
97 %type <expr> expr
98 %type <expr> itm_in
372 | expr
375 TRACE_MESSAGE('y', ("condition_expr: expr\n"));
668 | expr SC
670 TRACE_MESSAGE('y', ("op_unit: expr;\n"));
675 TRACE_MESSAGE('y', ("expr: error;\n"));
678 | ERROR expr S
870 expr : PO expr PC label
[all...]
/illumos-gate/usr/src/cmd/tnf/prex/
H A Dexpr.h48 typedef struct expr { struct
60 expr_t * expr(spec_t * left_p, spec_t * right_p);
/illumos-gate/usr/src/cmd/loadkeys/
H A Dloadkeys.y525 %type <number> code expr term number
605 | expr
611 expr: label
616 | expr '+' term

Completed in 77 milliseconds

12345678910